echo
Returns the exact message you input, enabling message verification and testing in the minimal-mcp-server environment.
Instructions
入力されたメッセージをそのまま返す簡単なツール
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 | エコーするメッセージ |
Implementation Reference
- src/index.ts:12-19 (registration)Registration of the "echo" tool.
server.registerTool( "echo", { description: "入力されたメッセージをそのまま返す簡単なツール", inputSchema: { message: z.string().describe("エコーするメッセージ"), }, }, - src/index.ts:20-29 (handler)Handler implementation for the "echo" tool.
async ({ message }) => { return { content: [ { type: "text", text: `Echo: ${message}`, }, ], }; },