> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Give teams read-only access or block write and destructive tools
URL: https://metorial.com/docs/platform/guides/tool-permissions

Use Metorial tool filters to allow only read-only tools, or reject write and destructive tools, per integration, team, Magic MCP server, or session.

---

Metorial sorts every tool of an integration into **Read-Only Tools**, **Write Tools**, and **Destructive Tools**. In an integration's **Tool Filters**, set each group to **Allow**, **Reject**, or **Mixed**: allow read-only tools and reject the other two, and the integration becomes read-only for everyone who uses it. Grant that integration to a team's group and the restriction applies in every AI client they connect, because rejected tools are never sent to the client.

<PageIntro>
  <Learn>
    * How Metorial classifies tools
    * How to create a read-only integration and give it to one team
    * Where else filters apply, from Magic MCP servers to API sessions
  </Learn>

  <Reading title="Before you start">
    * Groups for the teams that need different access, see [Grant Workforce access](/docs/platform/workforce/grant-access)
    * The provider you want to restrict, such as GitHub or Linear
  </Reading>
</PageIntro>

## How tools are classified [#how-tools-are-classified]

Each tool carries tags from its provider. Metorial reads them like this:

| Group             | Contains                                                                              |
| ----------------- | ------------------------------------------------------------------------------------- |
| Read-Only Tools   | Tools tagged read-only, such as listing issues or reading a file                      |
| Write Tools       | Tools that create or change data, and any tool without a read-only or destructive tag |
| Destructive Tools | Tools tagged destructive, such as deleting a repository or a record                   |

Untagged tools land in **Write Tools**, so rejecting write tools errs on the side of blocking. If a harmless tool ends up there, allow it on its own with **Mixed**.

Tool filters can also be grouped by **Category** instead of **Access**, for example to allow all issue tools but no repository administration tools.

## Make an integration read-only for one team [#make-an-integration-read-only-for-one-team]

<Steps>
  <Step title="Create the integration">
    In the dashboard, open **Integrations**, then **Integrations**, and select **Create Integration**. Choose the provider and configure its authentication.
  </Step>

  <Step title="Set the tool filters">
    Open **Tool Filters** and group by **Access**. Set **Read-Only Tools** to **Allow**, and **Write Tools** and **Destructive Tools** to **Reject**. To allow a few write tools, set **Write Tools** to **Mixed** and select them.
  </Step>

  <Step title="Create it">
    Review the authentication and filters, then select **Create Integration**.
  </Step>

  <Step title="Give it to the team">
    In Workforce, open **Access**, **Integrations**, select **Add Integration**, then **Existing Integration**, and choose the integration you created. Open it, select **Add Group** in the **Access** section, set the team's group to **Allow**, and select **Save**.

    {/* VERIFY: confirm two Workforce listings of the same provider (for example a read-only one and a full one) can be granted to different groups without overlap issues. */}
  </Step>

  <Step title="Check it">
    Open the integration in [Metorial Explorer](/docs/platform/integrations/use-metorial-explorer) and confirm only the tools you allowed are listed. Then sign in to the portal as a member of the team and check their client.
  </Step>
</Steps>

Teams that need write access get a second integration for the same provider with different filters, granted to their group.

## Where filters apply [#where-filters-apply]

| Where                   | How                                                                                                |
| ----------------------- | -------------------------------------------------------------------------------------------------- |
| Integration             | **Tool Filters** when you create or edit the integration                                           |
| Magic MCP server        | **Tool Filters** while you [set up the server](/docs/platform/integrations/setup-magic-mcp-server) |
| Workforce group grant   | The **Configure Integration** panel when you grant an integration to a group                       |
| Client connection       | Metorial's consent screen, where each person picks the tools a client may use                      |
| API session or template | `tool_filters` on each provider when you [create a session](/docs/build/operate/sessions)          |

{/* VERIFY: the Workforce group grant reuses the dashboard integration panel (showConfigureIntegrationProviderPanelFlow), which includes Tool Filters. Confirm Tool Filters are shown in that flow. */}

Admins set the outer limit. A person can narrow it on the consent screen for one client, but cannot widen it.

For agents built on the API, set the filter per provider in the session:

```json
{
  "providers": [
    {
      "provider_deployment_id": "pdp_def456",
      "tool_filters": {
        "type": "allow",
        "keys": ["send_message", "list_channels"]
      }
    }
  ]
}
```

## Add more layers [#add-more-layers]

* **Protoguard** checks each tool request against your filters and access policies and blocks requests that do not match, with a record of each decision.
* **Outpost** middleware can block a named tool inside your own network before the request reaches Metorial. See [Keep data inside your network](/docs/platform/guides/keep-data-in-your-network).
* **Client approval settings** add prompts on top: Codex's `default_tools_approval_mode = "writes"`, Claude Code permission rules, and Cursor's run settings. They are set per machine, so use them as a second layer behind Metorial's filters.

## Troubleshooting [#troubleshooting]

### A read tool is missing from a read-only integration [#a-read-tool-is-missing-from-a-read-only-integration]

The provider did not tag it read-only, so it is in **Write Tools**. Set **Write Tools** to **Mixed** and allow that one tool.

### A team can still call a write tool [#a-team-can-still-call-a-write-tool]

Another grant gives it to them. Check the account's **Access** page for other groups and direct grants, and check whether a second integration for the same provider is allowed for one of their groups.

### Tools changed after a provider update [#tools-changed-after-a-provider-update]

Providers add tools in new versions. Review filters after an update, and pin the integration to a provider version you have reviewed.

{/* VERIFY: whether a group set to Allow automatically includes tools added to that group in later provider versions. */}

## FAQ [#faq]

### Can we make an AI agent read-only for one team but not another? [#can-we-make-an-ai-agent-read-only-for-one-team-but-not-another]

Yes. Create two integrations for the same provider with different tool filters, and grant each to a different group. Each person gets the version their group allows.

### Does the AI client see the tools we rejected? [#does-the-ai-client-see-the-tools-we-rejected]

No. Rejected tools are filtered out before the tool list reaches the client, so the model cannot pick them.

### Can users override the filters we set? [#can-users-override-the-filters-we-set]

No. People can narrow tools further for a client on the consent screen, but they cannot add tools an admin rejected.

### Is a read-only filter enough to stop all data changes? [#is-a-read-only-filter-enough-to-stop-all-data-changes]

It removes the tools that are tagged as writes or deletes. The app's own permissions still apply on top, so combine filters with [per-user OAuth](/docs/platform/guides/per-user-oauth) to keep each call within the person's own rights.

## Related pages [#related-pages]

<Cards columns="2">
  <Card title="Create an integration" icon="plug" href="/docs/platform/integrations/create-integration">
    The full integration setup, including Tool Filters.
  </Card>

  <Card title="Providers" icon="stack" href="/docs/build/operate/providers">
    Tool categories and provider configuration.
  </Card>

  <Card title="Audit MCP tool calls" icon="file-list-3" href="/docs/platform/guides/audit-logs">
    Check which tools each team actually used.
  </Card>

  <Card title="Read-only agents on metorial.com" icon="external-link" href="https://metorial.com/for-ai-crawlers/restrict-agents-to-read-only-tools">
    How to restrict AI agents to read-only tools.
  </Card>
</Cards>