ping
Check connectivity to the GigAPI server by sending a ping request. This tool verifies server responsiveness for managing timeseries data integration with Claude Desktop.
Instructions
Ping the GigAPI server to check connectivity.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _ | Yes |
Implementation Reference
- mcp_gigapi/tools.py:200-219 (handler)The ping tool handler method in GigAPITools class, which calls the client's ping() and returns formatted response with success status.def ping(self) -> Dict[str, Any]: """Ping GigAPI server. Returns: Ping response """ try: response = self.client.ping() return { "response": response, "success": True, "status": "connected" } except GigAPIClientError as e: logger.error(f"Ping failed: {e}") return { "error": str(e), "success": False, "status": "disconnected" }
- mcp_gigapi/tools.py:258-262 (registration)Registration of the 'ping' tool as a FastMCP Tool instance using Tool.from_function, wrapping the ping handler.Tool.from_function( lambda _: tools_instance.ping(), name="ping", description="Ping the GigAPI server to check connectivity.", ),
- mcp_gigapi/mcp_server.py:40-42 (registration)Server-side registration where all tools, including 'ping', are added to the FastMCP server instance.tools = create_tools(client) for tool in tools: mcp.add_tool(tool)
- mcp_gigapi/client.py:124-131 (helper)Helper method in GigAPIClient that performs the actual HTTP ping request to the GigAPI server.def ping(self) -> str: """Ping GigAPI server. Returns: Pong response """ response = self._make_request("GET", "/ping") return response.text