Level 7 · Artificial Intelligence and Intelligent Automation · Course 7.2 AI Application Engineering
Module 87: Agents and Tool Calling
Goal: let a model use tools your code provides (look up a customer, check stock, draft a follow-up) safely: how tool calling works, how fixed workflows differ from agents, how to give tools the smallest permissions, how the MCP standard connects tools, and how to keep a person in charge of every action that matters.
You'll need: your grounded assistant from Module 86 and your CRM's API (Level 4 and 5).
Lessons
- 1Function calling15–25 minutes✓
- 2Workflows and agents15–25 minutes✓
- 3Tool permissions15–25 minutes✓
- 4MCP15–25 minutes✓
- 5Human approval15–25 minutes✓
🛠️Module practice: A tool-using assistant with controls
- A read-only customer lookup tool with schema validation, the user's permissions and minimal fields.
- A workflow design for enquiry handling, with model, code and human steps.
- A tool permission table, and tests for permission refusals and injected instructions in tool results.
- A small read-only MCP server for policy search, with its permissions documented.
- A drafting tool that creates pending actions, an approvals page, and logged, permission-checked execution.
✅Module check
Explain in a few sentences, in your own words:
How do you let an AI use tools safely?
Show a good answer
A good answer mentions: the model only requests tool calls (from clear names, descriptions and schemas) and your code validates and runs them in a capped loop; workflows with fixed steps are preferred, agents only for open-ended tasks with limits; every tool is narrow, least-privilege and read-only where possible, runs with the logged-in user's permissions, limits results, is logged, and treats inputs and results as untrusted; MCP standardises tool connections but servers must be trusted and scoped; and any consequential action becomes a pending action that a permitted person reviews in full and approves before code carries it out, with the decision logged.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
