Tool design · 2026-08-27

Your createTicket tool returns only the string “OK”.

The agent then needs to link the user to the ticket it just made.

  1. ATell the agent to guess the ticket number
  2. BHave the agent call a separate search tool to find the ticket it just created
  3. CReturn the full internal database row, every column included
  4. DReturn the created ticket’s id and status so the agent can act on it

Answer: D

Return the created ticket’s id and status so the agent can act on it

Why

Return exactly what the caller needs to continue - here, the new ticket’s id and status. Not a bare “OK” (which forces a re-lookup), and not a raw dump of everything.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path