echo
Test message transmission by receiving and returning input text to verify communication channels in the MCP Test MCP server.
Instructions
Echo back a message.
Args: message: The message to echo back
Returns: The same message that was provided
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Implementation Reference
- The handler function for the 'echo' tool. It is decorated with @mcp.tool() for registration and simply returns the input message after logging it.@mcp.tool() def echo(message: str) -> str: """ Echo back a message. Args: message: The message to echo back Returns: The same message that was provided """ logger.debug(f"Echo tool called with message: {message}") return message