list_funds
Retrieve a paginated list of all funds associated with the firm using configurable page and per_page parameters.
Instructions
List all funds associated with the firm.
Args: page: Page number for pagination (default: 1) per_page: Results per page (default: 100, max: 100)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| per_page | No |
Implementation Reference
- src/tools.py:255-267 (handler)The MCP tool handler for 'list_funds'. Decorated with @mcp.tool, it accepts page/per_page parameters and delegates to the StandardMetrics client's list_funds method.
@mcp.tool async def list_funds( page: int = 1, per_page: int = 100, ) -> PaginatedFunds: """List all funds associated with the firm. Args: page: Page number for pagination (default: 1) per_page: Results per page (default: 100, max: 100) """ async with StandardMetrics() as client: return await client.list_funds(page=page, page_size=per_page) - src/_client.py:256-265 (helper)The StandardMetrics client method that makes the actual HTTP GET request to the 'v1/funds/' API endpoint and returns PaginatedFunds.
async def list_funds( self, *, page: int = 1, page_size: int = 100, ) -> PaginatedFunds: """List all funds associated with the firm.""" params: dict[str, Any] = {"page": page, "page_size": page_size} response = await self._request("GET", "v1/funds/", params=params) return PaginatedFunds.model_validate(response) - src/_types.py:102-107 (schema)The Fund Pydantic model defining the schema for fund data (id, name, size, vintage, currency).
class Fund(pydantic.BaseModel): id: str name: str size: str vintage: int currency: str - src/_types.py:274-274 (schema)The PaginatedFunds type alias, which is a PaginatedResponse parameterized with the Fund model.
PaginatedFunds = PaginatedResponse[Fund] - src/server.py:78-78 (registration)The wildcard import from src.tools in server.py triggers the @mcp.tool decorators, registering list_funds (and all other tools) with the MCP server.
from src.tools import * # noqa: F403 - need to register all of the tools