AI Glossary / Agents and automation / Intermediate

Tool use

Tool Use (Agents and automation)

Definition

Tool use is the ability of an AI model to request that an outside program or service do something on its behalf, such as search a database, run a calculation, send a message or call a business system. The model does not run the tool itself. It produces a structured request, and surrounding software carries it out and returns the result. Tool use is often called function calling, and the exact terms vary by vendor.

What it means

A language model on its own works only with the text it was trained on and the text you give it. It cannot check today's stock level, read your ledger or book a meeting. Tool use closes that gap. It lets the model ask for information or for an action, then continue its work with the answer in hand.

For a business, this is what moves an AI system from talking about work to taking part in it. A model with tools can look up an invoice, check a policy document, draft a record and file it. The same feature also raises the stakes, because a wrong answer can now become a wrong action. Which tools a model may use, and what each tool is allowed to do, are the main design decisions.

How it works

First, the developer describes each available tool to the model: its name, what it does and what inputs it needs. These descriptions are placed in the model's context alongside the user's request. The model reads the request and decides whether a tool would help. If so, it replies with a structured call, for example the tool name and a set of input values, instead of a normal answer.

Second, the surrounding application receives that call, checks it and runs the real tool. It then passes the result back to the model as new text. The model reads the result and either answers the user or requests another tool. This loop can repeat several times for one task, and it is the basic building block of AI agents.

Third, the quality of the outcome depends on several plain engineering choices. Clear tool descriptions help the model pick the right tool. Input checks catch malformed or unsafe requests before they run. Permissions limit what a tool can touch. Logs record every call so people can review what happened. Shared standards, such as the Model Context Protocol, aim to make connecting tools to models more consistent, though practice still varies.

Three practical examples

  • Finance team: An assistant is given a read-only tool that queries the accounts payable system. When a manager asks which supplier invoices are more than 30 days overdue, the model calls the tool, receives the rows and writes a short summary. It cannot approve or pay anything.
  • Retailer: A shopping assistant has tools to check live stock by store and to look up an order's delivery status. A customer asks whether a jacket is available nearby, and the model checks the stock tool instead of guessing from old product text.
  • Support desk: A help assistant can search the knowledge base and create a ticket draft. It searches first, answers if it finds a clear match, and otherwise creates a draft ticket for a human agent to review and send.

Think of it this way

Think of a new office assistant who has no memory of your files but a phone list of colleagues. When asked a question, they do not guess. They phone the right person, listen to the answer and then reply to you. The analogy stops working because the assistant understands why each call matters, while a model only predicts which call fits the text, so it can pick the wrong tool or the wrong inputs without noticing.

Worked example

A small distributor wants an assistant to answer stock questions. It has a stock lookup tool, and each call costs a fixed 0.002 dollars in system charges. Staff ask 400 stock questions a day. If every question needs one tool call, the daily tool cost is 400 x 0.002 = 0.80 dollars. Now suppose the model sometimes needs a second call to confirm a warehouse code, and that happens on 25 percent of questions. That adds 400 x 0.25 = 100 extra calls, so total calls are 400 + 100 = 500. The daily cost becomes 500 x 0.002 = 1.00 dollar. Over 250 working days that is 250 dollars a year. The cost is small. The larger question is accuracy: if 4 percent of the 400 daily answers use a wrong tool input, that is 400 x 0.04 = 16 wrong answers a day, which is the number worth measuring and reducing.

Illustrative case study

Fictional case: Harbor Lane Supplies, a made-up wholesale firm, gave an internal assistant two tools: one to read order status and one to update delivery dates. In the first week, a staff member asked the assistant to move one customer's delivery. The assistant called the update tool and, because the request was loosely worded, changed the date on every open order for that customer. The team caught it from the call log within the hour and restored the dates by hand. They then made three changes. The update tool now required a single order number and rejected anything broader. Any date change needed a confirmation click from the staff member. The assistant kept read access to all orders but write access to none by default. After the changes, the logs showed no further bulk edits, and staff still saved time on status lookups.

