Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Agent Foundations

Free · sign in to start and track progress

1 · What agents are

  • 1What is an agent?
  • 2Tools and the agent-computer interface

    Exercise answers

    • Answer: Build a register tool and give it to Claude Code
    • Answer: Turn the tool into an MCP server
  • 3Context engineering

2 · Making agents dependable

  • 4Structured outputs and grounding
  • 5Workflow patterns
  • 6Risk and first evals
CapstoneA document review agent in Claude CodeReference implementation

Module 1 · What agents are · Lesson 2

Tools and the agent-computer interface

How tool calling works on the wire, how to design tools a model uses correctly, and how MCP lets one tool server work in many harnesses.

75 min 1 video 3 exercises 7-question quiz Answers
Setup for the exercises:Install Claude CodeNode.js, pnpm and TypeScriptMCP servers in Claude Code

By the end of this lesson you can

  • Describe the request-response cycle of a tool call, including tool definitions, tool_use and tool_result blocks
  • Design a tool's name, description, input schema, output and error messages for an agent rather than a human programmer
  • Apply mistake-proofing (poka-yoke) to a tool you design, and estimate the token cost of a tool's output
  • Explain what MCP standardises, and connect a TypeScript tool to Claude Code as a script or an MCP server

On this page

  • How a tool call works
  • The agent-computer interface
  • Build a few tools for real workflows, not one per endpoint
  • Name and namespace tools clearly
  • Return meaningful context, not internal IDs
  • Be token-efficient
  • Write errors the model can act on
  • Poka-yoke your tools
  • A worked example: the cost of a careless tool
  • The same tool in three harnesses
  • MCP: one tool server, many hosts
  • Misconceptions and limits
  • Where this goes next
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01How a tool call works
  2. 02The agent-computer interface
  3. 03A worked example: the cost of a careless tool
  4. 04The same tool in three harnesses
  5. 05MCP: one tool server, many hosts
  6. 06Misconceptions and limits
  7. 07Where this goes next
  8. 08Summary

Sources & further reading

  • Toolformer: Language Models Can Teach Themselves to Use ToolsPaper · Schick et al. · Meta AI · 2023An early paper showing that a language model can learn when to call APIs and how to use the results. Read the introduction for the motivation behind tool use.
  • Writing effective tools for agents, with agentsLab research · Ken Aizawa · Anthropic · 2025The most practical guide to tool design. Read the sections on choosing tools, namespacing, returning meaningful context, token efficiency and prompt-engineering tool descriptions.
  • Building effective agents (Appendix 2, prompt engineering your tools)Lab research · Erik Schluntz, Barry Zhang · Anthropic · 2024Where the term agent-computer interface (ACI) and the poka-yoke and absolute-path advice come from. The appendix is two screens long.
  • Tool use with ClaudeDocs · AnthropicThe wire-level mechanics this lesson describes, including client versus server tools and the full tool_use / tool_result round trip.
  • What is the Model Context Protocol?Docs · Model Context ProtocolThe official introduction to MCP. Follow it with "Build an MCP server" for the current TypeScript SDK.
  • Connect Claude Code to tools via MCPDocs · AnthropicHow to add stdio and HTTP MCP servers to Claude Code with claude mcp add, and how project-scoped servers in .mcp.json are approved.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 7-question quiz
  • Progress, quiz scores and bookmarks