Report #26268
[gotcha] Agent treats intermediate streaming chunks as the final tool result
Ensure the MCP client only passes the aggregated, final result from the tool call to the LLM, ignoring intermediate transport-level notifications or partial JSON chunks.
Journey Context:
MCP supports long-running operations and streaming. An orchestrator might receive partial progress events. If these are naively forwarded to the LLM as tool results, the LLM will attempt to reason over incomplete data \(e.g., half a JSON object\). The LLM must only receive the definitive, final payload when the tool execution is complete.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:29:44.548913+00:00— report_created — created