What is tool calling?

Tool calling (also known as function calling) is the capability that allows a large language model to request an external action—such as querying a database, calling an API, or drafting an email—by returning a tool name and structured JSON arguments. The host application validates permissions, executes the tool, and feeds the result back to the model.

By Sacha Arbonel, Founder and CTOLast updated
  • Also called
  • Function calling
  • Tool use
  • Tool

Why does tool calling matter?

Tool calling is what turns a text-only LLM into an actionable agent connected to real business data. Because the model chooses which calls to make, strict permission boundaries and approvals around every tool are critical.

Tools let an agent act: look up an account, read an inbox, draft an email, issue a refund. The model is told which tools exist and what they take. When it decides one is needed, it returns a call with arguments, the application runs it, and the result goes back to the model.

Because the model chooses the calls, tools should have narrow permissions, and consequential ones should require approval.

Key characteristics of tool calling

  • The model never executes tools directly—it emits a structured call request that your runtime validates and runs.
  • Clear tool descriptions and typed parameter schemas dramatically improve call accuracy.
  • Read tools can typically run automatically, while write tools (send, pay, delete) should require approval.
  • Standard protocols such as MCP let agents connect to external tools consistently.

How tool calling works step by step

  1. 1. Model requestsReturn tool name + typed JSON args
  2. 2. Runtime checksValidate schema, scope, and approval
  3. 3. Execute toolCall API with server-side credentials
  4. 4. Return outputFeed structured result back to LLM
How a model tool call executes safely through your runtime.

Tool calling vs. static retrieval (RAG)

DimensionTool callingStatic document retrieval (RAG)
Primary roleFetch live state and perform actions in external systemsSearch and quote static text documents
Data freshnessReal-time API or database lookupsAs fresh as the last indexing job
Side effectsCan create drafts, update records, or trigger workflowsRead-only by design
Security focusScoped permissions, credential vaulting, approvalsDocument-level access control

Example in practice

How Norilu handles tool calling

Frequently asked questions

Does the language model execute the API call itself?
No. The model only outputs the requested tool name and JSON arguments. Your application runtime validates the call, attaches server-side credentials, executes it, and passes the response back.
How many tools should one agent have access to?
Grant only the narrow set of tools needed for that agent’s job. Giving an agent dozens of unrelated tools increases token overhead, lowers tool-selection accuracy, and widens security risk.

Go deeper