example_tool
Process messages to extend Claude's capabilities through custom tools in the Model Context Protocol Server.
Instructions
An example tool that processes messages
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message to process |
Implementation Reference
- src/tools/ExampleTool.ts:19-21 (handler)The main handler function for the example_tool. It takes an input with a message field and returns the message prefixed with 'Processed: '.async execute(input: ExampleInput) { return `Processed: ${input.message}`; }
- src/tools/ExampleTool.ts:12-17 (schema)Input schema definition using Zod for validation. Defines 'message' as a required string field.schema = { message: { type: z.string(), description: "Message to process", }, };