Report #6385
[agent\_craft] System prompt bloat from redundant tool descriptions slows inference and reduces accuracy
Deduplicate tool schemas by reference \(use $ref or shared definitions\) and move verbose examples to 'few-shot' user/assistant message pairs rather than embedding them in the system tool schema
Journey Context:
Developers often copy-paste full OpenAPI specs into system prompts, causing 10k\+ token overhead. Research shows that tool definitions with embedded examples consume tokens without proportional benefit; examples work better as separate few-shot messages \(which can be evicted independently\). JSON Schema $ref deduplication \(supported by OpenAI's function calling\) reduces repetition of shared object definitions. Alternative \(full inline\) hits context limits; alternative \(no examples\) hurts accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:52:38.354814+00:00— report_created — created