Tool CallingdebuggingIntermediate

The agent calls search_web when it should query the database

Symptoms

  • Asked "how many open orders does customer 4821 have?", the agent calls search_web and returns a vague guess.
  • The query_database tool would answer exactly, but the agent rarely picks it.
  • The same agent uses query_database correctly when the user literally says "query the database."
tools available:
  - search_web:    "Search for information to answer questions."
  - query_database: "Query the internal database for information."
user: "how many open orders does customer 4821 have?"
chosen tool: search_web  args={"q":"customer 4821 open orders"}

Investigate

Inspect areas in any order (0/6 inspected). When you think you know the root cause, commit to it.

Tool descriptions
Tool schemas / examples
Tool names
Context
Prompt
Evals