ping
Test basic connectivity and server responsiveness by sending a ping request that returns 'pong' for validation.
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 ping tool handler: an async function decorated with @mcp.tool() that logs a debug message and returns 'pong'.@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"