🔌MCP Tool
Also known as Tool (MCP), MCP Tools
An action an MCP server lets the model call, like a search.
Think of it like
Think of it like a button with a label on it. The helper reads the label, then presses it.
Example
Lucy's calendar server offers a tool called create_event. When she asks for a meeting on Friday, the model calls it with the date and time.
Why it matters
Tools are how a model acts in the world through MCP. They are the part that can do harm, so they need the most care.
Definition
Example code
json
{
"name": "create_event",
"description": "Add an event to the calendar.",
"inputSchema": {
"type": "object",
"properties": {
"title": { "type": "string" },
"start": { "type": "string" }
},
"required": ["title", "start"]
}
}Common mistake
Key takeaways
- 1Model decides. When to call it.
- 2Name, note, inputs. All three matter.
- 3Server runs it. Then returns the result.