AI Agent Infrastructure
Tool interface schemas
Explain how a tool's JSON Schema constrains its arguments, what additionalProperties controls, and why the runtime should validate each call before the handler runs, so the handler never has to guess.
What you will be able to do
- Explain what additionalProperties and required do in a tool input schema.
- Verify a sample tool call against its schema before a handler runs.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AI Agent Infrastructure
- Agent SLOsBeginner · 4 min
Track task success, p95 latency, retries, cost per successful task, and failure classifications.
- Agent runtime loopBeginner · 4 min
Explain the agent runtime loop, where tool_use stop reasons lead to tool_result messages, and why a run needs an explicit end and a budget for steps, tokens and time.
- MCP security boundariesIntermediate · 4 min
Explain the security boundaries of MCP servers, including startup commands, token audience and passthrough, and the listening address of a local server, and the consent…
- Sandboxed code executionIntermediate · 4 min
Explain how namespaces, control groups and capabilities combine into a sandbox for generated code, and which inputs a sandbox should never receive, and why each one…
- Tool retriesIntermediate · 4 min
Explain how retries with exponential backoff and jitter work, why nested retries multiply load, and why a retry is safe only for calls that can be repeated.
- Idempotency keysIntermediate · 4 min
Explain how an idempotency key lets a server recognize a repeated request, why a key must name the operation, and how keys are pruned and compared.