Skip to Content
MCP GatewayMCP Access Control

Policy tags for MCP servers and tools

Tag MCP servers and tools so one rule covers many tools, including new ones as they arrive

Once you add a few MCP servers, naming each tool in a rule stops scaling, and new tools arrive without a rule that covers them. Policy tags classify MCP servers and tools, so one rule can match a policy tag and keep covering new tools as they arrive. SecureAuth tags most tools for you, and you add your own for what matters to your organization.

Policy Tags page on the Resource tab, with your own policy tags above a Built-in section listing read-only, write, destructive and external
The Policy Tags page on the Resource tab: your own policy tags, with built-in ones below

Agent and Resource policy tags

The Policy Tags page has a tab for each kind of policy tag, and each kind goes on different things:

  • Agent – goes on agents, such as trusted or coding. Rules match it in the Agent pill.
  • Resource – goes on MCP servers and their tools, such as prod or pii. Rules match it in the MCP and Tools pills.

The two kinds are kept apart. An Agent tag and a Resource tag with the same name are still different tags. Built-in tags are Resource tags only.

This page covers Resource tags. For Agent tags, see Policy Tags.

Built-in policy tags

SecureAuth applies built-in tags to catalog tools, and to new tools from their annotations. Built-in tags describe what a tool does, and you can match them in a rule's Tools pill.

Policy tagMeaning
read-onlyReads data without changing anything.
writeCreates or changes data; reversible or additive.
destructiveDeletes, overwrites, or makes an irreversible change.
externalReaches outside the organization: sends messages or email, posts publicly, or fetches arbitrary URLs.

Every catalog tool has exactly one of read-only, write, or destructive, plus external when it reaches outside the organization. A tool carries both the built-in tags SecureAuth applies and the ones you assign.

  • You can't edit or delete built-in tags, or give a Resource tag a built-in tag's name.
  • You can't remove the built-in tags SecureAuth applies to catalog tools.
  • You can assign built-in tags to any tool yourself, and remove the ones you assigned.

Built-in tags appear on the Resource tab, in a Built-in section below your own policy tags.

Policy tags from tool annotations

An MCP server can describe each tool with annotations, short hints about what the tool does that the MCP specification defines. When SecureAuth first discovers a tool that isn't a catalog tool, it reads the tool's annotations and assigns built-in tags. That includes a tool on a custom server and a tool that a provider adds to a catalog server.

AnnotationBuilt-in tag
readOnlyHint: trueread-only
destructiveHint: truedestructive
destructiveHint: falsewrite
openWorldHint: trueexternal

SecureAuth ignores destructiveHint when readOnlyHint is true, as the specification does. A tool without these annotations gets no built-in tags.

SecureAuth assigns these policy tags once, so later changes to the server's annotations don't change them. You can remove or replace them, like policy tags you assign. Agent Trail records each assignment, attributed to System.

Add your own policy tags

Your own policy tags group servers and tools by what matters to you, such as finance on the servers that move money or prod on the ones that reach production.

Open the server from Inventory › MCP Servers & Tools, then click Add policy tag beside the server's tabs to tag the whole server, or on a tool's row to tag one tool. A tool waiting for review shows Review there instead, until you review it.

Slack MCP server page with the prod and pii policy tags beside its tabs, and the send_message tool carrying the built-in write and external tags
Your own policy tags sit beside the server's tabs, and each tool lists its tags on its own row

Adding policy tags needs the manage_tags permission. To rename a policy tag or change its color later, use Policy Controls › Policy Tags.

To find the servers carrying a policy tag, use the Resource policy tag filter on MCP Servers & Tools. It lists only your own policy tags, not built-in ones, and finds servers, not individual tools.

Match policy tags in rules

A rule that matches a policy tag covers every server or tool that carries it, including servers you add later, so new tools don't slip past your rules.

  • MCP pill – every server carrying the policy tag
  • Tools pill – every tool carrying the policy tag

For example, an allow rule on read-only tools lets agents read across every server, and turning off the Allow all rule that SecureAuth creates by default then denies everything else.

Conditions can test policy tags too, with mcp.tags and mcp.tool.tags, such as "pii" in mcp.tags.

Scope a connection by policy tag

An agent can connect to only the servers and tools that carry the policy tags you choose, so it sees only the tools it needs. Add ?tags= to the gateway URL, such as /gateway/mcp?tags=prod, or pick Policy tags on the agent's page under Add agent.

Check the policy tags before you rely on them

Policy tags are only as accurate as what they're based on, so check these three things:

  • Annotations are unverified – a server can mark a tool readOnlyHint: true even if it changes data. Add only servers you trust, and check the policy tags on their new tools.
  • Some tools have no built-in policy tag – a tool that isn't a catalog tool gets none when its server sends no annotations, so a deny rule on destructive doesn't cover it. Tag it yourself, or allow only read-only tools and rely on the default deny.
  • Deleting a policy tag changes your rules – an allow rule that matched it stops granting access, and a deny rule stops protecting. The delete dialog lists the policies that match the policy tag, or says it couldn't check, so you can check before you confirm.

Next steps

Your MCP servers and tools now carry policy tags that rules can match. Next, write a rule that matches one.

On this page