echo
Send messages to receive identical responses for testing communication protocols or verifying message transmission in MCP server environments.
Instructions
Echo back the input message
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "echo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Message to echo back |
Implementation Reference
- server.js:84-92 (handler)Handler for the 'echo' tool that echoes back the input message prefixed with 'Echo: ' in a text content block.
case 'echo': return { content: [ { type: 'text', text: `Echo: ${args.message}`, }, ], }; - server.js:33-42 (schema)Input schema for the 'echo' tool, requiring a 'message' string.
inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Message to echo back', }, }, required: ['message'], }, - server.js:30-43 (registration)Registration of the 'echo' tool in the ListTools response, including name, description, and input schema.
{ name: 'echo', description: 'Echo back the input message', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'Message to echo back', }, }, required: ['message'], }, },