Home / Glossary / AI and machine learning

AI and machine learning

Tool calling

Also searched as: function calling, tool use

In shortTool calling lets an AI model ask software to do something it cannot do alone, such as search a database, fetch a page or create a record. The model chooses a tool and supplies the inputs, your system runs it and the result goes back to the model. It turns a text generator into something that can act.

By Aditya Aman, working in SEO for almost a decade and hands-on with AEO and GEO as those fields have developed. Updated 25 November 2026.

  • What it isA model requesting a defined action from outside software.
  • Who it matters toTeams building AI assistants and automated workflows.
  • Who runs the toolYour application does, not the model itself.
  • How it is checkedLog every call, test inputs and limit permissions.
  • Common mistakeGiving a tool more access than the task needs.

What is tool calling?

A language model on its own only produces text. It cannot check today's rankings, read your analytics or update a spreadsheet. Tool calling bridges that gap. You describe a set of tools to the model, each with a name, a purpose and the inputs it takes.

When a request needs one, the model replies with a structured request naming the tool and its inputs. Your software runs it, then returns the result so the model can write the final answer. The model never touches your systems directly.

How does the loop work step by step?

The pattern is the same whether the tool looks up a keyword volume or creates a task in a project tracker. Understanding the loop helps you see where checks belong.

  1. User asks a questionFor example, which of our pages lost impressions last month?
  2. Model picks a toolIt returns a request naming a reporting tool and the date range.
  3. Your system runs itYour code checks the request, calls the data source and collects the result.
  4. Result goes backThe model reads the data and writes an answer in plain language.
  5. You log the callStore the request and result so you can audit what happened.

Where is it useful, and where does it need care?

Reporting assistants, content checkers and lead routing helpers are typical uses. The model decides which lookup to run, and your tools keep the data accurate by reading from the real source rather than from the model's memory.

Care is needed with tools that change things. A read-only tool is low risk. A tool that sends email or edits live pages should require human approval, because a wrong call has real effects.

Tool typeRiskSensible control
Read-only lookupLowLog calls, limit data scope
Create a draftMediumHuman review before publishing
Send or publishHighExplicit approval step
Delete or edit recordsHighAvoid, or require sign-off

What are common mistakes?

Broad permissions are the usual problem. Give each tool the narrowest access it needs. Also validate inputs before running them, because text from a web page or user can try to steer the model into harmful calls, a risk known as prompt injection.

Need help with Tool calling on your site?

Tell us what is not working. We will check where this affects your search results and what to fix first.

Book a meetingAEO services

Questions people ask

Is tool calling the same as function calling?

Mostly yes. Different vendors use different names for the same idea: the model asks for a defined function to be run and receives the result. Check the current documentation of your platform for its exact terms and behavior.

Does the model run the tool itself?

No. The model only produces a request. Your application decides whether to run it, runs it and returns the output. That gap is where you place validation, permissions and logging.

How is tool calling related to Model Context Protocol?

Model Context Protocol is a standard way of describing and connecting tools and data sources to AI applications. Tool calling is the underlying behavior of a model requesting a tool. They work together but are not the same thing.

Inspect the original evidence