Create Tool
Build Custom MCP Tools
When to Create a Custom Tool
Tool Anatomy
1. Metadata
{
"name": "my_custom_tool",
"title": "My Custom Tool",
"description": "What this tool does — the AI reads this to decide when to use it",
"domain": "your-domain"
}2. Input Schema
3. Handler Function
4. Annotations
Annotation
What It Tells the AI
Best Practices
Write Descriptive Descriptions
Handle Errors Gracefully
Keep Tools Focused
Test Before Deploying
Next Steps
Last updated