list_expenses
Retrieve expense records from FreshBooks with optional filtering by client to track business spending and manage financial data.
Instructions
List expenses with optional client filter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| per_page | No | ||
| client_id | No |
Implementation Reference
- src/mcp_freshbooks/server.py:265-275 (handler)The handler function for the list_expenses MCP tool.
async def list_expenses( page: int = 1, per_page: int = 25, client_id: int | None = None, ) -> str: """List expenses with optional client filter.""" filters = {} if client_id: filters["clientid"] = client_id result = await client.accounting_list("expenses/expenses", page, per_page, filters) return _summarize_list(result, "expenses", ["id", "vendor", "amount", "date", "status", "categoryid"])