Report #56872
[architecture] Agent blindly passes malformed tool output to the next agent
Wrap tool calls in a validation gate that checks the tool's return against an expected schema before the agent can formulate its final output for the handoff.
Journey Context:
Agents often treat tool outputs as ground truth. If a tool returns an error page instead of JSON, the agent might summarize the error as the answer and pass it downstream. By forcing a schema check on the tool output before the agent processes it, you prevent error cascades. Tradeoff: adds latency and requires defining schemas for tool outputs, which can be tedious.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:56:56.802225+00:00— report_created — created