ping
Test basic connectivity and server responsiveness by sending a ping request that returns a 'pong' response to verify the MCP server is operational.
Instructions
Simple ping tool that responds with 'pong'.
Useful for testing basic connectivity and server responsiveness.
Returns: The string 'pong'
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function for the 'ping' tool, decorated with @mcp.tool(). It logs a debug message and returns 'pong' in response to any ping request.@mcp.tool() async def ping(ctx: Context) -> str: """ Simple ping tool that responds with 'pong'. Useful for testing basic connectivity and server responsiveness. Returns: The string 'pong' """ await ctx.debug("Ping received") return "pong"