echo
Send a message and receive it back to verify connectivity and functionality with the Algorand MCP Server for blockchain interactions.
Instructions
Echo back the provided message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The message to echo back |
Input Schema (JSON Schema)
{
"properties": {
"message": {
"description": "The message to echo back",
"type": "string"
}
},
"required": [
"message"
],
"type": "object"
}
Implementation Reference
- src/index.ts:421-431 (handler)The handler function for the 'echo' tool. It parses the input arguments using EchoArgsSchema and returns a text response echoing the provided message.case 'echo': { const parsed = EchoArgsSchema.parse(args); return { content: [ { type: 'text', text: `Echo: ${parsed.message}`, }, ], }; }
- src/index.ts:21-23 (schema)Zod schema definition for validating the 'echo' tool's input arguments (message: string). Used in the handler for parsing.const EchoArgsSchema = z.object({ message: z.string(), });
- src/index.ts:100-113 (registration)Registration of the 'echo' tool in the TOOLS array, defining its name, description, and JSON input schema for MCP protocol.{ name: 'echo', description: 'Echo back the provided message', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'The message to echo back', }, }, required: ['message'], }, },
- src/index.ts:103-112 (schema)JSON schema in the tool registration matching the expected input for the 'echo' tool.inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'The message to echo back', }, }, required: ['message'], },