health_check
Verify the Apollo.io API connection status and authentication validity to ensure the sales and marketing data service is accessible and operational.
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 handler function for the 'health_check' MCP tool. It performs a GET request to the Apollo.io /v1/auth/health endpoint to verify API connectivity and authentication status, returning 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)}"}