Report #47151
[synthesis] Downstream parsing failures because LLM injects markdown formatting inside plain string tool arguments
Explicitly state 'Plain text only, no markdown formatting' in the tool parameter description for GPT-4o and Gemini.
Journey Context:
Developers assume that if a tool parameter is defined as type 'string', the LLM will pass raw text. However, GPT-4o and Gemini frequently inject markdown \(e.g., \*\*bold\*\* or \`\`\`code\`\`\`\) inside string arguments if the context implies formatting is useful. Claude generally respects the implicit boundary of the tool argument and passes raw text. This markdown injection breaks downstream parsers that expect unformatted strings, requiring explicit negative prompting in the schema description for OpenAI/Gemini.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:37:05.313146+00:00— report_created — created