What Is AI Function Calling?

Function calling is a capability that lets an AI model trigger external functions or tools by producing a structured request the surrounding software can run. Instead of only replying in text, the model can say which function to call and with what inputs, letting it fetch data or take actions in other systems.

How function calling works

Function calling works by giving the model a list of available functions, each described with its name, purpose, and expected inputs. When a request needs one, the model does not run the function itself; it returns a structured message naming the function and the arguments to use. The application then executes that function, such as looking up an order or sending an email, and passes the result back to the model to continue.

This turns a text-only model into something that can act. A model on its own cannot check today's inventory or book a meeting. With function calling, it can request those actions and use the results, which is the mechanism behind most AI agents and tool-connected assistants.

Function calling vs tool use

The two terms describe the same core idea and are often used interchangeably. Tool use is the broader concept of an AI model using external tools; function calling is the common name for the specific mechanism that makes it work, where the model outputs a structured call that software then runs. Some providers favor one term over the other.

Why function calling matters for AI

Function calling is what connects a language model to the systems a business actually runs on. Without it, a model can describe what to do but cannot do it. With it, the model becomes the reasoning layer that decides which action to take and hands it off to real software. This is the foundation of AI agents, which chain several such calls together to complete multi-step work. At Custom AI Studio, function calling is how we wire models into a client's tools and data, so an AI system can take action rather than only answer.

Related terms

Frequently asked questions.

The stuff we hear most on the first call. Don't see yours? Book a 30-minute conversation.

What is the difference between function calling and tool use?
They refer to the same idea and are largely interchangeable. Tool use is the general concept of a model using external tools; function calling is the specific mechanism, where the model outputs a structured request that the surrounding software executes.
What is function calling used for?
Letting an AI model retrieve live data and take actions in other systems, such as querying a database, calling an API, or starting a workflow. It is the basis of AI agents, which string several calls together to finish a task.
Does function calling let the model run code by itself?
No. The model only proposes which function to call and with what inputs. The surrounding application decides whether and how to run it, which keeps control with the software rather than the model.

Want to put AI
to work?

We work with leadership teams to find the right opportunities, define the strategy, and build the systems that move the business forward.