Agents, tools and MCP
The loop where a model calls tools, when a fixed workflow is better, MCP as the plug for tools, and how to keep it from running away.
☰
An agent is a model calling tools in a loop. The hard parts are around it: choosing when a fixed workflow is enough, plugging tools in through MCP, and keeping the loop from running away.
+ The whole system in one paragraph− Hide
An agent lets the model choose its next step: it asks for a tool, your code runs it, the result goes back in, and it decides again. That flexibility costs tokens, predictability and safety. This page shows when a fixed workflow is the better choice, how a tool call really works, how MCP connects tools to any AI app, and the limits, permissions and human approvals that keep an agent in bounds.
In this lesson
6 chapters · ~9 min · a quick check in eachEverything is on this page — just scroll down ↓
New to this? Warm up first+ optional
Words you'll meet
Skim these now and come back whenever a word shows up. Token, context window and tool call mean the same here as in the earlier topics.
ⓘ Details & sources− Hide details
The terms, in plain words.
The whole picture
From one call to an agent, one piece at a time
Anthropic's advice: start simple and add complexity only when it measurably helps. Each step solves a problem the one before couldn't. 'The architecture of an AI app' covers steps 1–2.
6 steps. Follow the flow one step at a time — what happens first, and what comes next.
An agent, on one page
Your loop sits between the model and the tools: every tool call passes the approval gate, then an MCP client. A step budget caps the run. The model only asks — your code decides what runs.
You ask: 'Which orders shipped late last week, and why?' The loop starts with the task.
The model asks to call a tool. Who actually decides whether it runs?
Pick one — or just keep scrolling, it's not graded.
Keep going — it's free
Create your free account to unlock the rest of this lesson, keep your progress and pick up right where you left off.
- 2Workflow or agent?
- 3Tool calls up close
- 4MCP
- 5Keeping it safe
- 6Multi-agent and cost