Prompt Structure
Every prompt has three main components:Input Validation with Zod
Prompts use Zod schemas for input validation. The server automatically validates inputs before calling your handler, so you can trust that the parameters match your schema.Notifying Clients of Prompt Changes
When dynamically adding or removing prompts, notify clients to refresh their prompts cache:Next Steps
- Tools Guide - Building executable tools
- Resources Guide - Managing content
- API Reference - Complete API documentation
- Examples - Real-world implementations