Skip to main content
Glama

echo

Verify MCP server functionality by sending a message and receiving an immediate echo response. A simple test tool to ensure server communication is working correctly.

Instructions

Simple test tool that echoes back your input. Use to verify the MCP server is responding correctly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes

Implementation Reference

  • The handler function that implements the 'echo' tool. It validates the input message and returns an MCP-formatted response with 'Echo: ' prefixed to the message.
    async function internalHandleEcho(args) { if (!args || typeof args.message !== 'string') { throw new Error("Invalid input. 'message' (string) is required."); } return { content: [{ type: "text", text: `Echo: ${args.message}` }] }; }
  • The schema definition for the 'echo' tool, including input schema requiring a 'message' string, used in tools/list response.
    name: "echo", description: "Simple test tool that echoes back your input. Use to verify the MCP server is responding correctly.", inputSchema: { type: "object", properties: { message: { type: "string"}}, required: ["message"], additionalProperties: false }, },
  • index.js:793-793 (registration)
    Registration of the 'echo' tool handler in the INTERNAL_TOOL_HANDLERS map, which is used to dispatch tools/call requests to the correct handler.
    "echo": internalHandleEcho,

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/avi892nash/purescript-mcp-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server