echo
Test connectivity and verify message transmission by returning input messages unchanged for validation purposes.
Instructions
Return the input message (for testing)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message to echo back |
Implementation Reference
- src/index.ts:136-148 (registration)Registration of the 'echo' tool in the ListToolsRequestSchema handler.
name: "echo", description: "Return the input message (for testing)", inputSchema: { type: "object", properties: { message: { type: "string", description: "Message to echo back", }, }, required: ["message"], }, }, - src/index.ts:162-171 (handler)The handler logic for the 'echo' tool inside the CallToolRequestSchema handler.
case "echo": { return { content: [ { type: "text", text: `Echo: ${args.message}`, }, ], }; }