echo
Test connectivity and verify message transmission within the Algorand blockchain network by returning the exact input provided.
Instructions
Echo back the provided message
Input Schema
TableJSON 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'], }, },