Back to glossary Technology

Function Calling

An LLM capability that enables models to invoke external tools and APIs by generating structured function calls.

What Is Function Calling?

Function calling (also known as tool use) is a capability of modern language models that allows them to interact with external systems by generating structured requests to predefined functions. Instead of only producing text, the model can decide when to call a function, select the appropriate one from available options, and generate the correct parameters. The function executes externally, and its result is fed back to the model for further reasoning.

This capability transforms language models from text generators into intelligent orchestrators that can query databases, call APIs, perform calculations, search documents, send emails, and execute virtually any programmatic action. The model acts as a reasoning layer that understands user intent and translates it into concrete actions.

How It Works

Developers provide the model with function definitions including names, descriptions, and parameter schemas. When processing a user request, the model determines whether a function call is needed, generates a structured call with appropriate arguments, and pauses for execution. After receiving the function's result, the model incorporates that information into its response. Multiple sequential or parallel function calls can be chained to accomplish complex tasks.

Enterprise Impact

Function calling is the foundation of AI agent architectures in enterprise settings. It enables building systems that can autonomously navigate CRM databases, process orders, generate reports, manage workflows, and integrate with any system that exposes an API. This capability is what separates simple chatbots from truly capable AI assistants that deliver measurable business value through action, not just conversation.