Glossary · Technology and models

Function calling: definition and use

Definition

Function calling is a language model's ability to trigger a predefined function with matching parameters instead of only producing text. The model reads from the request which tool is needed and returns a structured call. The actual action is carried out by the surrounding code, such as a database query or creating an appointment.

Why the Term Matters

An assistant that only talks stays a search engine with a nicer tone. Value in a process appears only when it reliably triggers real actions. Function calling is the building block that turns an answer into an action. A prototype tests exactly this best, because real calls show whether the model picks the right tool with the right values.

When It Is Relevant

  • The assistant should not only inform but trigger something.
  • Requests lead to bookings, queries or changes in systems.
  • Structured output is needed for further processing.
  • Several tools are available and the model should pick the right one.

When Not

If the assistant only gives information and should change nothing, function calling is unnecessary and only adds attack surface. If the action to trigger is so sensitive that a human must always confirm, the value shifts. Then a suggestion instead of a direct call is often the safe route.

Industries That Use It

  • Travel and tourism: check availability and start bookings instead of pushing guests through forms.
  • Trades and services: create appointments and trigger callbacks straight from the conversation.
  • Wholesale: query stock and prepare reorders, triggered by a natural request.
  • Real estate: retrieve property data and schedule viewings without a manual step in between.

Typical Use Cases

  • An assistant calls the calendar function and proposes free slots.
  • A request for delivery status triggers a structured query in the ERP.
  • A price calculator is called with the recognised parameters instead of estimated.
  • A ticket is created with the fields recognised from the chat.
  • An action is produced only as a suggestion that a human confirms.

Decision Guide

Decision Guide
SignalFunction calling fitsAlternative
Assistant should actdefine and connect tools clearlypure information bot
Only information askedrather notanswer from knowledge base
Action is sensitivesuggestion with a human confirmingavoid a direct call
Structured output neededfunction calling forces a formatfree text with post-processing

Example

A travel provider wants to automate requests for free dates. In the workshop a prototype emerges where the model calls the availability function with the recognised period and party size. Real requests reveal where the model misreads parameters and where a follow-up question is needed. This describes the method, not an asserted client metric.

Service Connection

The right entry is the AI workshop, then AI automation and AI development.

Sources

This framing describes common practice around function calling in language models. Technical details depend on the concrete model and the connection and should be checked there.

Related topics Model Context ProtocolMulti-agent systemAI automation

Book a strategy call

Test your use case in a conversation. Book your strategy call via the calendar: Book a strategy call. Alternatively by email: info@ki-agentur.co.

  • Pick a slot right in the calendar
  • Clarify your use case and goals together
  • A clear next step after the call

Or send an email to info@ki-agentur.co

Pick a free slot.

Frequently asked questions

Does the model run the action itself?
No. The model only returns the structured call with parameters. The action is executed by the surrounding code, which checks permissions and returns the result. This separation matters for control and security.
What happens with wrong parameters?
A well-built flow validates the values before execution and asks back when unclear. That way a misread number is caught before it triggers an action.
How does this relate to MCP?
Function calling is the ability to trigger a tool. MCP is a standard for exposing such tools uniformly. The two often work together but are not the same.