Skip to content

Stockertim Dictionary · Artificial intelligence · Technology

Function calling

Also called function call, structured tool call

In short

Function calling is a structured way for a model to request a specific software function by name with named inputs, which the surrounding software checks and runs before returning the result.

  • Advanced
  • Technology
  • Checked

In detail

Function calling is the plumbing behind tool use. The developer describes each available function: its name, what it does and the inputs it takes, with their types. When the model decides a function is needed, it replies with a structured request naming the function and filling in the inputs, rather than with free text. The application reads that request, validates it, runs the function and sends the result back.

The structure is what makes this dependable. Because the request has named fields, the software can check that an order number looks like an order number, that an amount is within limits, and that the user is entitled to the action, before anything runs. A model can still choose the wrong function or fill in wrong values, so these checks matter as much as the model's choices.

A single task often takes several calls in sequence, each result shaping the next. The trace of calls, inputs and results is the natural audit record of what an agent did, and it is kept for testing and for investigating any problem.

Worked example

A customer asks Northwind Bikes when a repair is due; the agent completes a three-function task.

  1. Call 1: find_order with order number 50412 returns the bike and the workshop booking.
  2. Call 2: get_workshop_status with the booking reference returns waiting for a part, due Thursday.
  3. Call 3: draft_message with the customer and the status prepares a reply, held for staff approval.
  4. The application checked each set of inputs against its rules before running the function.

The reply is built from three checked calls, and the trace records exactly what was looked up.

In practice

Developers define functions with tight input rules, validate every call before running it, keep traces of calls and results, and separate functions that read data from those that change it.

Watch out

  • The model only proposes a call; validation and permission checks belong in the application.
  • A well-formed call can still carry wrong values.

Learn it properly

Official sources

Facts last checked on 3 November 2026.

Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.

English