Flashcard: what is a tool in an LLM agent?
A tool is a named function with a schema the agent can call at runtime; tools are what let the agent act on the world beyond producing text.
Picture someone solving a puzzle. They are sharp, but if all they can do is talk, they can only ever describe a solution. Now hand them a calculator, a phone, and a search bar. Suddenly they can compute, look things up, and call other people. They still do the thinking, but now the thinking turns into actions. A tool is one of those handheld helpers for an AI agent. Each tool has a label and instructions stuck on the front (the schema), so the agent knows what the tool is for and how to use it. When the agent decides it needs a particular tool, it asks for it by name, and the runtime actually picks it up and uses it. Tools are how an LLM stops being a clever talker and starts being an agent that does things.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define a tool as a named function with a schema, walk through how the schema reaches the model via the prompt, explain that the model emits a request and the runtime executes the call, give two or three concrete tool categories, and mention scope as a safety control.
Real products, models, and research that use this idea.
- OpenAI function calling and Anthropic tool use both accept a JSON schema per tool and return structured tool_use blocks that your runtime executes.
- Anthropic's Model Context Protocol (MCP) exposes tools as discoverable server endpoints so Claude clients can plug into local file systems, databases, and APIs.
- Cursor and Cline expose tools like read_file, edit_file, run_shell_command, and grep to coding agents; the editor runtime executes them after the model emits the request.
- LangGraph and the OpenAI Agents SDK both wrap function-calling APIs with a registry plus loop that drives the call execute observe cycle in production agents.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does the model actually pick which tool to call from a registry of twenty?
QWhat happens when a tool's parameter shape changes between releases?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking the LLM runs the tool itself. The model emits a structured request naming the tool and arguments; the runtime is what actually executes the function and feeds the result back.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.