TRANSMISSION // 2612.03586v1
Giving AI Tool Calls a Task-Specific Passport
Source published
A proposed MCP proxy checks whether an AI agent’s tool calls fit the user’s task, combining signed permissions, a model inspector and human review.

An AI agent may have permission to use a tool and still use it for the wrong purpose. Researchers test a proxy that tries to tie each call to the task at hand—and find both promising safeguards and important unanswered questions.
An AI assistant asked to prepare a revenue report may need to read sales records and generate a report. But if a record contains hidden instructions, the assistant might try to export customer emails or send the report to an outside address. The call could use tools the assistant is technically allowed to access while still betraying the user’s request.
That gap is the focus of a preprint by Ridwan Amure and Precious Sanni. They argue that Model Context Protocol (MCP) authorization, which determines what tools a client may call when a token is issued, does not by itself check whether a particular call serves the user’s task. Their proposed answer is to check tool calls at the boundary between the agent and the MCP server.
A passport for each task
The system, called SemFW, places a proxy between an AI agent and the tools it uses. Before a task begins, a trusted issuer creates a signed, short-lived “Contextual Passport.” It records a task label, permitted tools and permitted resources—for example, the sales dataset named in the request.
The proxy checks each call against that passport. Calls that request an unlisted tool or resource are denied by deterministic checks. Calls that fit those limits face a second question: do their arguments appear to serve the task? A local language model, called the inspector, makes that judgment. High-risk calls flagged by the system can be held for an authenticated human to approve.
This distinction matters. A passport can rule out a delete or export tool for a report task, but it may not catch misuse of an allowed tool. A report-generation call could still include instructions to send its output to an unrequested external address. The inspector is intended to assess that kind of mismatch. It is a probabilistic judgment, not a guarantee.
The authors also model the protocol in Tamarin, a tool for symbolic security analysis. Their model checks properties such as whether calls stay within an issued passport and whether approval is authenticated. It exposed a potential weakness in standard proof-of-possession protection: if a proof does not cover the request body, an observed proof could be reused with a different call. SemFW adds a body hash so that the proof is tied to the specific request.
Strong results on fixed tests, with caveats
In a fixed test corpus of 73 calls, the passport checks stopped every tested escalation to an unauthorized tool or resource. Those checks alone did not stop misuse involving tools and resources that were already permitted. For that in-scope misuse, the hardened inspector reduced attack success from 100% to no more than 4.2% across the tested local models. It also passed 85.3% to 88.2% of benign calls, meaning some legitimate calls were still held or blocked.
The evaluation included 39 attack cases and 34 benign calls, including deliberately difficult benign examples. The authors also tested calls derived from AgentDojo, a benchmark involving multi-step agent tasks. There, tracking where destination values came from mattered: with a Gemma inspector, the reported false-alarm rate fell from 32.4% to 6.9% when the proxy tracked destination provenance and used a model to identify injected instructions in results. The reported attack stop rate for that setup was 91.4%. This result depends on the model’s ability to identify tainted content; a different taint detector produced substantially more false alarms.
The system’s boundaries also matter. In the fixed-corpus results, if every held call were approved, the estimated attack success rate for the hardened and ensemble configurations rose to 30.8%–35.9%. The study simulated both denying every hold and approving every hold; it did not measure how accurately people would decide, or whether repeated approval requests would lead to fatigue.
What remains unproven
The formal analysis supports claims about protocol behavior under its modeled assumptions. It does not show that the passport correctly captures what a user meant. That depends on policy choices and on translating natural-language requests into task labels and resource lists. In a preliminary test on 20 prompts, the prototype’s models matched both the expected label and resource set in 78.3% to 90.0% of runs. The test did not evaluate whether the associated tool permissions were complete or appropriate.
Most importantly, the authors have not tested whether agents can reliably finish clean tasks using passports issued from task descriptions. A restrictive policy may block attacks but also prevent useful work; a permissive one may leave gaps. The fixed-call experiments also do not capture every behavior of an agent generating calls as it works.
This is a preprint, so its findings should be treated as provisional rather than as established production performance. Its results support the idea that task-aware checks can complement model-level defenses, not replace correct policies, careful human review or further testing. Whether the passport approach can balance security with successful task completion remains an open question.
- AI agent security
- Model Context Protocol
- prompt injection
- tool authorization
- runtime security
- formal verification
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A finer-grained fence for AI agents’ tool calls
Shared method: Both papers put authorization checks outside the agent before a tool call executes. SemFW checks calls against a signed, task-specific passport and uses an inspector for calls that pass deterministic checks; ToolFence checks proposed calls and concrete arguments against task-scoped capabilities with a deterministic monitor, using provenance to constrain sensitive values. Their enforcement designs differ, and their reported evaluations use different benchmarks and conditions, so the results are not directly comparable.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.03586v1 — Original paper
Excerpt reference:
static/papers/2612.03586v1.md:417-490
Basis: Paper text
Source file SHA-256:62db22b0f19637543a14d6e8559b8a0f8841fae4a810d122f9fd14556fb66c3d2612.03586v1 — Original paper
Excerpt reference:
static/papers/2612.03586v1.md:180-260
Basis: Paper text
Source file SHA-256:62db22b0f19637543a14d6e8559b8a0f8841fae4a810d122f9fd14556fb66c3d2609.37196v2 — Original paper
Excerpt reference:
static/papers/2609.37196v2.md:16-56
Basis: Paper text
Source file SHA-256:e15db5d62820abc6f8b72ad32e4411e5b3b3b38cb65611edd8ce6e2edf64c11a2609.37196v2 — Original paper
Excerpt reference:
static/papers/2609.37196v2.md:260-322
Basis: Paper text
Source file SHA-256:e15db5d62820abc6f8b72ad32e4411e5b3b3b38cb65611edd8ce6e2edf64c11a
A policy checkpoint for AI agents before they act
Shared method: Both designs separate enforcement from the LLM and evaluate proposed tool actions at runtime. SemFW mediates MCP calls using a signed passport, deterministic scope and resource checks, and semantic inspection; AgenticRei describes an external policy decision point that evaluates proposed calls using verified credentials and policy conditions, with an initial OpenClaw hook integration. AgenticRei additionally represents obligations and operational context; the excerpts do not establish comparable performance.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2612.03586v1 — Original paper
Excerpt reference:
static/papers/2612.03586v1.md:417-490
Basis: Paper text
Source file SHA-256:62db22b0f19637543a14d6e8559b8a0f8841fae4a810d122f9fd14556fb66c3d2612.03586v1 — Original paper
Excerpt reference:
static/papers/2612.03586v1.md:330-416
Basis: Paper text
Source file SHA-256:62db22b0f19637543a14d6e8559b8a0f8841fae4a810d122f9fd14556fb66c3d2612.04095v1 — Original paper
Excerpt reference:
static/papers/2612.04095v1.md:121-179
Basis: Paper text
Source file SHA-256:23ad3a81fffea503161ca2096f47fc74ca277b2a88f0f3e4ce825e175fa060fa2612.04095v1 — Original paper
Excerpt reference:
static/papers/2612.04095v1.md:657-707
Basis: Paper text
Source file SHA-256:23ad3a81fffea503161ca2096f47fc74ca277b2a88f0f3e4ce825e175fa060fa
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A finer-grained fence for AI agents’ tool calls
Source published
Shared keywords: ai agent security, prompt injection, tool authorization
A Signed AI Tool Can Leak Data Through an Approved Service
Source published
Shared keywords: ai agent security
Conflux puts permission checks outside the language model
Source published
Shared keywords: ai agent security, formal verification, prompt injection
A policy checkpoint for AI agents before they act
Source published
Shared keywords: ai agent security
When AI agents recover, can they lose their safeguards?
Source published
Shared keywords: ai agent security, model context protocol