Skip to main content
Glama
gigapi

GigAPI MCP Server

by gigapi

health_check

Check the health status of the GigAPI server to verify its operational state and availability for managing timeseries data.

Instructions

Check the health status of the GigAPI server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
_Yes

Implementation Reference

  • The main handler function for the 'health_check' MCP tool. It invokes the client's health_check method and formats the response with success status.
    def health_check(self) -> Dict[str, Any]: """Check GigAPI server health. Returns: Health status """ try: health = self.client.health_check() return { "health": health, "success": True, "status": "healthy" } except GigAPIClientError as e: logger.error(f"Health check failed: {e}") return { "error": str(e), "success": False, "status": "unhealthy" }
  • Registration of the 'health_check' tool using FastMCP's Tool.from_function, binding the GigAPITools.health_check method.
    Tool.from_function( lambda _: tools_instance.health_check(), name="health_check", description="Check the health status of the GigAPI server.", ),
  • Helper method in GigAPIClient that performs the actual HTTP GET request to '/health' endpoint and returns the JSON response.
    def health_check(self) -> Dict[str, Any]: """Check GigAPI server health. Returns: Health status response """ response = self._make_request("GET", "/health") return response.json()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gigapi/gigapi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server