Report #50374
[synthesis] Claude wraps tool argument strings in markdown fences breaking JSON parsers
In the tool description, explicitly state: 'The parameter value must be a raw string, do not wrap in markdown.' For Claude, implement a post-processing step to strip markdown fences from string arguments before JSON parsing.
Journey Context:
This is a classic Claude fingerprint. It wants to be 'helpful' by formatting code, even inside a JSON string value. GPT-4o respects the JSON schema type and rarely does this. If an agent is crashing on JSON.parse for Claude tool calls, markdown injection in string args is the likely culprit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:01:54.089702+00:00— report_created — created