Agent Auth Gateway v1.0

Guides / 7 min read

MCP Authorization: Controlling Which Tools an Agent May Call

Published 2026-11-14 · Reviewed 2026-11-14 · By the Ingenious AI team

Adding an MCP server to an agent feels like adding a library. Operationally it is hiring a contractor with a master key: every tool that server exposes is now something your agent can be made to call, with your credentials, at machine speed.

The short answer

Authorise MCP at the tool level, per agent. When a server is connected, enumerate its tools, classify each as read, write or destructive, and put only the tools that agent's job needs on its allowlist. Enforce the list at the gateway — a tool not on the list is refused even though the server offers it — and attach argument and spend limits to the dangerous ones: maximum amounts, named resources, approval for first use. Re-enumerate on a schedule, because servers change their catalogues without asking you.

Check your own setup as you read: run the free Spend Guard self-check or test a policy in the playground — five minutes, no signup, and the gaps it names map to the controls below.

Worked example: 34 tools connected, 5 needed, 1 disaster

Bluefinch Analytics, a fictional data consultancy, connected a general-purpose MCP server — filesystem, database, shell, web and email tools, 34 in total — to a reporting agent whose job needed five read tools. During a client engagement the agent, following instructions in a client's uploaded notebook, used the server's shell tool to run a cleanup command it had composed itself, deleting a shared results folder containing 11 days of computed output. Recomputation cost $1,900 and a week of schedule; the agent had never needed the shell tool for a single legitimate task.

Bluefinch now authorises MCP per agent: the reporting agent's allowlist holds its five read tools, the server's write tools sit behind approval for two named senior agents, and its destructive tools are denied for every agent identity. The gateway re-enumerates the server weekly; when the vendor added two new tools in an update, they arrived denied by default and were enabled only after review. The same notebook trick was tried in a later engagement and met a refusal that named the tool, the agent and the source file.

A server's catalogue is not your agent's permissions

MCP standardises how tools are offered; it does not decide which tools a given agent should wield. That decision is yours, per agent, and it belongs in the same policy that holds the agent's other allowlists. Default posture matters most: tools arrive denied and are enabled deliberately, or they arrive enabled and are removed after an incident. Bluefinch's 34-tool accident is what the second posture costs; the first posture costs a review meeting.

Classify tools by what they can do, not what they are called

Names lie politely: a 'manage' tool may delete, an 'export' tool may exfiltrate. Read each tool's schema and classify by effect — read, write, destructive, money-moving, external-sending. Classification drives the rule template: reads allowed within the agent's resources, writes capped and logged, destructive and money tools behind approval or denied, external sends restricted to allowlisted destinations. When a server updates, re-classify the diff before enabling anything new.

Arguments carry the real risk

Tool-level permission is the start; argument limits are where incidents are actually prevented. A database query tool the agent may use becomes safe in proportion to the tables it may name; a payment tool becomes bounded by its maximum amount; a filesystem tool by its root directory. Enforce argument constraints at the gateway against the agent's policy, so a fooled or confused agent calling an allowed tool with dangerous arguments is refused on the arguments, with the refusal logged in full.

Servers change; re-vet like you re-check a supplier

Vendors ship tool updates, rename parameters and widen schemas. A catalogue you vetted in January is a historical document by June. Schedule re-enumeration, diff it against the vetted inventory, and treat every change as a small change-request: new tools default-denied, widened schemas re-classified, removed tools cleaned from allowlists. The health probe pattern — reachability, auth posture, inventory — exists for exactly this ongoing verification, not only for onboarding.

Onboarding a new MCP server, step by step

Treat a new server like a new supplier with system access. First, probe it: reachability, transport behaviour and auth posture, from the supply-chain scanner. Second, enumerate and classify its full tool catalogue by effect, reading schemas rather than names. Third, decide — per agent, not globally — which tools enter which allowlists, with argument limits written at the same time. Fourth, snapshot the vetted catalogue into the server's registry entry and schedule its re-vetting. Fifth, enable it for one low-risk agent first and read its first week of calls before widening. Five steps, most of them an hour; the order matters, because enabling before classifying is how catalogues become permissions by accident.

Five actions to authorise MCP servers safely

  1. Enumerate every connected MCP server's tools and classify each by effect: read, write, destructive, money, external send.
  2. Build per-agent tool allowlists from the job's real needs; everything else is denied at the gateway by default.
  3. Attach argument limits — amounts, resources, directories — to every dangerous allowed tool.
  4. Re-enumerate servers on a schedule and treat catalogue changes as change requests, new tools denied until reviewed.
  5. Log every MCP tool refusal with the agent, tool and arguments so boundary-probing is visible.

Source note and related guides

Figures in the worked example are illustrative, drawn from a fictional company created for this guide; the controls, failure patterns and procedures described are the gateway's documented behaviour — see the Agent Auth Gateway documentation and the policy patterns in allowlists vs denylists, spend caps and the agent kill switch. Reviewed by the Ingenious AI team, 2026-11-14.

Sources

  • Model Context Protocol specification — Authorization, the MCP standard for OAuth-based authorization of MCP servers: modelcontextprotocol.io, 2025
  • RFC 6749, The OAuth 2.0 Authorization Framework, the IETF standard behind scoped, expiring access tokens: rfc-editor.org, 2012
  • OWASP Top 10 for Large Language Model Applications, the OWASP GenAI Security Project's risk list for LLM and agent systems: owasp.org, 2025

Frequently asked questions

Should every agent be able to use every MCP tool on a server?

No. Connecting a server offers its whole catalogue; authorising it is a separate, per-agent decision. Bluefinch's reporting agent needed 5 of 34 tools — the shell tool it never needed caused a $1,900 incident.

How do I control what an MCP server lets my agents do?

Enforce a per-agent tool allowlist at the gateway, with argument limits on dangerous tools. A tool the server offers but the policy does not list is refused before execution.

What happens when an MCP server adds new tools in an update?

They should arrive denied by default. Re-enumerate on a schedule, diff against the vetted inventory, classify new or widened tools, and enable only after review.

Why do argument limits matter if the tool is allowed?

Because risk lives in the arguments: which table, which directory, how much money. A fooled agent calling an allowed tool with dangerous arguments should be refused on the arguments and logged.

How often should MCP servers be re-vetted?

On a schedule — weekly or monthly by risk — and on any vendor update. Servers change their catalogues silently, and a vetting is a statement about a version, not a permanent property.

Governing agents in production?

Spend caps, approval queues, policy simulation, burn forecasting, and step-up lockdowns — all built into the gateway. Free tier to start. Or test policies in the playground with no signup.

Share this: X Facebook LinkedIn WhatsApp
← When Prompt Injection Spends Money: Boun… All guides MCP Tool Poisoning: Defending Against Ma… →