Automation and AI

Function Calling

Also called tool use, tool calling

A way for an AI model to ask software to carry out a defined action, such as checking stock or booking an appointment, and use the result.

Quick facts: Function Calling

Category
Automation and AI
Also called
tool use, tool calling
Level
Advanced
Affects
AI assistants, booking and support automation, agentic commerce, data security
Where to see it
AI provider developer platforms, MCP servers, CRM and booking system APIs
In this article4
  1. How function calling works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

Function calling, also called tool use, is the ability of an AI model to request that a piece of software carries out a specific action, such as checking stock, looking up an order or booking an appointment, and then use the result in its answer. The model does not run the action itself; it produces a structured request, and your system decides whether to run it.

How function calling works

A developer describes the available tools to the model: each one’s name, what it does and what information it needs. A booking tool might be described as “check_availability: returns free appointment slots for a given date and service”.

When a customer writes “Have you got anything for a men’s haircut on Saturday morning?”, the model recognises that the tool is relevant and replies, not with prose, but with a structured request: call check_availability with the date of the coming Saturday and the service “men’s haircut”. The application runs that request against the real booking system through its API, sends the results back to the model, and the model turns them into a natural reply: “There are slots at 9.30 and 11.15. Shall I book one?”

Chaining several of these steps together, with the model deciding what to do next, is what turns a chatbot into an AI agent. The Model Context Protocol (MCP) is an open standard, released by Anthropic and since adopted by other AI companies, that makes it easier to connect AI applications to tools and data sources in a consistent way.

Why it matters

Function calling is what lets AI move from talking about things to doing them. For a business, the practical uses include website assistants that check real availability rather than guessing, internal tools that pull figures from Google Ads or a CRM on request, and support assistants that look up an order status instead of telling the customer to email.

It also shapes how customers will increasingly find and buy. At the time of writing (October 2026), AI assistants and browsers are starting to complete tasks for users, such as comparing products, filling baskets and making reservations, through tool use. This is often called agentic commerce. Businesses whose stock, prices and booking systems can be read reliably by software are better placed for that shift than those whose details sit only in PDFs or images.

Common mistakes

  • Giving the model too much power. A tool that can issue refunds or delete records should not run without limits or approval.
  • Vague tool descriptions. The model chooses tools based on their descriptions. Unclear wording leads to the wrong tool or wrong inputs.
  • Trusting inputs blindly. The model may pass a malformed date or an invented order number. Validate every request before acting on it.
  • Exposing personal data. A tool that returns full customer records to answer a simple question shares more than needed.
  • No logging. Without a record of what the model called and why, mistakes are hard to trace.

How to act on it

If you are commissioning an AI assistant or agent, start with read-only tools, such as checking availability, opening hours or order status, before allowing anything that changes data or spends money. For actions with consequences, keep a human in the loop who confirms before the action runs. Ask your developer to log each tool call and to return only the fields the task needs.

On the marketing side, make sure the facts AI systems look for (services, prices, areas covered, availability) are published clearly on your site. How AI tools find, read and act on information about a business is the subject of my AI search optimisation work.

Do and do not

Do

  • Start with read-only tools
  • Validate every request before running it
  • Log each tool call and its result

Do not

  • Let a model spend money or delete data without approval
  • Return more personal data than the task needs
  • Write vague tool descriptions

Questions people ask about this

Is function calling the same as an AI agent?

Not quite. Function calling is the mechanism that lets a model request an action and receive the result. An AI agent uses that mechanism repeatedly, deciding which tools to call and in what order to complete a larger task. You can use function calling for a single lookup without building an agent.

Can an AI model run code or make purchases on its own?

Only if the application around it allows it. With function calling, the model produces a request, and the software decides whether to carry it out. Well-built systems limit which tools are available, check every request, and ask a person to confirm anything that spends money or changes records.

Do I need a developer to use function calling?

To build your own tools, usually yes, because someone has to describe the tools and connect them to your systems through an API. Many business software products now include AI assistants with tool use already built in, such as assistants inside CRMs and ad platforms, which you can use without writing code.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.