# Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents

> This paper shows how parser differences can make an agent's guard approve one tool call while its executor runs another. In tests, parsing once, retaining approved fields, and binding calls to IDs stopped the built attacks and all 7,412 crafted inputs.

- arXiv: https://arxiv.org/abs/2611.30624
- Authors: Igor Santos-Grueiro, Daniel Romero-Ruiz
- Published: 2026-11-25
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.30624
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can a guard approve one tool call while another runs?

**0 / 7,412** bypasses among crafted inputs with shared parse

## A reservation task exposes the gap

![Figure 2](https://cdn.instaxiv.com/figures/2611.30624/figure2.webp)

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. (Figure 2)

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

![Figure 3](https://cdn.instaxiv.com/figures/2611.30624/figure3.webp)

The paper traces framing, escape decoding, key selection, type conversion, schema validation, and call-ID binding, each a possible source of different calls. (Figure 3)

## Parser differences appear beyond the case study

**Parser pairs:** Of 55 deployed-parser pairs, 43 read at least one repeated or disguised-key input differently.

**Public MCP schemas:** 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

![Figure 5](https://cdn.instaxiv.com/figures/2611.30624/figure5.webp)

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`. (Figure 5)

## Different parser gaps, different concrete harms

**Escaped filename:** A raw-text filter misses `credenti\u0061ls.txt`; the SDK decodes it and creates `credentials.txt` with the secret token.

**Undeclared shell field:** 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

**Outer tool-call object:** In observed outputs from ten tested models, no repeated or disguised key appeared in the outer tool-call structure.

**JSON text in a string:** 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

![Figure 6](https://cdn.instaxiv.com/figures/2611.30624/figure6.webp)

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. (Figure 6)

## The shared parse held in the reported tests

**Other defenses:** 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.

**D5 shared parse:** 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.

Best used when: Use shared parsing when separate components guard and execute calls, especially across network boundaries.

## Key takeaways

- 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?

## Links

- arXiv: https://arxiv.org/abs/2611.30624
- PDF: https://arxiv.org/pdf/2611.30624

## Citation

```bibtex
@article{santosgrueiro2026oops,
  title   = {Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents},
  author  = {Santos-Grueiro, Igor and Romero-Ruiz, Daniel},
  journal = {arXiv preprint arXiv:2611.30624},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.30624}
}
```
