Reconcile lodged BAS figures with the ledger
reconcile_basCompare lodged BAS labels G1, G2, G3, G10, G11, 1A and 1B with ledger lines by period to flag matches, differences, unreported labels, and negative totals on a cash or accruals basis.
Instructions
Compare lodged G1, G2, G3, G10, G11, 1A and 1B with the ledger, per period.
gst-review attributes each line to a period by payment date on the cash basis, or the earlier of invoice and payment on accruals (GST Act ss 29-5 and 29-10), rounds ledger totals down to whole dollars and gives each label a status: matches, differs (with the difference and its lines), not_reported or negative_ledger. Lodged figures are whole non-negative dollars. Amounts are AUD decimal strings; gross includes GST and both are negative for a credit note. A line in a period that it cannot place on a label refuses the call; kept_out lists excluded lines and timing lists lines invoiced in a period but attributed elsewhere. Does not decide whether a difference needs a revised BAS, whether a code is right or which basis applies. Retain not_decided and warnings. Local review aid, not advice or a BAS.
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": {
"lines": "<lines>",
"periods": "<periods>",
"basis": "<basis>"
},
"name": "reconcile_bas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| basis | Yes | The GST accounting basis the operator established for the entity. | |
| lines | Yes | Ledger sale and purchase lines, up to 2000, with GST codes and dates. | |
| periods | Yes | Non-overlapping tax periods, each with its lodged figures if lodged. | |
| bas_codes | No | Code table mapping each GST code to its BAS category; omit for the engine's common Xero and MYOB AU codes. | |
| g1_includes_gst | No | Whether the lodged G labels include GST, as chosen at G1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The review ran; this does not mean compliance or a known verdict. | |
| basis | Yes | ||
| engine | Yes | Delegated distribution that produced this result. | |
| review | Yes | ||
| unpaid | Yes | Supplied line ids, in input order. | |
| periods | Yes | ||
| sources | Yes | ||
| warnings | Yes | Retain when presenting the result. | |
| disclaimer | Yes | ||
| facts_used | Yes | Basis, G1 choice, codes, rounding. | |
| not_lodged | Yes | Periods with lines but no figures. | |
| not_decided | Yes | Retain when presenting the result. | |
| engine_version | Yes | Installed version of that engine. | |
| source_checked | Yes | Date in YYYY-MM-DD form. | |
| no_ledger_lines | Yes | Lodged periods with no lines. | |
| outside_periods | Yes | Supplied line ids, in input order. |