Expenses' GST vs BAS credits, and a bulk GST fix
set_expense_gst_treatmentSets the GST treatment on a year's expense rows after comparing GST paid against the net GST on activity statements. Previews each row change by default; apply only after user approval.
Instructions
Compare a year's GST with the activity statements — per period, GST collected on rent − GST paid in the expense rows (magnitudes) against the net GST raised on the imported 001 account — and set the GST treatment on the year's expense rows in one go. dry_run (default true) changes nothing: it lists each row it would change (gst_treatment, GST and expense_amount before → after), the ledger GST after the change against credits_claimed, and the expense change. Without cash_transaction_ids it takes every gst_free expense row with no gst_amount in a category that carries GST (not bank fees, ASIC fees, interest or insurance) — or the categories given; rows matched to a security/income transaction are never changed (their GST is on that transaction). Show the preview to the user and apply (dry_run: false) only when they say so. The expenses_gst_treatment check reports the same comparison.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fund_id": "<fund_id>",
"financial_year": "<financial_year>"
},
"name": "set_expense_gst_treatment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Default true: preview only | |
| fund_id | Yes | Fund ID (discover via whoami or list_funds) | |
| reasoning | No | Why you are making this change — recorded on the audit log entry for this write | |
| categories | No | Only gst_free rows in these expense categories, e.g. ["expense_accounting", "expense_audit"] | |
| external_ref | No | Your stable ID for this write (e.g. a statement line or document reference). Repeating a call with the same external_ref replays the first result instead of writing twice. | |
| gst_treatment | No | Treatment to set (default gst_inclusive) | |
| financial_year | Yes | Financial year — the label "2023-24" or its numeric id (from list_financial_years) | |
| cash_transaction_ids | No | Only these expense rows |