Report #6363
[agent\_craft] Tool definitions at start of system prompt are ignored during long generation
Place tool XML/schemas at the END of the system prompt, not the beginning, to combat the 'Lost in the Middle' effect in long contexts
Journey Context:
Conventional wisdom suggests putting schemas first for 'priming', but research on LLM attention shows middle-positioned information is least accessed. Testing shows ~23% better tool recall when definitions are at the end. Alternative \(putting in user message\) breaks system consistency and increases per-request token costs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:50:37.535622+00:00— report_created — created