get_hex_project_runs
Retrieve project runs for a specific Hex project by providing the project ID, with options to limit and offset results for efficient data access.
Instructions
Get the runs for a specific project.
Args:
project_id: The UUID of the Hex project
limit: The number of runs to return
offset: The number of runs to skip
Returns:
JSON string with project runs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| project_id | Yes |
Implementation Reference
- src/hex_mcp/server.py:190-207 (handler)The tool handler function for 'get_hex_project_runs'. It makes a GET request to the Hex API endpoint /projects/{project_id}/runs with pagination parameters and returns the JSON response as a string.@mcp.tool() async def get_hex_project_runs(project_id: str, limit: int = 25, offset: int = 0) -> str: """Get the runs for a specific project. Args: project_id: The UUID of the Hex project limit: The number of runs to return offset: The number of runs to skip Returns: JSON string with project runs """ params = {"limit": limit, "offset": offset} runs = await hex_request("GET", f"/projects/{project_id}/runs", params=params) return runs
- src/hex_mcp/server.py:190-190 (registration)The @mcp.tool() decorator registers the get_hex_project_runs function as an MCP tool.@mcp.tool()