Oops!... I Parsed It Again: Tool-Call Smuggling Against LLM Agents: what it means for business leaders
When the guard that approves an agent's tool call and the executor that runs it parse the same JSON differently, an attacker can get one call approved and logged while another one runs.
1. What the method is
Tool-call smuggling is an attack class against LLM agents, named after HTTP request smuggling. An agent's tool call is a JSON argument document that is parsed several times on its way to an effect: by the provider, gateways, SDKs, the framework, the guard that approves it and the executor that runs it. JSON leaves some readings open, such as which copy of a repeated key counts. When guard and executor resolve the same bytes differently, the guard approves one call, the executor runs another, and the audit log records the approved one. The paper defines the attack in five steps and names six vectors: repeated or disguised keys, type conversion, escapes, truncated streams, schema interpretation and call-ID confusion. It also proposes a defense: parse each call once, keep only the fields of the approved schema, and hand that result to the executor, sealed with its call ID.
2. Why the method was developed
Agent security work has concentrated on the model's decisions: prompt injection, poisoned tool descriptions, steered tool selection. The defenses built in response, whether a policy engine, a data-loss filter, capability checks or a person clicking approve, all assume that the call they check is the call that runs. That assumption rests on parsing code nobody had examined as a class. Isolated advisories already pointed at it: the MCP Go SDK matched field names regardless of case (CVE-2026-27896), the parser adopted to fix that read a key with a trailing NUL as the plain key, and an Envoy AI Gateway advisory showed a policy log reporting ALLOWED while the backend ran something else. Each was treated as one component's bug. The authors argue the flaw lives in the composition, so testing any single parser finds nothing, and no component in their study is wrong on its own terms.
3. Who should care
Security and platform engineering teams that run agents behind a policy gateway, an MCP proxy or a human approval step are the first audience, because the control they rely on is only as sound as the agreement between its parser and the executor's. Compliance and audit should care because the audit log stores the guard's reading, so a later review shows an approved, harmless call. Product teams that let agents cancel orders, write files or run commands for customers carry the direct exposure; the paper's lead example cancels another customer's reservation and refunds it. Anyone who lets agents connect to third-party MCP servers faces a separate risk: a server that copies a legitimate tool's schema and adds one field can collect user data past the guard. Procurement should ask gateway and framework vendors how arguments are parsed and whether the original bytes are forwarded.
4. How the method works
The attacker picks an argument that decides the guard's verdict, writes bytes the two parsers resolve differently, and gets those bytes to both. In the lead example a compromised gateway puts the victim's reservation under reservation_id and the user's under Reservation_ID; a Go guard ignores case and approves the user's, while the MCP SDK executor matches the exact name and cancels the victim's. Other variants hide a blocked file name behind a JSON escape that a raw-text filter does not decode, or add an undeclared field that a validator accepts and a forwarding layer passes into a shell command. Three attacker positions matter: content the model reads, the tool's schema, and the bytes in transit. The defense parses once, including JSON text nested in string arguments, drops every field outside the approved schema, fills defaults, and seals the call with its ID using a key shared between guard and executor.
5. How it was evaluated
The authors built a differential harness that feeds identical bytes to 17 pinned configurations, twelve argument parsers and five schema validators, including CPython's json, Go's encoding/json, the segmentio decoder before and after its fix, two official MCP SDKs, LangChain's partial parser and Ajv and jsonschema under two schema drafts. They surveyed 5,778 tools on 106 MCP servers, yielding 4,693 distinct schemas. End-to-end attacks ran on tools from tau-bench and AgentDojo with real executors, feeding bytes to the guard as an on-path attacker would. To measure what models pass on, they collected forced tool calls from ten models, six commercial and four open-weight, 25 trials each, with 95% Wilson intervals that cover repeated trials of one prompt per model. Five defenses were tested against an attacker who knows them, on four attack scenarios and 7,412 crafted inputs. The text we read is truncated in the discussion section.
6. How it performed
Of 55 pairs of deployed parsers, 43 read some repeated or disguised key differently; the two official MCP SDKs split on 21 of 22 type inputs; 558 of 4,693 deployed schemas (11.9%) gave different arguments or verdicts. Three end-to-end attacks succeeded with logs naming only the approved call. Models filter much of this: none of ten wrote a repeated or disguised key into the call itself, and the escaped file attack failed in all 100 model-written calls. Inside a string argument holding JSON text, however, a case-varied key split guard and executor in 82 of 84 calls, and an impersonating server's added field carried user data out in 29 of 30 trials. Strict validation, dual parsing and parse-then-forward were each bypassed; the shared parse stopped all 7,412 inputs. The strongest attacks need an on-path position, and the defense was tested only on the authors' scenarios. Our call: act now on auditing guard and executor parsing and closing approved schemas, and pilot the shared parse. (Source: arXiv 2611.30624, 2026)
← Back to dossier index