Report #40510
[agent\_craft] Agent ignores critical tool definitions placed at start of long system prompt, failing to invoke available tools
Place tool descriptions immediately before the first user message \(end of prompt\), not at the top; use 'Lost in the Middle' ordering: persona/context first, actionable schemas last
Journey Context:
LLMs exhibit U-shaped attention: strong on prefix and suffix, weak on middle. Placing tool JSON schemas at the very top of system prompts \(common practice\) buries them under the 'You are a helpful assistant...' preamble. Research on long-context models shows information retrieval accuracy drops 40% in the middle third. The fix is counter-intuitive: put static persona at top \(priming\), but put actionable schemas \(tools, constraints\) at the very end just before the user query, so they sit in the high-attention suffix zone.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:28:00.080770+00:00— report_created — created