ping
Check connectivity to the GigAPI Timeseries Lake server to verify network access and server responsiveness for data querying and management.
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 handler function for the 'ping' MCP tool. It calls the underlying client's ping method and returns a dictionary with the response, success status, and connection 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)The registration of the 'ping' tool using FastMCP's Tool.from_function, binding it to the GigAPITools.ping method with no input parameters.Tool.from_function( lambda _: tools_instance.ping(), name="ping", description="Ping the GigAPI server to check connectivity.", ),