healthcheck_flow
Check the operational status of the Approved Platform's Flow Service before submitting invoices. Ensures the service is reachable and returns status as ok, degraded, or unavailable.
Instructions
Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- tools/flow_tools.py:354-361 (handler)MCP tool handler that checks Flow Service availability by delegating to FlowClient.healthcheck()
async def healthcheck_flow() -> dict: """ Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable. """ client = get_flow_client() return await client.healthcheck() - tools/flow_tools.py:353-361 (registration)Decorator registration on FastMCP instance inside register_flow_tools()
@mcp.tool() async def healthcheck_flow() -> dict: """ Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable. """ client = get_flow_client() return await client.healthcheck() - tools/flow_tools.py:354-361 (schema)No input parameters (empty schema); returns dict with status field
async def healthcheck_flow() -> dict: """ Check the availability of the Approved Platform's Flow Service. Returns the operational status of the service (ok/degraded/unavailable). Use before an invoice submission session to ensure the AP is reachable. """ client = get_flow_client() return await client.healthcheck() - clients/flow_client.py:167-173 (helper)FlowClient.healthcheck() — actual HTTP call to GET /v1/healthcheck
async def healthcheck(self) -> dict[str, Any]: """GET /v1/healthcheck — Check Flow Service availability.""" response = await self._request("GET", "/v1/healthcheck") try: return response.json() except Exception: return {"status": "ok", "http_status": response.status_code} - server.py:63-64 (registration)Top-level registration call in server.py entry point
register_flow_tools(mcp) register_directory_tools(mcp)