get_ping
Tests connectivity by sending a ping message to verify server responsiveness and network communication status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"message": "<message>"
},
"name": "get_ping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes |
Implementation Reference
- mcp_server.py:7-9 (handler)The main handler function for the 'get_ping' MCP tool. It takes a string message as input and simply returns the string 'pong'. Decorated with @mcp.tool() for registration.
@mcp.tool() async def get_ping(message: str) -> str: return "pong"