Section 6: Lab: Reliable Tool Calling
- Design tools the model picks correctly: names, descriptions, schemas and examples
- Validate arguments before the real call, set timeouts and retries, and make tools safe to call twice
- Separate read-only tools from tools that change data, and cap the number of agent steps
- Return errors to the model so it can correct itself instead of failing the whole task
- Lab: build an agent that calls several internal APIs, with tests for each tool
Section 7: Lab: MCP Servers for Internal Systems
- Moving on from MCP in FDE 101 to a server shared by several teams over HTTP
- Design tools, resources and prompts that suit systems such as ticketing, HR or ERP
- MCP authorisation with OAuth, and passing the user's identity through to the target system
- Versioning, logging and testing an MCP server before agents are allowed to use it
- Lab: build an MCP server around a simulated internal system that respects per-user permissions
Section 8: A2A and Long-Running Workflows with Human Approval
- The Agent2Agent (A2A) Protocol: Agent Cards, tasks and when to use it alongside MCP
- Workflows that run for hours or days: checkpoints, resuming after failure and avoiding duplicate work
- Human in the loop: pause for approval before steps with real effects, such as payments or changes to customer data
- Report progress so users and other systems can follow the status
- Lab: an approval workflow that waits for a human decision and then carries on
Section 9: Lab: Guardrails, Prompt Injection and PII
- Input and output guardrails: blocked topics, response format and fact checks
- Indirect prompt injection hidden in documents, web pages and tool results
- Detect and redact PII before it reaches the model and before it is written to logs, in line with PDPA
- Sandboxes for running agent-generated code: isolated containers with restricted network and file access
- Lab: attack your own system, then add layers of defence until it holds
Section 10: Lab: SSO, RBAC and Audit Logging
- Connect the organisation's SSO through OpenID Connect and carry the user's identity through every layer
- RBAC that decides which roles may call which tools and see which document levels
- Permission-aware retrieval: filter documents by the asker's rights before anything reaches the model
- Audit logs that record who asked what, which tools the agent called and what happened
- Lab: give two user roles different answers and permissions from the same system