Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents
Santos-Grueiro & Romero-Ruiz in Agents
Can a guard approve one tool call while another runs?
Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents
A reservation task exposes the gap

On tau-bench, a gateway writes `reservation_id`: U86B6B and `Reservation_ID`: I3EHXC. Go approves and logs I3EHXC; the MCP SDK cancels U86B6B, another customer's reservation.
How the approval comes unstuck
- 1
Choose a policy field
Here, `reservation_id` determines whether the user owns the reservation the agent is about to cancel.
- 2
Exploit case matching
Go folds both key spellings into one field, with the later value winning; the MCP SDK matches exact names.
- 3
Deliver, approve, execute
The gateway sends identical bytes to both. The guard logs the user's ID; the executor cancels another customer's.
Six places leave a parsing choice open

The paper traces framing, escape decoding, key selection, type conversion, schema validation, and call-ID binding, each a possible source of different calls.
Parser differences appear beyond the case study
Of 55 deployed-parser pairs, 43 read at least one repeated or disguised-key input differently.
Every sampled schema accepted undeclared top-level fields; 558 of 4,693 distinct schemas (11.9%) yielded different arguments or verdicts across tested configurations.
A server's schema can ask for data the guard ignores

An impersonating server adds required `encoding` to a copied schema and leaves a note. In 29/30 trials, the model sent the workstation name to the server; the guard logged only `path`.
Different parser gaps, different concrete harms
A raw-text filter misses `credenti\u0061ls.txt`; the SDK decodes it and creates `credentials.txt` with the secret token.
The schema accepts extra fields; forwarded `output` bypasses a guard checking only `pattern`, so `; echo GHOST-KQX7` runs in the shell.
The tool receives content the guard did not assess in its effective form.
Models filtered structure, yet carried bytes in strings
In observed outputs from ten tested models, no repeated or disguised key appeared in the outer tool-call structure.
A case-varied key survived in 82/84 copied strings and split a CPython guard from Go's executor on replay; escaped filenames survived in 72/84.
Copying bytes and following instructions are separate model behaviors.
Send the approved object, not original bytes

D5 parses original bytes once, including schema-marked JSON strings, projects approved fields, fills defaults, and seals calls and results to their IDs. Unlike D3/D4, it sends approved calls, not original bytes, to the executor.
The shared parse held in the reported tests
Strict schema checks, comparing two parsers, and checking once then forwarding original bytes each had bypasses. Provider strict mode cannot control gateway edits or attacker-written schemas.
It let none of 7,412 crafted inputs through and blocked none of 1,120 benign calls in the reported evaluation.
Where these results stop
D5 coverage
It does not implement `oneOf` or `anyOf`, check types, or parse JSON strings unless the approved schema marks them as JSON text; none surveyed did.
Model observations
The main copying test used 25 trials per model; seven of ten API/router routes returned parsed or reserialized calls, hiding raw byte forms.
Sample and vector scope
The survey covered 4,693 schemas from one registry and six reference servers; V4 used single parsers, while V6 used author-built ID rules and binders.
Why it matters
- A parser disagreement can separate what a guard approves from what a tool actually does.
- Pass the guard's parsed, schema-projected call to the executor; seal it with its call ID across process boundaries.
- Open design question: how should protocols make nested JSON and schema interpretation unambiguous across implementations?
12 slides, 3 min
25 Nov 2026