# Tool use

> Tool use lets a model return a structured call to a function you define or a vendor provides. The request loop, client versus server tools, and a quick check.

Canonical: https://scaplet.com/glossary/tool-use

Glossary Glossary · AI search

Tool use lets a model return a structured call to a function you define or a vendor provides. The request loop, client versus server tools, and a quick check.

3 min

read

2

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

Tool use, also called function calling, lets a language model return a structured call to a tool you describe, instead of only text. Your application runs the call and sends back the result, or the vendor runs it for server-side tools. The model never executes your code itself.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftool-use%20(%22Tool%20use%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftool-use%20(%22Tool%20use%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftool-use%20(%22Tool%20use%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Ftool-use%20(%22Tool%20use%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

Function calling

Also called

In your application

Client tools run

On the vendor's infrastructure

Server tools run

JSON schema

Schema format

_01_At a glance

## The request loop

Anthropic's docs describe the pattern for client tools. You define a tool with a name, a description and an `input_schema`. [Claude](/ai-search/anthropic/ads) decides, from the request and the description, whether to call it. If it does, the response carries `stop_reason: "tool_use"` and one or more `tool_use` blocks. Your code runs the operation and sends back a `tool_result`. [OpenAI](/ai-search/chatgpt/how-it-finds-sources)'s flow has the same shape with different item names.

Step

### 1. Declare tools

Anthropic Messages API

`tools` with `name`, `description`, `input_schema`

OpenAI Responses API

Tools with `type: "function"`, `name`, `description`, `parameters`

Step

### 2. Model asks for a call

Anthropic Messages API

`tool_use` block, `stop_reason: "tool_use"`

OpenAI Responses API

`function_call` item with `call_id`, `name`, `arguments`

Step

### 3. You run it

Anthropic Messages API

Your application

OpenAI Responses API

Your application

Step

### 4. Return the result

Anthropic Messages API

`tool_result` block with the matching `tool_use_id`

OpenAI Responses API

`function_call_output` item with the matching `call_id`

Step

### 5. Final answer

Anthropic Messages API

Next response, or more tool calls

OpenAI Responses API

Final response, or more tool calls

_02_At a glance

## Anatomy of a tool definition

Field

### `name`

Job

What the model calls and what your router dispatches on

Field

### `description`

Job

The main signal for when to call the tool

Field

### `input_schema`

Job

JSON schema for the arguments, with `required` fields

Field

### `strict: true`

Job

Anthropic's option to make calls match the schema exactly

A client tool in the Anthropic format

```
{ "name": "get_weather", "description": "Get the current weather for a given location.", "input_schema": { "type": "object", "properties": { "location": { "type": "string", "description": "City and state, e.g. San Francisco, CA" } }, "required": ["location"] } }
```

_03_At a glance

## Client tools and server tools

### Where code runs

Client tools

Your application

Server tools

Vendor infrastructure

### Your job

Client tools

Run the call, return the result

Server tools

None for execution

### Anthropic examples

Client tools

Your own functions, `bash`, `text_editor`

Server tools

`web_search`, `web_fetch`, `code_execution`, `tool_search`

### Extra cost

Client tools

Normal token pricing

Server tools

Some add usage-based charges, such as web search

Anthropic notes that tool definitions, `tool_use` blocks and `tool_result` blocks all count toward input and output [tokens](/glossary/tokenization), and that tool use adds a model-specific [system prompt](/glossary/system-prompt) overhead. Keep descriptions short and the tool list small. OpenAI's guidance suggests keeping the initially available functions under about 20, and using tool search for larger sets.

Tool use is the building block of [AI agents](/glossary/ai-agents), and the [Model Context Protocol](/glossary/model-context-protocol) is a standard way to package tools so many applications can share them.

_04_Worth knowing

## Mistakes that cause bad calls

### Vague descriptions

Say when to use the tool and what it returns.

### Letting the model supply known values

OpenAI advises not asking the model for arguments your code already has.

### Free-text where an enum fits

OpenAI recommends enums and structured objects to prevent invalid inputs.

### Assuming one call per turn

Handle zero, one or several calls in a response. Anthropic's `disable_parallel_tool_use` and OpenAI's `parallel_tool_calls: false` limit this.

**Missing parameters may be guessed**Anthropic says that when a required value is absent from the prompt, some models are more likely to ask for it while others may infer a plausible value, and the behavior is not guaranteed. Validate arguments in your own code before running anything with side effects.

_05_How it works

## Check it in 2 minutes

1. 1

### Ask for a call the tool can answer

Send a prompt that clearly maps to one tool and confirm the response contains a tool call with sensible arguments.
2. 2

### Ask for one it cannot

Send a prompt outside the tool's scope and confirm the model answers directly instead of forcing a call.
3. 3

### Round-trip the result

Return a `tool_result` or `function_call_output` using the matching ID, and confirm the final answer uses it.

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- claude.com
- openai.com

1. 01 [Tool use with Claude (Anthropic)](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview) platform.claude.com · checked 2026-11-01
2. 02 [Function calling (OpenAI)](https://developers.openai.com/api/docs/guides/function-calling) developers.openai.com · checked 2026-11-01

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Is tool use the same as function calling?

Yes. Anthropic's docs say tool use is also called function calling. Vendors differ in field names and response items, so check each vendor's reference when you port code.

_02_ Can I force the model to call a specific tool?

Yes. Both vendors document a tool-choice setting. OpenAI lists `auto`, `required`, a specific function, an allowed subset, and `none`. Anthropic's default is `{"type": "auto"}`, with options to require a call.

## Keep learning

[All glossary](/glossary)

[Learn Context window AI search](/glossary/context-window) [Related AI Agents AI search](/glossary/ai-agents) [Read next Model Context Protocol AI search](/glossary/model-context-protocol) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Tone of voice](/glossary/tone-of-voice) [Top stories](/glossary/top-stories) [Topical authority](/glossary/topical-authority)

More in AI search
[Model Context Protocol](/glossary/model-context-protocol) [Multimodal AI](/glossary/multimodal-ai) [Prompt caching](/glossary/prompt-caching) [Prompt engineering](/glossary/prompt-engineering) [Prompt tracking](/glossary/prompt-tracking) [Reranking](/glossary/reranking) [Retrieval-Augmented Generation](/glossary/retrieval-augmented-generation) [Semantic Search](/glossary/semantic-search) [Structured outputs](/glossary/structured-outputs) [System prompt](/glossary/system-prompt) [Temperature](/glossary/temperature) [Tokenization](/glossary/tokenization) [Tool use](/glossary/tool-use) [Vector search](/glossary/vector-search) [AI Agents](/glossary/ai-agents) [AI citations](/glossary/ai-citations) [AI detection](/glossary/ai-detection) [AI Hallucination](/glossary/ai-hallucination) [AI Mode](/glossary/ai-mode) [AI Overviews](/glossary/ai-overviews) [AI search](/glossary/ai-search) [AI visibility](/glossary/ai-visibility) [Answer engine optimization](/glossary/answer-engine-optimization) [ChatGPT search](/glossary/chatgpt-search)

Terms on this page
[Tokenization](/glossary/tokenization) [System prompt](/glossary/system-prompt) [AI Agents](/glossary/ai-agents) [Model Context Protocol](/glossary/model-context-protocol)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
