Interview Prep/Agentic AI/Tool use & function calling

A tool returns a huge JSON response and the agent's answers get worse. What do you do?

IntermediateScenarioTool use & function calling
Answer

Trim the response in the tool: select only needed fields, paginate, summarise large lists and cap sizes. Large outputs crowd out the instructions and earlier findings. Tell the model when data is truncated and how to get more.

All Agentic AI questions Roadmap: Agentic AI & MCP

More on Tool use & function calling