health
Check RobotFail platform health and view stats on projects, tasks, and workers.
Instructions
Check RobotFail platform health and stats — projects, tasks, workers.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "health"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- robotfail_mcp/server.py:48-52 (registration)The 'health' tool is registered via the @mcp.tool() decorator on line 48.
@mcp.tool() async def health() -> str: """Check RobotFail platform health and stats — projects, tasks, workers.""" data = await _get("/api/health") return json.dumps(data, indent=2) - robotfail_mcp/server.py:48-52 (handler)The health() async function executes the tool logic: calls _get('/api/health') and returns JSON.
@mcp.tool() async def health() -> str: """Check RobotFail platform health and stats — projects, tasks, workers.""" data = await _get("/api/health") return json.dumps(data, indent=2) - robotfail_mcp/server.py:34-38 (helper)The _get() helper function used by health() to make HTTP GET requests to the RobotFail API.
async def _get(path: str) -> dict: async with httpx.AsyncClient(timeout=30) as client: r = await client.get(f"{API_BASE}{path}", headers=_headers()) r.raise_for_status() return r.json()