# What is Function calling? Definition and meaning

A model returns a structured call to a named function with arguments, and the application runs it and returns the result.

## Definition

**Function calling**: A model returns a structured call to a named function with arguments, and the application runs it and returns the result.

In short: Letting a model request that code be run.

## When it is used

Tool use: search, databases, calculations and any API.

## Where it fits

Function calling belongs to **Protocols** in the [Agentic AI](/topics/agentic-ai) topic. These are the other terms in the same group:

- **[MCP](/glossary/mcp)**: An open protocol, created by Anthropic, that lets a model use tools, data sources and prompts exposed by servers.
- **[A2A](/glossary/a2a)**: An open protocol, now under the Linux Foundation, with which agents discover each other and delegate tasks.
- **[Structured outputs](/glossary/structured-outputs)**: Constrains generation to a JSON schema or type so that results are always parseable.
- **[OAuth for tool access](/glossary/oauth-for-tool-access)**: Uses OAuth flows so an agent acts on a user's behalf with scoped, revocable permissions.

## Learn more

The full guide to **[Function calling](/tools/function-calling)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [Full fine-tuning](/glossary/full-fine-tuning) · Next term: [GaLore](/glossary/galore)
