AITeky Learn

AiTeky Original Interactive Learning & Practice Advanced

Multi-agent systems and MCP: splitting work, connecting tools, staying safe

Build an orchestrator with specialist workers, write a Model Context Protocol server and client from scratch, measure on a real small model how tool choice degrades as the tool list grows and what a router fixes, and decide with numbers when to split an agent and how to run tools safely.

One agent with a few tools is easy to reason about. Real systems grow: more tools, more kinds of request, more teams that own them. Two ideas help. Multi-agent designs split the work between narrower agents. The Model Context Protocol (MCP) gives tools a standard shape, so any application can discover and call any server. Both help, and both have costs that are easy to ignore.

This course builds the pieces and measures them. You write an orchestrator with specialist workers and count what every hand-off costs. You write an MCP server and client from scratch, so you see the real JSON messages: start-up, tool lists, calls, resources, prompts, errors and capability negotiation. Then you look at a real experiment: a small open model (Qwen2.5-1.5B-Instruct) asked to choose the right tool for customer requests when 4, 16 or 32 tools are listed, with and without good descriptions, and with a two-step router, recorded on a laptop processor. The answers show when a long tool list hurts and what actually helps.

The industry lessons are decisions: whether to split a refund agent into several, using the measured numbers and the arithmetic of chained errors, and how to run tools safely, with a deliberately gullible agent, hidden instructions in customer notes, and four defences that you add and count.

Everything runs in the browser on recorded runs and plain Python; the Colab box holds the code of the model experiment. You need the Python course and the AI agents course.

  • Learn lessons explain one idea at a time and let you measure it.
  • Industry ready lessons decide and plan. Each ends with the interview questions that go with it.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 50 min Free sample πŸ”’ AiTeky Pass One agent or several? Build an orchestrator that hands a request to specialist workers, keep a trace of every message, count what the extra hand-offs cost in calls and in chance of success, and learn the four common patterns and when each is worth it.
  2. 02 55 min πŸ”’ AiTeky Pass MCP from scratch Build a small Model Context Protocol server and client in plain Python. See the real JSON messages for starting up, listing tools and calling a tool, validate arguments against a schema, return errors the way the protocol says, and learn what a model gets to see.
  3. 03 50 min πŸ”’ AiTeky Pass Resources, prompts and capabilities Extend the server with the two other things MCP can offer besides tools, resources and prompts, learn who controls each, negotiate a protocol version and capabilities at start-up, and handle a tool list that changes while the client is connected.
  4. 04 55 min πŸ”’ AiTeky Pass Choosing among many tools Read recorded runs of a real small model picking one of 4, 16 or 32 tools for 64 customer requests, with full descriptions and with names only, and a two-step router. Put intervals on the accuracies, find which tools get confused, and see why the router lost.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 05 55 min πŸ”’ AiTeky Pass On the job: split the agent, or not? Decide whether a 32-tool support assistant should become a router with specialist agents. Price both designs in calls, tokens and wrong-tool errors, find how accurate the router's first step would have to be to win, and write the recommendation with what to try instead.
  2. 06 55 min πŸ”’ AiTeky Pass On the job: running tools safely Attack a gullible agent with instructions hidden in customer notes, then add four defences one at a time (allow-list, approval for writes, limits, treating tool output as data) and count what each one stops. Write the security review for connecting a new MCP server.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in