ping
Check if the Log Analyzer MCP server is running and responsive to verify connectivity for log analysis operations.
Instructions
Check if the MCP server is alive.
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 a formatted string indicating server status and current timestamp.@mcp.tool() async def ping() -> str: """Check if the MCP server is alive.""" logger.debug("ping called") return f"Status: ok\n" f"Timestamp: {datetime.now().isoformat()}\n" f"Message: Log Analyzer MCP Server is running"
- src/log_analyzer_mcp/log_analyzer_mcp_server.py:417-417 (registration)The @mcp.tool() decorator on the ping function registers it as an MCP tool in the FastMCP server instance.@mcp.tool()