Building with AILesson 28 of 80

Module 3 · Structure, tools and the loop

MCP: what a tool protocol buys you, and what it costs

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 8 of 11 in this chapter

This chapter’s goalDesign a schema and a tool surface a model can actually follow, write an agent loop with a step budget and a validated boundary at every hop, and say for each failure in that loop whether it should be retried, escalated to a human, or must stop the run.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The problem it solves

Without a standard, every combination of application and data source needs its own connector. Five applications and eight systems is forty integrations, each with its own auth handling, its own schema conventions, and its own bugs.

The Model Context Protocol is an attempt to make that five plus eight instead of forty. A server exposes capabilities; a client (an assistant, an IDE, an agent) consumes them. Anything that speaks the protocol can talk to anything else that does, and the maintainer of a system writes one server rather than one connector per consumer.

Three kinds of capability, and the distinction matters:

  • Tools: actions the model may invoke. This is what most servers ship.
  • Resources: content the client can read and attach to context, addressed by URI. Selected by the application or the user, not the model.
  • Prompts: reusable templates a user can invoke deliberately.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘MCP: what a tool protocol buys you, and what it costs’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/mcp-and-tool-protocols (Accessed: 29 November 2026).