NAVIGATION

What is Function Calling?

Definition

Function Calling

Function Calling is an LLM capability where the model outputs a structured JSON object containing argument parameters to invoke specific external functions or APIs, enabling LLMs to act as dynamic interfaces for databases and systems.

Why It Matters for AI Builders

Provides the autonomous task execution architecture for database access tools, external integrations, and agent workflows; mastering Function Calling enables builders to design resilient cognitive loops and self-correcting workflows.

Detailed Deep Dive

Function calling is a capability in advanced Large Language Models where the model identifies when it needs to run an external tool and outputs a structured JSON payload containing the function name and arguments. This payload is executed by the client application (e.g., querying a database or API), and the results are fed back to the LLM, enabling real-time data access.

Advertisement

Frequently Asked Questions

Q:Does the LLM run the function itself during function calling?

No, the LLM only generates the structural instructions (JSON argument values). The client application executes the actual code and returns the result back to the model.

Q:Why is function calling critical for agents?

It allows models to bypass text-only limits and write structured instructions to retrieve weather data, execute database queries, or write local files.

Quick Facts

  • CategoryAgentic Systems
  • Key ApplicationDatabase access tools, external integrations, and agent workflows

Coverage Trend12 Weeks

12w agoToday

Cite This Term

Function Calling Media Coverage & Intelligence

RESEARCHJun 15, 2026

AI Agent Failure Detection and Root Cause Analysis with Strands Evals

In this post, we walk you through calling the detector functions to diagnose real agent failures. You learn how to interpret their structured output...