Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Tool calling

Also: function calling

In plain words

The model asking for a tool to be run, and the app running it and handing back the result.

The fuller definition

Tool calling is the process in which a model requests a named operation with arguments and the application executes it under its rules, then returns the result.

How it fits together
  1. Model request

    Name and arguments

  2. Application

    Authorize and execute

  3. Tool result

    Return outcome

A simplified relationship, not a screenshot or a complete design.

A concrete example

The model requests search_documents with a query; the application performs the search.

The distinction that matters

A model-generated request is not proof that the operation actually ran or succeeded.

Related terms

Where it is taught

Prompts, skills, workflows, and agents

Source and further reading

Anthropic · Building effective agents

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC