AI CompendiumA public chart of the language
Tools & Environment

Tool Call

The model asking for a specific function with specific arguments.

Definition

A structured output in which the model names a tool and supplies arguments, typically as JSON. The harness executes it and returns the result.

Tool descriptions are prompts. Name, description and parameter schema are all the model has to decide when and how to call it — vague descriptions are the most common cause of a tool being used wrongly.

The key property is that the model does not execute anything. It emits a structured request, and your code decides whether to honour it. That is the whole reason permissions, approvals and sandboxing are possible at all — the seam between intent and execution is where you put every control.

How people use it
Fixing a tool that gets invoked at the wrong time.
"It is calling search when it should call get_customer. Sharpen the descriptions, not the model."
Worked example

Intercepting the destructive call

An agent decides a clean reinstall is the fastest way to fix a dependency problem.

The tool call is a proposal. A permission rule that matches the command and requires human approval turns a one-way door into a two-way conversation, and costs nothing in the ninety-nine percent of calls that are routine.

Sources
  • docsFunction calling ↗OpenAI API docs · 2026

    The application-managed tool cycle spelled out: define the function with a JSON Schema, receive the call, execute it yourself, return the output.

  • docsTool use with Claude ↗Claude platform docs · 2026

    The tool_use / tool_result round trip, client-executed versus server-executed tools, tool choice and parallel calls.

  • docsFunction calling ↗Google Cloud Vertex AI docs · 2026

    The model selects a declared function and supplies arguments. Useful as a cross-vendor reference showing the pattern is not one provider’s design.

Related terms