ping
Check Graphistry MCP server health status to verify connectivity and operational state for graph visualization and analytics.
Instructions
Health check for Graphistry MCP server.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | No |
Implementation Reference
- The ping tool handler: performs a health check, sends 'pong' via context if available, and returns status 'ok' with Graphistry version.
async def ping(ctx: Optional[Context] = None) -> Dict[str, Any]: """Health check for Graphistry MCP server.""" if ctx: await ctx.info("pong") return {"status": "ok", "graphistry_version": getattr(graphistry, "__version__", "unknown")} - src/graphistry_mcp_server/server.py:50-50 (registration)The @mcp.tool() decorator registers the ping function as an MCP tool.
@mcp.tool()