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. Model requestsReturn tool name + typed JSON args
- 2. Runtime checksValidate schema, scope, and approval
- 3. Execute toolCall API with server-side credentials
- 4. Return outputFeed structured result back to LLM
Tool calling vs. static retrieval (RAG)
| Dimension | Tool calling | Static document retrieval (RAG) |
|---|---|---|
| Primary role | Fetch live state and perform actions in external systems | Search and quote static text documents |
| Data freshness | Real-time API or database lookups | As fresh as the last indexing job |
| Side effects | Can create drafts, update records, or trigger workflows | Read-only by design |
| Security focus | Scoped permissions, credential vaulting, approvals | Document-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.