Skip to content
Hameed's dev blog

Blog

Agentic AI Chapter 4: Tool Registry and Tool Schema

·2 min read·---
Agentic ai chapter 4 tool registry and schema.png
On this page

Part of the Agentic AI study series.

Two ideas that make tool calling safe and reliable.

A tool registry is the source of truth for every tool the agent can use: definitions, schemas, descriptions, permissions, and metadata. A tool schema is the contract between the model and the runtime: the tool name, its description, and its input parameters with types and required fields.

Agentic AI Chapter 4: Tool Registry and Tool Schema, handwritten study notes

📊 Real-World Example: An Amazon Tool Registry

ToolWhat it doesCategoryAuth scope
get_order_statusOrder status and estimated deliveryOrdersUser, own orders
get_order_detailsFull order detailsOrdersUser, own orders
create_returnCreate a return for an order itemReturnsUser, own orders
search_productsSearch by query and filtersCatalogPublic or user
get_product_detailsDetailed product informationCatalogPublic or user
get_recommendationsPersonalized recommendationsCatalogUser profile

A schema for get_order_status names the tool, describes it ("Get the current status of an Amazon order"), and declares one required string parameter, order_id.

🔴 CHECKPOINT: Remember

Why the schema matters:

✓ It tells the model what the tool does and how to call it ✓ It lets the model generate correct arguments ✓ It lets the runtime validate inputs and block invalid or unsafe calls ✓ It supports security, authorization, documentation, and versioning

Only registered tools can be called by the model. The schema is the contract, and the runtime enforces it.

🛠️ From My Own Work

The same idea shows up as an allow-list of what an assistant may run in my project. If an action is not on the list, it has to ask first.


← Previous: Tool Calling · Back to the series start · Next: Tool Execution and Observability →

Notes from a technical product leader on product management, identity & access management, and agentic AI — from 12 years of building enterprise software.