internalsGet Pro

AI Engineering · Module 06

Tool use and the Model Context Protocol

Lessons
10
Free
1
Reading
~3 h

Your progress

0 / 10 lessons done

Sign in to track

Lessons

  1. Function calling: letting models use toolsFreeMost useful AI features need data the model can’t know: an order, a booking, today’s stock. Function calling is how a model asks your code for that data, and every AI agent in this course runs on the same loop.14 min
  2. Designing tools a model can use wellA model can only use a tool as well as its definition explains it. Most wrong tool calls in production come from names that overlap, parameters the model can’t know and results it can’t read, and all three are fixed in your code, not in the model.18 min
  3. Handling tool results and tool errorsA tool-using feature spends most of its life with tools that time out, return nothing or return far too much. What your code puts in each tool result decides whether the model recovers, guesses, leaks another customer’s data or follows instructions a stranger wrote.18 min
  4. Parallel and sequential tool callsMost tool-using features need more than one lookup per answer. How you order those calls decides whether a reply takes 5 seconds or 10, and whether a busy hour trips a partner’s rate limit.8 min
  5. Model Context Protocol: one standard for toolsYour users already work inside AI apps you didn’t build. MCP is how your product shows up in those apps, and its security rules decide whether that is safe.18 min
  6. Building an MCP server in PythonOnce your product has an MCP server, any AI app your customers already use can work with their data. The server is also a new front door to that data, so what it trusts, checks and records decides whether one customer can read another’s.22 min
  7. Code execution: running model-written code safelySooner or later someone asks your AI feature for a number that must be right: a total, a trend, a chart for a decision. A model that writes and runs code can give it, and the same feature can leak data or run forever if the code runs in the wrong place.19 min
  8. Computer use: models operating browsers and appsSooner or later a feature needs data from a system with no API, only a screen. Knowing what it costs to let a model drive that screen, and how to fence it in, keeps a clever demo from becoming a slow, expensive and unsafe feature.18 min
  9. Design: a meeting booking assistantMany useful AI features end in an action: a booking, a refund, a sent message. The model is good at reading what the customer wants. Making the action happen once, at the right time and only after a person approves it is ordinary engineering that you design around the model.30 min
  10. Lab: give a model a weather and maps toolMost useful AI features need data the model doesn’t have, such as today’s forecast or an order’s status. Wiring two real APIs into the tool loop yourself shows how many calls one answer takes, what each costs, and what the model sees when a tool fails.16 min

Practise with

Terms this module teaches 52

Open glossary

Browser use tool

A Claude toolset for tasks inside web pages: your app runs the browser, and the model reads pages through their structure and text as well as screenshots.