Practical technical guides / Recent development: Agent Registry MCP tool policy metadata (Preview, 19 November 2026)

Agent Registry MCP Policy Hints: an Omitted toolDisabled Means Enabled, So Compile Every Tool to an Explicit Decision

Agent Registry MCP policy hints (Preview, 19 November 2026): an omitted toolDisabled means enabled. Compile every tool to an explicit decision and diff it.

By Sandeep Belgavi · Published 2026-11-19

Agent Registry MCP policy hints (Preview, 19 November 2026): an omitted toolDisabled means enabled. Compile every tool to an explicit decision and diff it.

The 19 November 2026 preview

Google's Agent Registry release notes for 19 November 2026 announce, in Preview, support for Model Context Protocol tool protocol-level metadata, including Identity-Aware Proxy policy hints for tool enablement and human-in-the-loop controls, as well as provider metadata attributes. The policy hints live in the tool's _meta object under the namespace com.googleapis.iap/PolicyHints, next to the standard MCP tool annotations. The documentation describes two kinds of hint: whether a tool is disabled, and which human-approval mode applies, with modes that distinguish no approval, approval always, and approval only when a call is judged unsafe.

One documented default deserves attention before anything else: when the tool-disabled field is omitted, it defaults to false. A tool with no policy hints at all is enabled.

That default is reasonable for a registry that must accept existing MCP servers unchanged. It also means that the most common edit to a tool's metadata, deleting a block nobody remembers adding, can switch a dangerous tool on. This guide describes a small compiler that turns every tool's hints into an explicit decision, records which values were defaulted rather than written, and diffs two snapshots so that a loosened rule is reviewed before it reaches production. The same approach works for any metadata-driven policy with permissive defaults.

Hints, annotations and who enforces them

Three layers are easy to confuse.

  • MCP tool annotations such as readOnlyHint and destructiveHint are the server's own claims about a tool, defined by the MCP specification and untrusted unless the server is trusted. When absent they default to the cautious reading: not read-only and destructive.
  • Policy hints under the Google namespace state what the deployment wants: enabled or not, and which approval mode. The documentation says IAP and Agent Gateway evaluate them for calls that go through that path.
  • Enforcement happens wherever a call is executed. A client that calls the MCP server directly, without the gateway, sees the same metadata and is not obliged to honour it.

So a policy hint records intent. It is worth compiling that intent into something people can review, and then testing that the path your agents actually use applies it.

Compile each tool to an explicit row

The companion reads two synthetic registry snapshots for the help desk at Belgavi's Book Store, with nine tools such as orders_get, refunds_issue, customers_email, orders_cancel and customers_delete. For each tool it produces one row: enabled or not, the approval rule that applies, the local definition of unsafe used by a conditional mode, and the list of values that were defaulted.

def compile_tool(tool):
    auth = tool.get("_meta", {}).get(NAMESPACE, {}).get("authorization", {})
    findings, defaulted = [], []
    if "toolDisabled" in auth:
        if not isinstance(auth["toolDisabled"], bool):
            return deny(tool, "toolDisabled is not a boolean")
        enabled = not auth["toolDisabled"]
    else:
        enabled = True
        defaulted.append("toolDisabled")
        findings.append("omitted: enabled by the documented default")
    raw = auth.get("hitlMode")
    if raw is None:
        defaulted.append("hitlMode")
        approval = UNSPECIFIED_POLICY
    elif raw in MODE_NAMES:
        approval = MODE_NAMES[raw]
    else:
        return deny(tool, f"unknown approval mode {raw!r}")
    if approval == "when_unsafe" and tool["name"] not in UNSAFE_RULES:
        approval = "always"
        findings.append("conditional mode without a local definition of unsafe")
    return row(tool, enabled, approval, defaulted, findings)

MODE_NAMES maps the exact mode strings from the registry's schema page to local names. Copy them from the current page and keep that mapping in one place; the compiler treats any string it does not recognise as a reason to deny.

