DAILY PRACTICEBuild your AI engineering skills, one problem at a time.Try today's challenge
InferenceAIStart learning path

Agentic AI · Beginner

Tool calling

Tool calling lets a model propose structured requests that an application can validate and execute.

TRY IT YOURSELF

Follow a tool request

Illustrative application flow; no external tool is called.

Step 1 / 4User asks a question

How it works

The model proposes a tool name and arguments. The application validates them, checks permissions, runs an allowed tool, and returns the result to the model for the next step.

A concrete example

For a weather question, an assistant might request a forecast for a location; application code validates the location before calling a weather service.

Watch for this

A model suggestion is not authorization. Never let untrusted input bypass validation, access controls, or confirmation for sensitive actions.

Try it yourself

Step through the simulated request and identify where validation and permission checks happen.

Continue to practice →

Read the source: Model Context Protocol: tools ↗

Related concepts

Agent memory →

Planning and ReAct →

Multi-agent systems →