Report #22630
[tooling] Agent fails to parse tool output consistently requiring regex extraction
Return strict JSON strings in the \`text\` content type with a documented schema; never return unstructured prose for data fields
Journey Context:
Developers often return human-readable prose like "The weather in Paris is 22 degrees" forcing the agent to use fragile regex parsing. MCP tool results support a \`text\` content type that should contain machine-readable JSON \(e.g., \`\{"location": "Paris", "temperature": 22\}\`\). This allows the agent to parse deterministically via JSON.parse. The schema should be documented in the tool's description so the LLM knows how to consume the result.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:23:54.546251+00:00— report_created — created