Four decisions in that function are deliberate:

  1. Defaults are reported, not hidden. inventory_adjust has no hints. It compiles to enabled with approval always, and its row lists both values as defaulted. A reviewer sees that nobody decided this.
  2. Unknown values fail closed. gift_cards_issue carries an approval mode the compiler does not recognise, perhaps a typo or a mode from a newer schema. It is denied with a finding, rather than treated as no approval.
  3. Conditional approval needs a local definition. Approval only when a call is judged unsafe is meaningful only if something defines unsafe. The companion keeps reviewed rules next to the compiler: a refund above 50 or in a currency other than INR is unsafe; an email to an address outside the shop's domain is unsafe. loyalty_adjust asks for conditional approval but has no rule, so it becomes approval always.
  4. Missing approval mode uses a local policy. When the mode is absent, this deployment requires approval always. Choose that policy explicitly; do not let it be whatever the gateway does.

The compiler also reads MCP annotations. A tool that is enabled, requires no approval and is destructive by annotation or by the annotation default gets a finding asking for an owner's sign-off. A read-only tool such as orders_get does not, because destructiveHint does not apply to it.

Decide calls from the table

The table is used at call time by a small decision function: deny when the tool is disabled or unknown, ask a person when approval is always, apply the local rule when it is conditional, and allow otherwise. For the first snapshot, a 24.00 refund is allowed and a 180.00 refund goes to a person; an email to geetha@belgavi-books.example is allowed and one to an outside address goes to a person; cancelling an order is denied because the tool is disabled.

This duplicates what the gateway does, on purpose. The local decision is a test oracle: send the same calls through the real path and compare.

Diff snapshots before rollout

The second snapshot contains three ordinary-looking edits. The toolDisabled block was removed from orders_cancel during a clean-up. The approval mode of customers_delete was changed from always to none. A new tool, suppliers_pay, was registered with no hints.

The diff ranks approval rules by strictness and flags every change that loosens one:

ToolBeforeAfterReview
customers_deleteenabled, approval alwaysenabled, no approvalyes, looser
orders_canceldisabledenabled, approval alwaysyes, looser
suppliers_paynot presentenabled, approval always (defaulted)yes, new tool

The orders_cancel row is the one the default creates. Nobody wrote "enable this tool". Someone deleted a block, and the documented default did the rest. A request to cancel order BB-4102 went from deny to ask a person. In CI, fail the build on any row marked for review until someone with authority approves it.

Where the compiler runs

Run it in three places. In the repository that holds tool metadata, as a CI step that compiles the proposed snapshot, diffs it with the last approved one and fails on any looser row until an owner approves it. At deployment, against the metadata the registry actually returns, because a console edit can bypass the repository. And on a schedule, comparing the live registry with the approved table, so that drift shows up as a finding rather than as an agent quietly gaining a tool. Keep the approved table and the unsafe rules in the same review, since a rule change can loosen a conditional mode as surely as a metadata edit can.

What this does not do

The compiler is a review artefact, not an enforcement point. It reads a Preview metadata shape whose fields may still change, and it says nothing about whether a given client honours the hints. Annotations come from the server and can be wrong. Keep the compiled table under version control, and treat a difference between it and the gateway's behaviour as a defect in one of them.

Failure modes to test

  • A tool registered with no hints at all. Expect it enabled with approval always, and flagged as defaulted.
  • A boolean written as a string, such as "false". Expect deny; the companion's tests check it.
  • A conditional mode on a tool with no local rule. Expect approval always.
  • A direct client path that bypasses the gateway. Call a disabled tool through it in a test environment; if it runs, the hint is documentation, not a control, for that path.

Verification

In the cassandra-mcp repository, python example.py prints both tables, the call decisions and the diff, and python -m unittest -v test_example.py asserts every row above, including the fail-closed cases. For a real registry, export the tool metadata as JSON, adapt the loader, check the mode strings against the current schema page, and run the diff on every change to tool metadata.

Primary references and authorship

Sources dated on or before 19 November 2026. Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/cassandra-mcp/examples/mcp-policy-hints-decision-table. Views are my own and do not represent any employer, past or present.