Report #84468
[synthesis] Downstream JSON parser crashes because model wraps tool arguments in markdown formatting
Add 'Parameter values must be plain text, do not use markdown formatting \(e.g., \*\*, \*, \#\)' to the system prompt, and sanitize tool arguments by stripping markdown before JSON parsing.
Journey Context:
GPT-4o has a known behavioral fingerprint where it frequently wraps string arguments in markdown \(e.g., returning \*\*My File\*\* for a filename parameter\) if the parameter name implies a displayable field like title or summary. Claude tends to return raw strings. If the downstream tool or JSON parser expects strict unformatted text, GPT-4o's markdown injection breaks execution. Prompting helps, but a defensive strip-markdown sanitizer on the tool arguments before execution is necessary for cross-model reliability.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:22:06.570410+00:00— report_created — created