AI Agents
The AI agents field guide
What an agent is, when a simple workflow is the better choice, how MCP connects tools, when several agents help, and the guardrails every agent needs, with working Python.
- Free PDF
- 5 chapters
- 44 min read
Get the PDF
Your download link appears after you submit.
What’s inside
AI agents: what they are, how they work and when to use one
An AI agent is a model calling tools in a loop. Learn how the loop works in Python, when a workflow is the better choice, and which guardrails to add.
Agent or workflow? How to choose the simplest design that works
A workflow follows steps you wrote; an agent picks its own. Use this decision rule, pattern table and Python example to choose the simplest design that works.
Model Context Protocol (MCP) explained: servers, tools and transports
How MCP connects AI applications to tools and data: hosts, clients and servers, the 2026-07-28 spec changes, stdio and Streamable HTTP, and a minimal server.
Multi-agent systems: when more agents help and when they hurt
Orchestrators, subagents and handoffs explained, with the token and coordination costs, a Python subagent example and a test for when one agent is better.
Guardrails for AI agents: permissions, approvals and stop conditions
How to limit what an agent can do when the model is wrong: least-privilege tools, human approval, stop conditions, budgets and prompt-injection defences.
Written by the SkillMaple editorial team from primary sources and reviewed by Bharathipriya Anandh, Co-Founder.