list_bank_accounts
Fetch bank accounts for employees. Optionally filter by person ID to get specific account details.
Instructions
List bank accounts. Optionally filter by personId.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_bank_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person_id | No |
Implementation Reference
- humaans_mcp/server.py:386-389 (handler)The tool handler function decorated with @mcp.tool(). Calls the HumaansClient.list_page() method with the '/bank-accounts' endpoint and an optional personId filter.
@mcp.tool() async def list_bank_accounts(person_id: str | None = None) -> Any: """List bank accounts. Optionally filter by personId.""" return await client().list_page("/bank-accounts", filters={"personId": person_id}, limit=250) - humaans_mcp/server.py:386-387 (registration)The tool is registered with MCP via the @mcp.tool() decorator on the list_bank_accounts function.
@mcp.tool() async def list_bank_accounts(person_id: str | None = None) -> Any: - humaans_mcp/client.py:45-55 (helper)The list_page method of HumaansClient that performs the actual API call. It builds query parameters (including filters and pagination) and calls the GET endpoint.
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) - humaans_mcp/server.py:11-15 (helper)The client() helper function that lazily initializes and returns the HumaansClient singleton used by the tool handler.
def client() -> HumaansClient: global _client if _client is None: _client = HumaansClient() return _client