Skip to content

Stage 03 · 13 articles

Agents & MCP

Tool calls, the Model Context Protocol, and the plumbing that lets a model act on other systems.

About this stage

An agent is a model that calls tools in a loop. It asks for a function, your code runs it, and the result goes into the next call, until the task is done or a limit stops it. This stage covers that loop and the protocols built around it.

Tool calling and the agent loop explain the mechanics, and the budgets and approval gates a production loop needs. The Model Context Protocol (MCP) gives models one interface to tools and data, and the MCP articles cover servers, gateways, and code mode. A2A covers agents that hand tasks to other agents. Structured outputs covers getting back JSON that matches a schema, and prompt chaining and multi-agent systems cover when one task should become several calls, and what each split costs.

Start here

  1. 01Tool calling: how LLM function calling works in productionHow a model asks your code to run a function.
  2. 02Agent loop: how AI agents run, and the guards they needOne run, step by step, and where ReAct fits.
  3. 03What is MCP? The Model Context Protocol in productionWhat an MCP server is, and what to secure.
  4. 04What an MCP gateway does, and when you need oneOne place to authenticate, filter, and log tool calls.