echo
Test connectivity and verify message transmission within the Algorand blockchain network by returning the exact input provided.
Instructions
Echo back the provided 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 | The message to echo back |
Implementation Reference
- src/index.ts:421-431 (handler)The handler function for the 'echo' tool, which parses the input arguments using EchoArgsSchema and returns the echoed message.
case 'echo': { const parsed = EchoArgsSchema.parse(args); return { content: [ { type: 'text', text: `Echo: ${parsed.message}`, }, ], }; } - src/index.ts:21-23 (schema)Zod schema for validating the input arguments of the 'echo' tool.
const EchoArgsSchema = z.object({ message: z.string(), }); - src/index.ts:100-113 (registration)Registration of the 'echo' tool in the TOOLS array, including its name, description, and JSON input schema.
{ name: 'echo', description: 'Echo back the provided message', inputSchema: { type: 'object', properties: { message: { type: 'string', description: 'The message to echo back', }, }, required: ['message'], }, },