Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 05 · AI · The loop and its harness · about 16 min to read

Play it as a journeyTutor comes with a plan

One plug for every tool: MCP and agent protocols

Structured Output and Tool Schemas
Structured Output and Tool Schemas · Open board

The tool contract that tells a model what a tool is called and what it takes. This lesson makes that contract the same everywhere, so any agent can read any tool’s contract.

Before you start. Structured Output and Tool Schemas (the contract between model and code) gave you the tool schema: a name, a plain-words description, and the arguments a tool takes. Agents & Tool Use showed the loop where a model asks for a tool and the program runs it. The Harness (everything around the loop that the model never touches) showed the ordinary code around that loop, where each tool runs as the customer who asked and nothing more. This lesson asks what happens when many different programs and many different tools must work together.

Lesson 48 of 83 in AI

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • The problem: five apps, eight systems, forty connectors
  • MCP: one agreement between an app and a tool
  • Tool discovery: the client asks, the server lists
  • Auth: the token says who you are and what you may do
  • A2A: when the other side is an agent, not a tool
  • Skills: a folder of know-how the agent opens when needed
  • A whole MCP server in one file
  • Transports: local pipe or web address
  • Auth in detail
  • A skill file, run
  • An Agent Card, sketched
  • Trade-offs

Terms it explains: Model Context Protocol, MCP, MCP server, MCP client, tool discovery, access token, scope, A2A, Agent Card, skill, Common mistakes, JSON-RPC 2.0, stdio, Streamable HTTP.

Related paper

Review AI