Report #79982
[agent\_craft] Model ignores tool definitions or selects wrong tool due to poor prompt placement
Place tool XML/JSON definitions immediately after the role description and high-level task, never at the end of the prompt or mixed with conversation history.
Journey Context:
Models exhibit strong recency bias and attention decay. When tool definitions are placed at the end of a long system prompt, they are overshadowed by user-specific instructions that follow, causing the model to hallucinate tool names or ignore schema updates. Conversely, placing them too early without a preceding role anchor causes the model to adopt the tool format as its persona. The 'Role-Tools-Context' ordering anchors the agent's capabilities before presenting the specific mission, maximizing adherence to tool schemas.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:50:54.370564+00:00— report_created — created