Skip to main content
Intermediatehow it works Verified ~9 min

How does tool calling work?

Source: Anthropic: Building effective agents

Quick answerFree

The application sends the model a list of tools, each with a name, a description and a JSON input schema. The model decides whether a tool helps; if so it stops with a tool-use reason and returns a structured call with arguments.

Detailed answer· ~320 words

Interview Prep

Unlock the full answer with Interview Prep

Get a ~320-word model answer, 5 key points, a visual explainer, 5 common mistakes and 5 follow-ups, plus 24 more Generative AI questions.

Also in Pro (₹499 / 90 days).

Key points· 5 points

Interview Prep
Unlock with Interview Prep

Visual explainer· animated, step by step

Interview Prep
Unlock with Interview Prep

Common mistakes· 5

Interview Prep
Locked

Best practices· 5

Interview Prep
Locked

Likely follow-ups· 5 questions

Interview Prep
Unlock with Interview Prep

+ 24 more Generative AI questions in Interview Prep, each with the full answer.

Discussion