get_project
Retrieve detailed project information including tasks, workers, and escrow state by providing a project ID.
Instructions
Get detailed info about a specific project including all tasks, workers, and escrow state.
Args: project_id: The project ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>"
},
"name": "get_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- robotfail_mcp/server.py:81-89 (handler)The get_project tool handler function — fetches detailed info about a specific project via a GET request to /api/projects/{project_id}.
@mcp.tool() async def get_project(project_id: int) -> str: """Get detailed info about a specific project including all tasks, workers, and escrow state. Args: project_id: The project ID. """ data = await _get(f"/api/projects/{project_id}") return json.dumps(data, indent=2) - robotfail_mcp/server.py:81-81 (registration)The tool is registered via the @mcp.tool() decorator from FastMCP.
@mcp.tool() - robotfail_mcp/server.py:34-38 (helper)The _get helper function that get_project relies on to make the HTTP GET request 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()