query_invoices
Search and filter invoices by various criteria. Returns a response with top-level "primary_currency" and "currency_warning" fields. Each invoice includes explicit "currency", "comparable" (true if matches primary currency), and "converted_to_primary" fields alongside separate numeric "amount_gross", "amount_net", and "tax_amount" values. Also has TWO status fields: "processing_status" (pending/processing/completed/paid) and "payment_status" (paid/unpaid). Amounts in different currencies are NOT directly comparable or summable. Also includes tags/categories for each invoice in the response. converted_to_primary is null when no conversion data exists, or { amount, currency, source } when a bank reconciliation has recorded the actual settlement amount in the user's primary currency. Requires the Start or Business plan.
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": "query_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by a single tag name (partial match) | |
| limit | No | Maximum number of results (default: 10) | |
| status | No | Filter by processing_status (OCR workflow stage). Note: completed means OCR is done but NOT necessarily paid; the payment_status field in results reflects the actual payment state. | |
| vendor | No | Filter by vendor name (partial match) | |
| date_to | No | End date (YYYY-MM-DD) | |
| date_from | No | Start date (YYYY-MM-DD) | |
| max_amount | No | Maximum invoice amount (gross) | |
| min_amount | No | Minimum invoice amount (gross) |