List expenses
list_expensesList project-scoped expenses (the Project → Costs → Expenses tab). These records have description, amount, expense_date, receipt_url, and notes - they do NOT carry invoice_number or po_number. For the records shown on the main AssetLab "Expenses" page (which include invoice_number, po_number, category, and asset/site links), use list_asset_costs instead. Filter by project, work order, or cost category. Amounts are bare numbers with no currency: call get_organization_settings for currency_code before stating one.
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_expenses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: all pages fetched automatically) | |
| search | No | Search by name | |
| per_page | No | Items per page (default: 1000, max: 1000). All pages are fetched automatically. | |
| project_id | No | Filter by project ID - resolve via list_projects | |
| category_id | No | Filter by cost category ID - resolve via list_cost_categories | |
| work_order_id | No | Filter by work order ID - resolve via list_work_orders |