actual_query
Run read-only ActualQL queries against Actual Budget data to filter and retrieve transactions, accounts, categories, or payees without modifying records.
Instructions
[READ-ONLY] Run an ActualQL query against budget data (e.g., transactions, accounts, categories, payees). Does not modify data.
Querying Best Practices:
Select Fields: Use --select "date,amount,payee.name,notes,category.name,category.group.name,account.name,account.offbudget".
Filter Syntax: Use ActualQL JSON filter object, e.g. {"amount": {"$lt": 0}} or {"category.group.name": {"$oneof": ["Food", "Bills"]}}.
Historical Analysis: Run a single query to fetch transactions rather than multiple per-month API calls.
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": "actual_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Legacy CLI argument list | |
| data | No | Custom query JSON object or string | |
| file | No | Path to query JSON file | |
| count | No | Return count only | |
| limit | No | Maximum rows | |
| table | No | Target table (e.g. transactions, accounts, categories, payees) | |
| filter | No | ActualQL filter object or JSON string | |
| select | No | Comma-separated field list (e.g. 'date,amount,payee.name,notes,category.name') | |
| order_by | No | Sort fields |