VaikoraVaikora

Vaikora › Blog › Product Updates

MCP tool authorization: what actually happens when an AI agent requests a tool call and who decides

Product Updates · Nov 29, 2026 · 4 min read

MCP (Model Context Protocol) gives AI agents a standard way to discover and call external tools. The authorization question that follows is specific: when an agent requests a tool call at runtime, what checks run, in what order, and what enforces the decision?

Without an inline control layer, the answer is usually "the tool itself, if it has any checks at all." That is a late enforcement point.

What MCP tool calls look like at the wire level

An MCP-compatible agent sends a structured request naming the tool, the action, and the parameters. The server hosting that tool receives the request and either executes or rejects it. Standard MCP carries no built-in authorization policy beyond what the tool server implements. If a tool server accepts a valid session token, it executes.

This matters because the agent itself chooses which tool to call and what parameters to pass. A prompt injection, a confused deputy attack, or a misconfigured agent can produce a valid-looking tool request that the tool server has no reason to reject. The session is authenticated. The tool is listed. The request executes.

Where authorization enforcement needs to sit

The right enforcement point is between the agent and the tool call, before the request leaves the agent runtime. That means inspecting the tool name, the action type, the parameters, and the context (which agent, which session, which user identity) against a policy that produces a deterministic verdict: allow, block, modify, or require-approval.

Deterministic is the key word. If identical input does not always produce identical output, you cannot audit the policy or rely on it in regulated environments. A probabilistic filter applied post-hoc is not an authorization control.

Vaikora Guard MCP is an MIT-licensed, self-hosted proxy that sits inline in the MCP call path. Every tool request passes through it before reaching the tool server. The policy engine runs there, not at the tool server.

What the policy engine checks

For each tool call request, the enforcement point evaluates:

A concrete example: an agent managing a customer support workflow has access to a CRM tool. Policy allows read on any customer record. Write operations require that the record ID in the parameter matches the authenticated session's customer scope. A tool call that passes a different record ID, perhaps via an injected instruction in a customer message, matches the write action type but fails the parameter scope check. The request is blocked before it reaches the CRM tool server. No write occurs.

Approval workflows for high-risk actions

Some tool calls are not clearly block-or-allow. A file deletion, an API call that triggers a financial transaction, or any action that is irreversible at the tool level warrants a require-approval verdict rather than an automatic block. The enforcement point holds the request, routes it to a reviewer, and only forwards it once approved. If the timeout expires without approval, the default policy applies (usually block).

This is different from logging the action after it occurs. The tool call does not proceed during review.

Audit chain on every decision

Every verdict Vaikora writes is signed into a SHA-256 hash-chained audit log. This gives you an ordered, tamper-evident record of which tool requests were allowed, which were blocked, which were modified (for example, a parameter was stripped before forwarding), and which are pending approval. For any incident or compliance review, you can reconstruct exactly what the policy decided and when, without relying on tool-server logs that may be incomplete or absent.

The audit chain matters for MCP tool authorization specifically because tool servers are often third-party services. You may not control or fully trust their logging. The enforcement proxy's log is the authoritative record.

Integration with your existing security stack

Tool call decisions can feed into your existing detection and response workflow. Vaikora integrates natively with Microsoft Sentinel, CrowdStrike Falcon, SentinelOne, and AWS Security Hub, so a blocked or high-severity tool call surfaces as a signal in the platform your SOC already monitors. You are not running a separate queue to watch.

What to check next

If you are running MCP-compatible agents today, audit the actual call path: where does a tool request travel between the agent runtime and the tool server, and what policy runs at that point? If the answer is "nothing outside the tool server's own access control," that is the gap to close.

The Vaikora Guard MCP proxy is published on PyPI under MIT license. You can deploy it in your own environment, configure a policy file, and observe what tool calls your agents are actually making before you decide what to block.

See Vaikora enforce policy on your AI

Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.

Get a demo Self-host the gateway

More from the Vaikora blog