Common misconceptions and mistakes

The model runs the tool itself. In fact the model only writes a request, and separate software decides whether and how to run it, which is where checks and limits belong.

More tools always make an assistant more useful. Each extra tool adds more chances for the model to choose wrongly, so a short list of well-described tools usually works better than a long one.

A tool result is always correct, so the final answer must be too. The tool may return stale or incomplete data, and the model can still misread it, so important outputs need review.

Tool use is the same thing as an agent. Tool use is one capability; an agent also plans, loops and decides what to do next, usually by using tools many times.

Business use

Start with one narrow task and read-only tools. Pick a question people ask often, such as order status or invoice lookup, connect one tool, and compare the assistant's answers with the source system for a few weeks. Add write actions only after the read-only version is reliable, and keep a human confirmation step for anything that changes records, spends money or contacts customers.

Measure tool call success rate, wrong-input rate, answer accuracy against the source system, time saved per task and the number of actions blocked by permission checks. Costs include per-call charges, engineering time to build and maintain each tool, and review effort. The main risks are unintended actions, exposure of sensitive data through a tool with broad access, and over-trust in outputs. Least-privilege access, logging and clear ownership of each tool reduce these risks.

People also ask

Is tool use the same as function calling?

They are closely related and often used interchangeably. Function calling is the name some vendors give to the feature that lets a model request a tool in a structured format.

Can an AI model with tools change my data without asking?

Only if you give it a tool with write access and no confirmation step. You control this by granting read-only access by default and requiring human approval for changes.

How is tool use different from retrieval-augmented generation?

Retrieval-augmented generation fetches documents to inform an answer. Tool use is broader: it can fetch data, but it can also calculate, send or update things in other systems.

Check your understanding

Who actually runs the tool when a model uses one?

Answer: The surrounding application runs it. The model only produces a structured request.

In the worked example, how many tool calls are made per day?

Answer: 500 calls: 400 first calls plus 100 extra calls from the 25 percent that need a second call.

In the worked example, how many wrong answers a day come from a 4 percent wrong-input rate?

Answer: 16 wrong answers, because 400 x 0.04 = 16.

What change in the Harbor Lane case stopped bulk edits?

Answer: The update tool was limited to a single order number, with a confirmation click and no default write access.

Related terms

  • AI agent
  • Agentic workflow
  • Human-in-the-loop
  • Guardrails
  • Retrieval-augmented generation
  • Prompt injection
  • Function calling
  • Model Context Protocol

Learn next

Try listing three tasks in your own team where an assistant would need live data, and mark which need only reading and which need an action. Then read about AI agents to see how repeated tool use becomes a plan, and about guardrails and human in the loop to see how to limit what tools can do.

  • Human-in-the-loop
  • Guardrails

More in Agents and automation

  • Software agent - A software agent is a software system that acts within an environment on behalf of a user or another system, with some degree of autonomy.
  • State machine agent - A state machine agent is an agent built as an explicit set of states and transitions: it is always in one known state, such as waiting, collecting details...
  • Straight-through processing - Straight-through processing, or STP, is the completion of a defined transaction or business process through connected automated steps without manual...
  • Sub-agent - A sub-agent is an agent that works under another agent's direction: it receives a specific subtask, does it with its own tools or skills, and returns the...
  • Utility-based agent - A utility-based agent is an AI system that chooses actions by scoring the possible outcomes with a utility function, a numerical measure of how desirable...
  • Workflow engine - A workflow engine is software that coordinates the execution of a defined process.

Sources

Anthropic, Building effective agents: https://www.anthropic.com/engineering/building-effective-agents Model Context Protocol, specification and documentation: https://modelcontextprotocol.io Yao et al., ReAct: Synergizing Reasoning and Acting in Language Models: https://arxiv.org/abs/2210.03629 The sources were consulted for how models request and use tools, how tool results feed back into a model, and shared standards for connecting tools; the examples, analogy, worked example and case are original educational illustrations. Checked 10 Nov 2026.

Previous: Tone mapping Next: Top-down design

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer