list_spaces
Retrieve a complete list of all physical office spaces in your organization. View location details for space management.
Instructions
List all physical office spaces.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- humaans_mcp/server.py:281-284 (handler)The tool handler function `list_spaces` decorated with @mcp.tool(). Calls `client().list_page('/spaces', limit=250)` to list all physical office spaces from the Humaans API.
@mcp.tool() async def list_spaces() -> Any: """List all physical office spaces.""" return await client().list_page("/spaces", limit=250) - humaans_mcp/server.py:281-281 (registration)The tool is registered via the @mcp.tool() decorator, which is a FastMCP decorator that automatically registers the function as an MCP tool.
@mcp.tool() - humaans_mcp/client.py:45-55 (helper)The `list_page` method on HumaansClient, which is the underlying API call used by list_spaces. It constructs query params and calls the Humaans API.
async def list_page( self, path: str, filters: dict[str, Any] | None = None, limit: int = 100, skip: int = 0, ) -> Any: params = dict(filters or {}) params["$limit"] = limit params["$skip"] = skip return await self.get(path, params)