Search Transactions
search_transactionsSearch YNAB transactions by text or amount, with pagination, to return focused results instead of large budget dumps.
Instructions
Search transactions by text and/or amount, with pagination. The server fetches the (optionally account- and date-bounded) transaction list from YNAB and filters it before responding, so a busy budget returns a small page instead of a multi-megabyte dump that can exceed client tool timeouts. 'query' is a case-insensitive substring match over payee_name, import_payee_name_original (raw bank string), memo, account_name, category_name, and split rows' payee/memo/category. 'amount' matches on absolute value with half-cent tolerance, so 12.34 finds a -12.34 outflow. Results are newest-first; page with limit/offset using the returned next_offset. Provide at least one of query or amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size (default 50, max 500) | |
| query | No | Text to find in payee, raw import payee, memo, account, or category (case-insensitive substring) | |
| amount | No | Amount in dollars to match on absolute value (12.34 matches -12.34 and 12.34) | |
| offset | No | Number of matches to skip (default 0); pass next_offset from the previous page | |
| budgetId | No | Budget ID (uses default if not provided) | |
| accountId | No | Restrict the search to one account | |
| sinceDate | No | Only search transactions on or after this date (YYYY-MM-DD). If omitted, YNAB defaults to one year ago. | |
| untilDate | No | Only search transactions on or before this date (YYYY-MM-DD) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |