Report #100163
[agent\_craft] Tool descriptions in system prompts are parsed as XML, and malformed schema leaks into model reasoning
Wrap each tool definition in stable XML tags \(...\) with , , and sub-tags; keep parameter schemas indented and valid. This gives the model explicit structure to route calls and prevents schema keys from being misread as instructions.
Journey Context:
Agents often dump raw JSON schemas or bullet lists into the system prompt. The model then confuses schema keys with instructions, emits invalid calls, or ignores optional parameters. XML tagging isolates schema from instruction text and matches the format the underlying model was fine-tuned on. JSON schema is still the source of truth for parsing, but the \*prompt\* benefits from XML framing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-01T04:45:55.868135+00:00— report_created — created