tool call
A model's structured request to run one tool with given arguments, returned instead of, or alongside, text.
In more detail
Treat a call as a request, not a command: check the tool name exists, validate the input against the schema and check permissions before anything runs. Each call has an id that its result must echo.
Related terms
- tool result — The message your code sends back after running a tool call, matched to it by id, which the model reads before continuing.
- tool dispatcher — The code that receives a model's tool call, checks the tool name and input, runs the matching function and builds the result.
- tool use — Letting a model ask your code to run named functions with arguments, so it can fetch data or take actions it cannot do in text.
Taught in
- The Request And The Response — AI Engineering: LLM Apps, RAG & Agents
- Streaming Responses — AI Engineering: LLM Apps, RAG & Agents
- Reasoning Techniques — AI Engineering: LLM Apps, RAG & Agents
- How RAG Works And When To Use It — AI Engineering: LLM Apps, RAG & Agents
- Function Calling — AI Engineering: LLM Apps, RAG & Agents
- Designing Tools A Model Can Use — AI Engineering: LLM Apps, RAG & Agents
- The Agent Loop — AI Engineering: LLM Apps, RAG & Agents
- Agent SDKs And Human Approval — AI Engineering: LLM Apps, RAG & Agents
- What MCP Is — AI Engineering: LLM Apps, RAG & Agents
- Build An MCP Server — AI Engineering: LLM Apps, RAG & Agents
- Remote Servers And Trust — AI Engineering: LLM Apps, RAG & Agents
- Prompt Injection — AI Engineering: LLM Apps, RAG & Agents
- Excessive Agency — AI Engineering: LLM Apps, RAG & Agents
- Evaluating RAG And Agents — AI Engineering: LLM Apps, RAG & Agents
- Capstone: The Tasks Assistant — AI Engineering: LLM Apps, RAG & Agents