Building with AI

What is tool use in AI?

In short

Tool use is when an AI model calls outside tools, such as a search engine, a calculator, a calendar or a company system, to get information or take an action.

A language model on its own can only write text. With tool use, the developer describes the available tools, and the model decides when to call one and with what input. The tool runs, the result goes back to the model, and it continues. This is what turns a chatbot into an agent.

Mini course

3 short lessons, about 2 minutes in total

  1. Giving the model hands
  2. The loop
  3. Designing tools well

Lesson 1

Giving the model hands

On its own, a language model can only produce text. Tool use, also called function calling, lets it reach out: look up an order, check a calendar, search the web, run a calculation, create a ticket. You describe each tool, with its name, purpose and inputs. When the model decides a tool would help, it replies with a structured request instead of an answer.

Your code, not the model, actually runs the tool.

Lesson 2

The loop

The model asks for a tool with specific inputs. Your system runs it and sends the result back. The model reads the result and either answers or asks for another tool. Repeating this loop is what makes an AI agent. Standards like MCP make it easier to offer many tools without custom code for each.

Your code
Tool runs
System or API
Answer
The model decides a tool is needed and asks for it. Your code runs the tool and returns the result, and the model uses it in its answer

Tap a box to open that concept

Clear tool names and descriptions matter as much as the prompt.

Lesson 3

Designing tools well

Give each tool one clear job. Describe when to use it and when not to. Validate every input before acting. Make read tools freely available and put approval on tools that change, send or pay. Return short, useful results and clear error messages, so the model can recover.

  1. Customers find youHow customers and AI tools find the companySEOGEOGoogle AI Overviews
  2. AI in daily workTools staff and customers useChatbotAI copilotVoice AI
  3. Building blocksHow AI connects to data and systemsTool use in AIRAG (retrieval-augmented generation)AI agentMCP (Model Context Protocol)
  4. AI modelsThe models that understand and createLarge language model (LLM)Generative AIMachine learning
  5. DataCompany data, gathered and cleanedData warehouseETLData quality
  6. InfrastructureCloud, networks and systems underneathCloud computingDatabaseAPI key
Trust and rulesSecurity, law and control in every layerGDPR and AIEU AI ActAI guardrails
Where Tool use in AI sits in a company's AI setup

Start with two or three tools that cover the most common tasks, then add more as needed.

An everyday example

Asked "what is our revenue this month?", the model calls the accounting system's API, gets the figure and writes the answer.

How companies use it

Companies give AI tools to look up orders, book meetings, update the CRM and fetch live prices.

In the news

OpenAI

· OpenAI

OpenAI and Salesforce bring sales and marketing workflows into ChatGPT

A company that already uses Salesforce can ask ChatGPT about pipeline, campaigns and quotes without moving its data.

Frequently asked questions

Is tool use the same as function calling?

Tool use and function calling are two names for the same idea.

Can the AI use any tool it wants?

An AI can only use the tools the developer has connected and allowed, not any tool it wants.

Is it risky to let AI use tools?

Letting AI use tools can be risky. Limit tools to what is needed, require approval for risky actions and log every call.

In depth: Tool use in AI

The full picture, about 4 minutes of reading

Giving the model hands

A language model on its own can do one thing: read text and write text. It cannot look up today's orders, check a calendar, send an email or calculate a large sum with certainty. Everything it says comes from patterns learned in training and whatever is in the conversation.

Tool use, also called function calling, changes that. The developer of an AI application connects a set of tools, such as a search engine, a calculator, the CRM, the order system or the calendar, and describes each one to the model. When the model decides a tool would help answer a request, it asks for that tool to be used, with specific inputs. The application runs the tool and hands the result back to the model, which then continues its answer. The model still only writes text, but some of that text is now a request that makes something happen in the real world.

Why it matters

Without tools, an AI assistant is limited to what it already knows, and that knowledge has gaps. It does not know your prices, your stock, your customers or anything that happened after its training ended. Asked about them, it either says it does not know or, worse, makes up a plausible answer.

With tools, the assistant can fetch the real figure instead of guessing. Asked "what is our revenue this month?", it calls the accounting system and reports the actual number. Asked "can we deliver 40 units by Friday?", it checks stock and delivery times.

Tools also let AI do things, not just talk about them: create a draft invoice, book a meeting, update a customer record, open a support ticket. This is the step that turns a chatbot into an agent, an AI system that can carry out tasks over several steps.

How the loop works

Every tool has three parts in its description: a name, a short explanation of what it does and when to use it, and a list of the inputs it needs. A tool for looking up orders might be called "find_order", be described as "look up an order by order number or customer email", and take an order number or an email address as input.

When a request comes in, the model sees it together with these descriptions. If it decides a tool is needed, it replies with a structured request, such as "call find_order with order number 10482", instead of a normal answer. The application checks the request, runs the tool and sends the result back. The model reads the result and either answers the user or asks for another tool, for example looking up the delivery status next.

Repeating this loop, request, run, read, decide, is what lets AI complete multi-step tasks. Standards such as MCP, the Model Context Protocol, make it easier to offer many tools without custom code for each AI app.

Where it goes wrong

Tool use brings power, and with it new kinds of mistakes.

Wrong choice. The model may pick the wrong tool, or skip a tool and guess, especially if descriptions are vague or two tools look alike.

Wrong inputs. It may pass a customer name in the wrong format, mix up two order numbers or invent a value it did not have.

Misread results. A tool returns a long, confusing response or an unclear error, and the model draws the wrong conclusion.

Harmful actions. A tool that sends, pays or deletes can do damage if the model misunderstands the request, or if it has been manipulated. Text in an email or web page the model reads can contain hidden instructions meant to trick it into misusing a tool. This attack is called prompt injection, and no model is fully immune to it.

Each of these can be reduced by good design, but not removed, which is why limits and approvals matter.

Designing tools well

Give each tool one clear job and a name that says what it does. Describe when to use it and, just as important, when not to. Keep the list of tools short: a few well-described tools work better than dozens of overlapping ones.

Check every input before acting on it. The application, not the model, should confirm that an order number exists, an amount is within limits and the user is allowed to see the data. Make tools return short, useful results and clear error messages, such as "no order found with that number", so the model can recover sensibly.

Separate reading from acting. Tools that only read can usually be offered freely. Tools that change, send, pay or delete should require a person to confirm, at least at first. Log every call with its inputs and results, so you can see what happened and improve the setup.

What it means for a small business

For a small business, tool use is what lets AI work with your real information instead of general knowledge. Many AI assistants now offer ready-made connections to common tools such as email, calendars, file storage, CRMs and accounting systems. Switching these on can make answers far more useful.

Start with read-only tools for one clear purpose, such as letting staff ask about customers or orders, and check the answers against the source. Add tools that act only when the reading part is reliable, and keep human approval on anything that reaches customers or moves money. Review now and then which tools are connected and remove the ones nobody uses.

Curious what this could mean for your company? Book a call.

Book a call