list_hex_projects
Retrieve a JSON list of all active Hex projects in production, with options to set limits and offsets for efficient data handling.
Instructions
List all available Hex projects that are in production.
Returns:
JSON string with list of projects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No |
Implementation Reference
- src/hex_mcp/server.py:65-74 (handler)The handler function for the 'list_hex_projects' tool. It makes a GET request to the Hex API's /projects endpoint with limit and offset parameters, and returns the list of projects as a JSON string.@mcp.tool() async def list_hex_projects(limit: int = 25, offset: int = 0) -> str: """List all available Hex projects that are in production. Returns: JSON string with list of projects """ params = {"limit": limit, "offset": offset} projects = await hex_request("GET", "/projects", params=params) return projects["values"]