Skip to main content
Glama

Echo test

echo_test

Verifies the MCP server pipeline end-to-end by echoing back any input message with a server-side ISO timestamp.

Instructions

Returns the provided message and a server-side ISO timestamp. Used to verify the MCP server pipeline end-to-end.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesArbitrary string the server will echo back

Implementation Reference

  • The core handler function that echoes the input message back with a server-side timestamp. It takes a message string and returns a ToolResult containing the echoed message and an ISO timestamp.
    export async function echoTestHandler(input: EchoTestInput): Promise<ToolResult<EchoTestOutput>> {
      return Promise.resolve(
        ok({
          message: input.message,
          receivedAt: new Date().toISOString(),
        }),
      );
    }
  • Zod input schema defining the 'message' field: a string of length 1-1024 characters.
    export const EchoTestInputSchema = z.object({
      message: z.string().min(1).max(1024).describe("Arbitrary string the server will echo back"),
    });
  • Tool definition using defineTool(), binding the name 'echo_test', its description, input schema, and handler.
    export const echoTestTool = defineTool({
      name: "echo_test",
      title: "Echo test",
      description:
        "Returns the provided message and a server-side ISO timestamp. " +
        "Used to verify the MCP server pipeline end-to-end.",
      inputSchema: EchoTestInputSchema,
      handler: echoTestHandler,
    });
  • The tool is included in the allTools array at position 0, which is passed to registerAllTools() in server.ts.
    export const allTools: readonly ToolDefinition[] = [
      echoTestTool,
  • src/server.ts:67-67 (registration)
    registerAllTools() called with allTools, which includes echoTestTool, registering it with the MCP server.
    registerAllTools(this.server, allTools, this.config, this.auditLogger ?? undefined);
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility. It discloses the return values (message and timestamp) and implies a read-only, non-destructive operation. This is adequate for a simple echo tool, though it could explicitly state no side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences: first states what the tool does, second states its purpose. No extraneous information, perfectly concise and front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one parameter, no output schema), the description is complete. It covers the return value and use case, with no missing information needed for selection or invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already describes the 'message' parameter as an arbitrary string. The description does not add additional parameter meaning, so a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns the provided message and a server-side timestamp, and specifies it is used to verify the MCP server pipeline end-to-end. This distinguishes it from sibling tools like call_api or query_db, which perform different tasks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description indicates when to use the tool (pipeline verification), implying a testing context. While it does not explicitly mention alternatives or when not to use, the dedicated test purpose is clear and sufficient for typical use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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/marin1321/mcp-devtools'

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