all answers

General agent concepts

Tool calling

Tool calling is how a language model acts outside its own text. The model is given a set of tool definitions, each with a name, a description, and an argument schema. When it decides a tool is needed, it emits a structured call naming the tool and its arguments, the runtime executes the call, and the result goes back into the model's context. The model can then answer or chain further calls, and an agent is essentially this loop run until the task is done. Three model-side steps sit inside it: choosing the tool, forming the arguments, and interpreting what comes back.

It exists because a model on its own can only generate text from what's already in its context. Tools let it fetch data that changes, like a database row, a search result, or a calendar, run computation it can't do reliably in its head, and take real actions like sending a message, editing a file, or calling an API.

An agent reaches for a tool when the task needs something outside the model's context or beyond text generation: current state it can't know, an action with side effects, or an answer that has to be exact where a plausible guess isn't enough. The tool definitions the agent carries set what it can do. Which tool the model picks, and the arguments it forms, decide what it actually does.

7 questions

Answered, plainly.

Why did my agent call the wrong tool with invented arguments?The model matched your request to the tool whose description sounded closest, then filled a gap in the arguments with a plausible guess instead of a real value.answerCan parallel tool calls break if one depends on the other running first?Yes. Running two tools at once removes the ordering their logic depended on, and the dependent one can execute before its precondition exists.answerDoes tool selection accuracy get worse as an agent gets more tools?Yes. Narrowing a five-tool list down to only what a query needs raised selection accuracy on medium-difficulty queries by 16 percentage points in one study.answerHow reliable are MCP tool calls in production?Not very, on average: a 2026 stress test of 100 MCP servers found a median 71% pass rate per call, which compounds to about 18% across a five-call chain.answerWhat's the difference between tool calling and function calling?None in practice: OpenAI and Google call the mechanism function calling, Anthropic calls it tool use, and tool calling is the general term for all of them.answerWhat are the ways a single tool call can fail?A tool call fails in one of three places: the model picks the wrong tool, it fills in the wrong arguments, or it misreads what the tool returns.answerWhat is tool calling?Tool calling is how a language model acts outside its own text: it emits a structured call naming a tool and its arguments, and a runtime executes it.answer

Send us the traces you already emit.