‹ Back to articles

Why Tool Discovery Should Reflect Authorization

What an AI agent is shown shapes what it attempts. This note examines authorization-dependent discovery in the OpenPort Protocol, why it does not replace enforcement, and what remains open.

An AI agent connected to an application usually begins by asking what it can do. The answer arrives as a catalogue of tools: search records, retrieve a document, prepare a change, export data. That catalogue shapes every plan the agent forms afterwards. If it lists operations the agent's credential was never meant to use, it has said too much before a single call is made.

This note looks at one design question raised by the OpenPort Protocol paper: should tool discovery reflect authorization, and what changes if it does? The paper's answer is yes. It treats the catalogue as an authorized view of what a particular credential may do now, not as a public description of everything the application offers.

Why discovery is part of the authorization problem

Discussion of agent security usually concentrates on the tool call, while discovery is treated as documentation. That separation breaks down for agents, because an agent plans from what it is shown. A model that sees a bulk export tool next to a narrow search tool may reach for the export, retry it in different forms after a refusal, or describe it to a user as an available next step.

Consider a hypothetical agent that prepares internal service reports and needs to read a bounded set of job records. If its catalogue also advertises bulk customer exports and destructive administration, three things go wrong at once. The agent receives information unrelated to its purpose. Its plans may include steps it can never complete. And anyone who obtains its credential learns the shape of operations they should not know exist.

A static catalogue cannot express this. The same application serves many integrations with different scopes, and authorization changes over time; a description published once for every client is accurate about the application and inaccurate about each credential.

What OpenPort proposes

OpenPort is a governance-first specification for exposing application tools to AI agents through a server-side gateway. It is designed to be model- and runtime-neutral. One of its core elements is authorization-dependent discovery. The manifest is obtained using the presented credential, and the tools it contains depend on the granted scopes and on policy constraints, which the paper models as ABAC-style (attribute-based) conditions on top of scoped permissions. Restricted tools and fields are omitted from the view rather than published to every client and left for the client to hide.

The project text describes the intent plainly: discovery that reflects reality, so that only permitted actions appear as options. Keeping this decision on the server follows from the protocol's broader position. Agent runtimes are probabilistic, so governance decisions stay where policies, review and incident response can be enforced consistently, whichever model or framework sits on the other side.

Each tool in the manifest carries input and output schemas together with governance metadata, such as required scopes, risk tier and whether confirmation is needed. The paper also describes optional HTTP hints for tracing or debugging; a client is not expected to guess application paths. With this metadata an agent can construct a valid request and know in advance that some operations lead to a draft and review rather than to immediate effect.

Discovery is not enforcement

A filtered catalogue is not, by itself, a security boundary. A client may keep an old tool name, or send a request for an operation outside the listed set. OpenPort therefore judges every request against the applicable authorization conditions regardless of what the client was shown. Discovery helps the agent understand its permitted surface; enforcement decides whether a particular request proceeds.

Enforcement without filtered discovery produces agents that keep attempting actions they cannot take; filtered discovery without enforcement is a convention any client can ignore. A denial stays authoritative even when a cached catalogue suggests the operation was once visible.

A related limit concerns intent. A tool's schema can state that it accepts a customer identifier. It cannot establish which customer the person behind the task intended. Discovery reflects what a credential may do, not what a particular request justifies. Related research on intent-governed tool authorization takes up that gap by narrowing the visible tools further to the user's current request, without ever expanding existing authority.

A catalogue belongs to an authorization context

Because the manifest depends on the credential and its policy, it is a view tied to an authorization context, not a permanent promise. Credentials are replaced, integrations disabled, scopes removed and policies narrowed. In the hypothetical reporting agent, an operator might shorten the permitted reporting window. A client that keeps building wider queries from a cached description, and reads each denial as a temporary outage, is working from a view that no longer exists.

OpenPort makes such changes legible through stable response envelopes and machine-readable `agent.*` reason codes. The paper's taxonomy distinguishes credential problems, scope and policy denials, invalid actions and rate limiting, and its suggested client behavior differs for each:

Result categorySuggested client behavior
Invalid or expired credentialStop and follow the approved credential recovery route
Scope denialRefresh discovery; a broader task needs an operator decision
Policy denialExplain the constraint and reconsider the request
Unknown or invalid actionRefresh the catalogue and check the documented input
Rate limitBack off using the supplied guidance

These are recovery paths, not routes to more access. A scope denial is not a reason to look for another credential, and a policy denial is not an invitation to search for a bypass. The protocol's aim is that recovery is deterministic, especially when the correct answer is no.

What the paper establishes

The paper presents a reference runtime and an executable governance toolchain: layered conformance profiles, negative security tests, fuzz and abuse regression, and release-gate scans. It evaluates the core profile at a pinned release tag using artifact-based, externally reproducible validation. Discovery belongs to that core profile, alongside stable envelopes and draft-first writes.

The scope of that claim matters. The preprint verifies externally observable protocol invariants against a pinned reference runtime. Production deployments build on it with durable governance state, distributed admission control and hardened domain adapters, and those are outside what the paper evaluates. It specifies how discovery should behave; it does not measure how agents plan differently when shown a filtered catalogue.

Questions that remain open

When should a client refresh its manifest? Reason codes signal some changes, but an authorization context can narrow without any request failing, and the balance between caching and freshness is not yet settled.

How much does a filtered view reveal? Omitting a tool hides its details, yet differences between two credentials' catalogues may still say something about policy.

How should partially permitted tools be described? A tool may be allowed for some fields or some records and not others. Expressing that faithfully in a schema, without exposing the restricted parts, is harder than omitting a whole tool.

And how do filtered manifests carry across bindings? OpenPort lets existing tool ecosystems, including Model Context Protocol (MCP) clients, map to its core through optional bindings. Whether every binding preserves authorization-dependent discovery, rather than flattening it into a static list, depends on each implementation.

The arXiv preprint sets out the protocol, the authorization model and the validation toolchain in full, and the OpenPort project page describes the protocol surface.