Skip to main content
Glama
shaleen-wonder-ent

Simple MCP Server

echo

Returns the exact message you provide, enabling message verification and testing in the Simple MCP Server environment.

Instructions

Echo back the provided message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesThe message to echo back

Implementation Reference

  • The handler logic for the 'echo' tool. Parses input arguments and returns a text response echoing the provided message.
    case 'echo': { const parsed = EchoArgsSchema.parse(args); return { content: [ { type: 'text', text: `Echo, from the MCP Server:==> ${parsed.message}`, }, ], }; }
  • Zod schema defining the input for the 'echo' tool: a required 'message' string.
    const EchoArgsSchema = z.object({ message: z.string().describe('The message to echo back'), });
  • src/index.ts:43-56 (registration)
    Registration of the 'echo' tool in the list of available tools, including name, description, and 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'], }, },

Other Tools

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/shaleen-wonder-ent/simple-mcp-server'

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