AI 101 — What is tool calling?

Share
AI 101 — What is tool calling?

Tool calling — also called function calling — is a language model's ability to say "I need this specific external action run, with these exact arguments" instead of answering from memory. The model does not run anything. It writes a structured request in a format your code agreed to in advance, and your code does the doing. That one handshake is what turns a chatbot into software that can book, query, calculate, and file.

Why it matters right now

Every agent story you read this month rests on it. A coding agent that opens a pull request, a car agent that pays a toll, an assistant that checks a calendar before replying — none of those models have hands. They have a way to request work, and a loop that feeds the result back.

OpenAI shipped the mechanism as a public API feature on June 13, 2023, in the gpt-4-0613 and gpt-3.5-turbo-0613 models, with the pitch that it was "a new way to more reliably connect GPT's capabilities with external tools and APIs." Anthropic, Google, and every open-weights framework that matters copied the shape. By 2026 it is table stakes: a model that cannot emit a valid tool call cannot be used as an agent, and shipping a model without that ability is a product decision, not an accident.

The mental model

Five moves, repeated in a loop.

One — publish a menu. You hand the model a list of tools: a name, a plain-English description of what it does, and a schema (usually JSON Schema) declaring each argument's name, type, and meaning.

Two — the model decides whether to order. Given your question, it either answers from what it already knows or picks a tool. Anthropic calls this the auto tool choice; you can also force a specific tool or forbid one.

Three — it emits a call, not prose. Out goes a structured object: which tool, which arguments. get_current_weather(location: "Boston", unit: "celsius"). Machine-readable, so your code can act on it without parsing an essay.

Four — your code executes it. This is the part people get backwards. The model never touches the weather service, the database, or the bank. Your application runs the call and returns the result as a new message.

Five — the model reads the result and answers, or orders again. Reasoning and acting interleaved like that is the pattern the ReAct paper described in October 2022, and it is still the shape of an agent loop. What is an AI agent? covers that wrapper in full.

A bustling scene inside a Turkish döner shop kitchen in Bursa, Türkiye, showcasing culinary preparations.

An everyday analogy

A restaurant kitchen. You tell the server you want the lamb, medium rare, no onions. The server cannot cook — does not need to know how. What the server can do is translate your messy sentence onto an order ticket with exactly the fields the kitchen reads: dish, temperature, exclusions. The kitchen runs the ticket, sends back a plate, and only then does the server bring it to you and answer your question about the side.

A bad order ticket wastes a whole pass. So does a badly specified tool. That is why the description and the argument schema matter more than most prompts do: the model can only order from a menu it can read.

Common misconceptions

"The model executes the tool." No. It requests. Your code executes, and your code is where permissions, rate limits, and confirmations live. Any product that lets a model act without that layer is not more autonomous — it is less monitored.

"Tool calling is the same as MCP." Tool calling is a model capability: emit a well-formed call. The Model Context Protocol is a standard for delivering tools and results between an application and a server, so you do not hand-write a connector per integration. What is MCP? explains the plumbing. One is the ability to order; the other is a common ticket format every kitchen accepts.

"More tools means a more capable agent." Each tool definition is tokens in the prompt, and every extra option is one more thing the model can pick wrongly. Anthropic publishes the overhead honestly: on Claude Sonnet 4.5, enabling tool use adds a 496-token system prompt before your tools and their schemas are counted on top. Researchers at UC Berkeley built the Berkeley Function Calling Leaderboard (BFCL) around exactly this failure class — wrong function, wrong arguments, and the case where no listed function fits and the model should decline. Current BFCL rounds add multi-turn and agentic tasks, plus cost and latency per model, because a correct call that takes nine round trips is its own kind of failure.

"A tool call is trustworthy output." It is a proposal shaped like a request. A tool's result is also untrusted text as far as the model is concerned, which is how a poisoned page or a doctored file can steer the next call — the same hazard as prompt injection. Treat the arguments as input, not as instruction.

Where to learn more

Start with OpenAI's original function-calling announcement for the concept, Anthropic's tool-use documentation for the round-trip mechanics (parallel calls, forced choice, result blocks), and the BFCL leaderboard and its code for what "correct" actually means in practice. Then build the smallest real thing: one tool, one question that needs it, and print the call the model makes before you execute anything.

Related reading: What is MCP? · What is an AI agent?

Which tool call would you want a confirmation prompt before an AI ever made — and which should just run? Write to us via our contact page.

Source: OpenAI — Function calling and other API updates

Get SiliconNoon in your inbox

One email a day with the AI stories that matter — what happened, the numbers, and why it matters. No spam, unsubscribe in one click.

Read more

AI 101 — What is an AI agent?

AI 101 — What is an AI agent?

An AI agent is a system that uses a language model to do a job for you — not just answer a question, but pick the next step, use tools, and keep going until the work is finished. A chatbot waits for you. An agent takes the goal and acts. That is the whole difference, and it is why the word is on every product page this year. Why it matters right now Software used to automate work by following a script a human wrote in advance. Agents flip that: the model writes the next step as it goes.

AI 101 — What is a KV cache?

AI 101 — What is a KV cache?

A KV cache is the working memory a language model keeps of the text it has already read, so it can write the next word without redoing the work for every word that came before. That is the short answer. The reason it deserves an explainer is that this cache — not the model's weights — is usually what decides how many people one GPU can serve at once, and therefore what long conversations and agent loops actually cost. Why it matters right now Every agent that runs for twenty minutes and…

AI 101 — What is an NPU (neural processing unit)?

AI 101 — What is an NPU (neural processing unit)?

An NPU is a chip built for one job: running the math that neural networks do, at a fraction of the power a general-purpose CPU or a graphics GPU would burn. The name covers anything from the block inside your phone's processor to a USB stick in a robot to a rack card in a datacenter. Vendors also call it an AI accelerator or a neural engine, and it is the hardware reason "on-device AI" stopped being a marketing phrase. Why this matters right now The NPU is the quiet spec war of 2026.

AI 101 — What is a diffusion language model?

AI 101 — What is a diffusion language model?

A diffusion language model writes text the way an image generator paints a picture: it starts with a block of noise and refines the whole thing over several passes, instead of typing one word at a time left to right. Almost every AI you have used does the typing. This is the main rival design, and in the last week it went from research curiosity to something running real phone calls and coding agents. The reason it is in the news is Inception's Mercury 2.5 release, which the company calls the…

StackGen puts one governance plane under every production agent

StackGen puts one governance plane under every production agent

Coding agents made change volume explode. Operations absorbed the blast without a comparable upgrade — and StackGen's answer is to stop bolting agents onto four silos and put one operating system underneath all of them. StackGen launched its Autonomous Operations Factory on Tuesday, a control plane that runs infrastructure, DevOps, observability and reliability agents against a single shared model of what is deployed, what changed, what broke and what fixed it.