Skip to main content
Glama

mock_echo

Test MCP client implementations by echoing provided messages to verify communication and response handling in development workflows.

Instructions

Echo back the provided message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes

Implementation Reference

  • The mock_echo tool handler function, decorated with @mcp.tool for registration. It takes a string input 'message' and returns it prefixed with 'Mock server echoes:'.
    @mcp.tool def mock_echo(message: str) -> str: """Echo back the provided message.""" return f"Mock server echoes: {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/DiscreteTom/mock-mcp-server'

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