Vaikora › Blog › Product Updates
MCP tool authorization gaps: what an uncontrolled agent can reach and how to close each one
Tool authorization in MCP is not a permissions checkbox. It is a sequence of decisions that happens between the moment an agent discovers a tool and the moment that tool executes. If nothing is making those decisions deterministically, the agent is making them by default.
Here is what that looks like in practice.
What "discovery" means and why it creates risk
When an AI agent connects to an MCP server, the server responds to a `tools/list` call with every tool it exposes: names, input schemas, descriptions. The agent reads that list and can call any tool on it. The server does not ask whether the agent should be allowed to call each one. It just advertises.
That means an agent running with broad system permissions can discover a `delete_records` tool, reason that it fits the task, and invoke it. No human sees this until after the fact, if the call is logged at all.
This is not a vulnerability in MCP. It is the expected behavior. MCP delegates authorization to whatever layer sits between the agent and the server. If that layer is nothing, everything is permitted.
Where the authorization decision actually belongs
The right place to enforce tool authorization is inline, before execution. Not in the system prompt, not in post-hoc log review. The agent issues a tool call request, and something with a policy engine intercepts it, checks it against a defined rule set, and either allows, blocks, modifies, or routes it to a human for approval before the call reaches the MCP server.
Vaikora sits at that position. It acts as an MCP-compatible proxy between the agent and any downstream tool or LLM. Every tool call passes through the enforcement point. The policy decision runs before execution, and identical inputs always produce identical decisions. There is no probabilistic element in the authorization path.
At P50, enforcement adds 8ms. At P99, it adds 45ms. For the kind of tools that do real work, that overhead is not the concern. The concern is what happens without it.
A concrete scenario: agent with write access to two systems
Say an agent has credentials for a CRM API and a Snowflake instance. It is tasked with generating a customer report. During execution, it discovers a `bulk_delete` tool on the CRM server and a `run_query` tool on Snowflake.
The `run_query` tool is expected. The `bulk_delete` tool is not.
Without an authorization gate, the agent can call both. With a policy that says "this agent class may call read-only tools only on these two systems," the `bulk_delete` call is blocked before it leaves the enforcement point. The agent gets a rejection response and cannot proceed down that path.
That policy is a deterministic rule, not a prompt instruction the model can reason around. The enforcement sits on top of the agent runtime, not inside it.
What the authorization policy needs to express
A tool authorization policy for MCP should be able to express at least these conditions:
- Which tools a specific agent identity may call
- Which tools are blocked entirely regardless of agent identity
- Which tools require a human approval step before execution
- Which tool call patterns trigger a flag even if the call is ultimately allowed (for example, a read tool called at high frequency in a short window)
Policies that only express allow/block are incomplete. The require-approval path matters for tools that are legitimate but carry enough risk that a human should confirm the specific call in context.
Audit trail: why the authorization record matters as much as the decision
Every authorization decision should produce a signed, ordered record. If you need to reconstruct why an agent did what it did, you need the full sequence: what tool was requested, what parameters were passed, what the policy verdict was, and when.
Vaikora writes each decision into a SHA-256 hash-chained audit log. Each entry references the previous one, so any deletion or modification of a record breaks the chain. That is the property that makes the log useful in an investigation rather than just for compliance review.
A log that records "tool call allowed" with no parameter detail does not tell you what data the agent was operating on. The parameter record is the investigation artifact.
What to check in your current setup
Before deploying MCP agents in any environment with write access or access to sensitive data, check these things specifically:
- Does your agent runtime make tool calls directly to the MCP server, or does something sit inline between them?
- If you have a proxy layer, does it enforce a named policy per agent identity or per tool, or does it only log what passes through?
- Is there a require-approval path for any tool, or is the only control allow/block?
- Can you produce an ordered, tamper-evident record of every tool call decision from the last 30 days?
If the answer to any of those is "no" or "I'm not sure," that is where to start.
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
Vaikora