health_check
Verify the Apollo.io API connection status and authentication validity to ensure reliable access for sales and marketing operations.
Instructions
Check the health and authentication status of the Apollo.io API connection.
This tool verifies that the API key is valid and the service is accessible.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/apollo_mcp_server.py:385-400 (handler)The health_check tool handler function, decorated with @mcp.tool() which registers it in the FastMCP server. It performs a health check by making a GET request to Apollo.io's /v1/auth/health endpoint and returns the result or an error message.@mcp.tool() async def health_check() -> Dict[str, Any]: """ Check the health and authentication status of the Apollo.io API connection. This tool verifies that the API key is valid and the service is accessible. """ endpoint = "/v1/auth/health" try: result = await apollo_client.make_request("GET", endpoint) return result except httpx.HTTPStatusError as e: return {"error": f"API request failed: {e.response.status_code} {e.response.text}"} except Exception as e: return {"error": f"Request failed: {str(e)}"}