⌨️MCP Tool Hook
Also known as type: mcp_tool
A hook that calls a tool on an MCP server.
Think of it like
It is like you ask a helper you already know. You give them one more job.
Example
Jack already has an MCP server that scans for secrets. An MCP tool hook calls it on each file Claude writes, with no extra script.
Why it matters
It reuses a tool you trust instead of writing a new script around it.
Definition
Example code
json
{
"type": "mcp_tool",
"server": "security",
"tool": "scan_file",
"input": { "path": "${tool_input.file_path}" }
}Common mistake
Key takeaways
- 1Calls an MCP tool. Server and tool.
- 2Fills in values. From the event.
- 3Reply as output. Like a command.