Parser disagreements let MCP agents approve one tool call but run another
A preprint shows that the guard checking an AI agent's action and the program carrying it out can read the same data differently. A guard approves one action, a different one runs, and the audit log shows only the approved one.
scienceunderway.com/articles/parser-disagreements-let-mcp-agents-approve-one-tool-call-but-run-another

AI illustrationWhat the study shows
When a language model wants to act, it writes a tool call: the name of a tool plus its settings in JSON, a common text format for data. Before the call runs, a guard checks it against a policy and writes its decision to an audit log. Then an executor, the program behind the tool, runs it. The authors point out that the same bytes are read by many programs along the way, and JSON leaves some choices open. One example is which copy wins when a field name appears twice.
The authors call the attack tool-call smuggling, after a known web attack called HTTP request smuggling. They describe six ways the same bytes can become two different calls. These include repeated or disguised field names, numbers stored as text, escaped characters, cut-off data streams, loose schemas (the rules that say which fields a tool accepts) and mixed-up call identifiers.
They built a test harness that fed identical inputs to 12 JSON readers and 5 schema checkers, all real software at fixed versions. Of 55 pairs of readers, 43 disagreed on at least one input with repeated or disguised field names. Two official SDKs for the Model Context Protocol (MCP), a standard for connecting agents to tools, disagreed on 21 of 22 inputs about number types. Normal inputs caused no disagreement.
They also checked 4,693 distinct tool schemas from 106 public MCP servers. Every one accepted fields it did not declare. About one in eight gave different results depending on which component read it.
The authors then built working attacks on tasks from two public agent benchmarks, τ-bench and AgentDojo. In one, a guard approved cancelling the user's own airline booking, but the executor cancelled another customer's. In another, a data-loss filter blocking the word 'credentials' missed a file name with one letter written as a code, and the file was created. In each case the log named only the approved call. These attacks assume someone can rewrite the data in transit, such as a compromised gateway.
Attackers who only control what the model reads, such as a web page, had less success. None of ten tested models wrote a repeated or disguised field name into the call itself. But when a tool takes JSON text inside a single field, the models copied such tricks faithfully, and replayed calls split a Python guard from a Go executor in 82 of 84 cases.
A malicious tool server that copied a real tool's public schema and added one field got the models to fill it with private data. The user's workstation name leaked in 29 of 30 trials. The guard approved every call and never logged the extra field.
The authors' proposed fix, which they call a shared parse, reads each call once, keeps only fields from the approved schema, hands that exact object to the executor and seals it in transit. The authors report it let none of 7,412 crafted inputs through and stopped every attack they built. Strict schema checks alone stopped none of their test attacks.
Our reading
In our reading, the central point is simple and uncomfortable. Most agent safety work asks whether the model made a good decision. This paper asks whether the decision that was checked is the one that ran. In stacks where the guard and the executor are separate programs, often in different languages, the answer can be no, even when every component behaves exactly as documented.
The strongest attacks need a foothold on the path, such as a compromised gateway, or a malicious tool server. The weakest attacker, one who only plants text for the model to read, mostly failed to reach the call itself. That narrows the risk, but it does not remove it. Agents increasingly pass through third-party routers and connect to tool servers written by strangers.
On our readiness scale this sits at level III, open source available, with caveats. The harness and defences are released, but at an anonymous link, and parts tied to open disclosure reports are withheld. This is a preprint and has not been peer reviewed.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/parser-disagreements-let-mcp-agents-approve-one-tool-call-but-run-another
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | Working attacks and a defence were built and shown in a research setting with controlled test fixtures. |
| II Benchmarked | Met | Tested on public benchmarks' tasks (τ-bench airline, AgentDojo file tool), plus a survey of 4,693 deployed MCP schemas. The paper does not set a leaderboard, but the results are measured against named benchmarks and pinned components. |
| III Open source | Met | The authors release the harness, wrappers, attack setups and the five defences at an anonymous 4open.science link. It is partial: components with open disclosure reports are withheld and the link is anonymous, not a stable repository. |
| IV In production | Not yet | No documented production use of the shared-parse defence by a named organisation. Related fixes (e.g. MCP Go SDK, Teleport, ToolHive) are cited as other parties' patches, not as deployments of this design. |
What would move it up
Level 4 needs a named organisation running the shared-parse design (or the logging of executor-side calls) in a real agent gateway or SDK, with results reported. A stable public repository with the withheld components restored after disclosure, and independent replication, would firm up level 3.
The study
Igor Santos-Grueiro, Daniel Romero-Ruiz. Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents. arXiv, 23 November 2026. Read the paper
Notes
- Santos-Grueiro and Romero-Ruiz, 'Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents', arXiv preprint, November 2026, not peer reviewed. Source
- Released harness, attack setups and defences (anonymous link; components with open reports withheld). Source
- Exact figures: 43 of 55 parser pairs disagreed on V1 inputs; two MCP SDKs split on 21 of 22 V2 inputs; 558 of 4,693 schemas (11.9%) on 64 of 106 servers gave different results; attack D case-varied key split guard and executor in 82 of 84 replays, escape in 72 of 84; attack E leaked workstation name in 29 of 30 trials and user e-mail in 133 of 150 attempts on ten τ-bench tools; shared parse let none of 7,412 crafted inputs through.
- Readiness: level III (open source available), partial. Level IV would need a named organisation running the shared-parse design in production.
Edited and signed by
Stefan PerdalEditor and publisher142 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


