Your createTicket tool returns only the string “OK”.
The agent then needs to link the user to the ticket it just made.
- ATell the agent to guess the ticket number
- BHave the agent call a separate search tool to find the ticket it just created
- CReturn the full internal database row, every column included
- 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 Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path