# 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.

- Category: Agents
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-11-25
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/parser-disagreements-let-mcp-agents-approve-one-tool-call-but-run-another

## The study

Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents (preprint, not peer reviewed). arXiv 2611.30624. https://arxiv.org/abs/2611.30624

## At a glance

- What it shows: AI agents act by sending small structured messages called tool calls. The safety check and the program that acts on them often read the same message in slightly different ways. An attacker can exploit that gap so that one action is approved and another is carried out, while the record shows nothing wrong.
- What it does not show: It does not show real attacks on named live products or real harm: all victims and data were test fixtures. Some affected software is kept anonymous until fixes ship.
- Why it matters: Many companies rely on a check or a human sign-off before an agent cancels, deletes or sends something. This work shows that sign-off can cover a different action from the one that happens.

## What 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 the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/parser-disagreements-let-mcp-agents-approve-one-tool-call-but-run-another

## 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.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
