AI tools — finance

19 tools. The latest schema is always in finance_tool_catalog once connected.

Ledger anomaly check

ReadScope: finance:read
finance_audit_anomalies

Run rule-based checks on a month/quarter's balances and turnover: wrong-side balances, negative cash or stock, revenue/expense accounts left after closing entries, unusual swings… Each finding includes how to fix it.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026
monthintegernoMonth 1–12
quarterintegernoQuarter 1–4 (not together with month)

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_audit_anomalies/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026,"month":10}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_audit_anomalies",
  "arguments": {
    "args": {
      "year": 2026,
      "month": 10
    }
  }
}

Invoices vs tax portal

ReadScope: finance:read
finance_audit_invoice_vs_portal

Compare invoices downloaded from the tax portal with the books for a period: on the portal but missing in the books, in the books but not on the portal, and amount/tax mismatches.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026
monthintegernoMonth 1–12
quarterintegernoQuarter 1–4 (not together with month)
directionstringnoOUT = sales, IN = purchases, BOTH = both (default)

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_audit_invoice_vs_portal/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026,"month":10,"direction":"OUT"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_audit_invoice_vs_portal",
  "arguments": {
    "args": {
      "year": 2026,
      "month": 10,
      "direction": "OUT"
    }
  }
}

General ledger vs cash book

ReadScope: finance:read
finance_audit_ledger_vs_cashbook

Reconcile the ledger balance of each fund's account with the cash book up to period end; for mismatched funds, show the largest difference days and the total difference.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026
monthintegernoMonth 1–12
quarterintegernoQuarter 1–4 (not together with month)
fundIdstringnoFund id to check one fund day by day; omit for all funds

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_audit_ledger_vs_cashbook/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026,"month":10}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_audit_ledger_vs_cashbook",
  "arguments": {
    "args": {
      "year": 2026,
      "month": 10
    }
  }
}

Cash vouchers not yet posted

ReadScope: finance:read
finance_audit_missing_vouchers

Cash-book vouchers not yet posted to the ledger in the period, grouped by reason (no posting rule, fund without account, closed period…) with counts, totals and how to fix.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026
monthintegernoMonth 1–12
quarterintegernoQuarter 1–4 (not together with month)

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_audit_missing_vouchers/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026,"month":10}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_audit_missing_vouchers",
  "arguments": {
    "args": {
      "year": 2026,
      "month": 10
    }
  }
}

Cash position today

ReadScope: finance:read
finance_cashbook_summary

Total balance of active cash funds, number of funds, and today's total receipts / payments (Vietnam time).

No parameters.

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_cashbook_summary/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_cashbook_summary",
  "arguments": {
    "args": {}
  }
}

Period-close checklist status

ReadScope: finance:read
finance_close_checklist_status

Period-close checklist: balanced ledger, pending documents, fund balances vs ledger, invoices, VAT/PIT/CIT returns, period lock. Returns items still warning or blocking, with guidance.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026
monthintegernoMonth 1–12
quarterintegernoQuarter 1–4 (not together with month)

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_close_checklist_status/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026,"month":10}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_close_checklist_status",
  "arguments": {
    "args": {
      "year": 2026,
      "month": 10
    }
  }
}

Upcoming and overdue obligations

ReadScope: finance:read
finance_close_obligations

A legal entity's obligation calendar: tax filing and payment, insurance, annual finalisation, financial statements, period close… due within the next N days plus all overdue items.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
daysintegernoDays ahead to look, 1–180, default 30

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_close_obligations/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"days":30}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_close_obligations",
  "arguments": {
    "args": {
      "days": 30
    }
  }
}

Accounting and tax rules lookup

ReadScope: finance:read
finance_law_lookup

Look up accounting and tax rules as of a date: summary with legal basis, whether a document is in force, applicable return forms and current parameters (family deductions, tax rates, insurance caps).

ParameterTypeRequiredDescription
qstringyesTopic, e.g. 8% VAT rate, family deduction
datestringnoEffective date (YYYY-MM-DD), default today

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_law_lookup/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"q":"giảm trừ gia cảnh"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_law_lookup",
  "arguments": {
    "args": {
      "q": "giảm trừ gia cảnh"
    }
  }
}

Account balance

ReadScope: finance:read
finance_ledger_account_balance

Opening balance, debit/credit turnover and closing balance of one ledger account, computed like the trial balance. Can be narrowed to one counterparty.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
tkstringyesAccount number, e.g. 131, 511, 6422
fromstringyesFrom date (YYYY-MM-DD)
tostringyesTo date (YYYY-MM-DD)
objectIdstringnoCounterparty id (customer, supplier) to view one counterparty only

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_ledger_account_balance/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"tk":"131","from":"2026-10-01","to":"2026-10-31"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_ledger_account_balance",
  "arguments": {
    "args": {
      "tk": "131",
      "from": "2026-10-01",
      "to": "2026-10-31"
    }
  }
}

Account ledger detail

ReadScope: finance:read
finance_ledger_account_detail

Each journal line of one account in a period (up to 366 days): date, document number, debit/credit, description, plus the period turnover. Paged, up to 50 rows.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
tkstringyesAccount number, e.g. 642
fromstringyesFrom date (YYYY-MM-DD)
tostringyesTo date (YYYY-MM-DD)
objectIdstringnoCounterparty id to view one counterparty only
pageintegernoPage, starting at 1
pageSizeintegernoRows per page, default 20, max 50

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_ledger_account_detail/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"tk":"642","from":"2026-10-01","to":"2026-10-31"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_ledger_account_detail",
  "arguments": {
    "args": {
      "tk": "642",
      "from": "2026-10-01",
      "to": "2026-10-31"
    }
  }
}

Compare an account across two periods

ReadScope: finance:read
finance_ledger_compare_periods

Compare one account between period A and period B: each period's amount, the difference and the % change. Compares turnover (revenue, expenses) or closing balance.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
tkstringyesAccount number
fromAstringyesPeriod A from (YYYY-MM-DD)
toAstringyesPeriod A to
fromBstringyesPeriod B from (usually the previous period)
toBstringyesPeriod B to
measurestringnoperiod = compare turnover (default), closing = compare closing balance
objectIdstringnoCounterparty id to view one counterparty only

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_ledger_compare_periods/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"tk":"642","fromA":"2026-10-01","toA":"2026-10-31","fromB":"2026-09-01","toB":"2026-09-30"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_ledger_compare_periods",
  "arguments": {
    "args": {
      "tk": "642",
      "fromA": "2026-10-01",
      "toA": "2026-10-31",
      "fromB": "2026-09-01",
      "toB": "2026-09-30"
    }
  }
}

Receivables / payables with aging

ReadScope: finance:read
finance_ledger_party_balance

Balances by counterparty on receivable / payable accounts (131, 331 or sub-accounts): opening, turnover, closing and aging buckets (0–30, 31–60, 61–90, 91–180, over 180 days).

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
tkstringyes131 (receivable) or 331 (payable)
fromstringyesFrom date (YYYY-MM-DD)
tostringyesTo date, also the aging reference date
searchstringnoCounterparty name, code or tax code
objectIdstringnoCounterparty id when known
kindstringnoCUSTOMER, SUPPLIER, EMPLOYEE or OTHER
agingbooleannoWhether to compute aging, default true

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_ledger_party_balance/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"tk":"131","to":"2026-11-30"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_ledger_party_balance",
  "arguments": {
    "args": {
      "tk": "131",
      "to": "2026-11-30"
    }
  }
}

Trial balance

ReadScope: finance:read
finance_ledger_trial_balance

Trial balance of a legal entity for a period: totals and per-account figures (opening, turnover, closing). Level-1 accounts by default; filter by account prefix or drill down by level.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
fromstringyesFrom date (YYYY-MM-DD)
tostringyesTo date (YYYY-MM-DD)
levelintegernoDeepest account level, 1–9, default 1
tkPrefixstringnoAccount prefix filter, e.g. 6, 51, 131

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_ledger_trial_balance/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"from":"2026-10-01","to":"2026-10-31"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_ledger_trial_balance",
  "arguments": {
    "args": {
      "from": "2026-10-01",
      "to": "2026-10-31"
    }
  }
}

Financial statement line

ReadScope: finance:read
finance_report_financial_line

One line of the financial statements (B01 balance sheet, B02 income statement, B03 cash flow): current and prior period figures and the account formula.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
reportstringyesB01, B02, B03 or a template code, e.g. B02-DN
fromstringyesFrom date (YYYY-MM-DD)
tostringyesTo date (YYYY-MM-DD)
linestringnoLine code, e.g. 01, 60, 270
searchstringnoText in the line name

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_report_financial_line/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"report":"B02","line":"60","from":"2026-01-01","to":"2026-09-30"}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_report_financial_line",
  "arguments": {
    "args": {
      "report": "B02",
      "line": "60",
      "from": "2026-01-01",
      "to": "2026-09-30"
    }
  }
}

Corporate income tax for a year

ReadScope: finance:read
finance_tax_cit_summary

Corporate income tax for a fiscal year: rate, quarterly provisional amounts from the books, amounts prepaid and paid, and the payable on filed returns.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
fiscalYearintegeryesFiscal year, e.g. 2026
quarterintegernoOne quarter 1–4 only; omit for the whole year

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_tax_cit_summary/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"fiscalYear":2026}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_tax_cit_summary",
  "arguments": {
    "args": {
      "fiscalYear": 2026
    }
  }
}

Personal income tax withheld for a year

ReadScope: finance:read
finance_tax_pit_summary

Total personal income tax withheld in the year per withholding and annual returns, compared with the books. No per-person figures.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_tax_pit_summary/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_tax_pit_summary",
  "arguments": {
    "args": {
      "year": 2026
    }
  }
}

VAT for a period

ReadScope: finance:read
finance_tax_vat_summary

VAT return (form 01/GTGT) figures for a period: tax payable, credit carried forward, revenue, output and input VAT. Unfiled periods return a provisional figure computed from the books.

ParameterTypeRequiredDescription
legalEntityIdstringnoLegal entity id; omit when there is only one
yearintegeryesYear, e.g. 2026
monthintegernoMonth 1–12 (monthly filers)
quarterintegernoQuarter 1–4 (quarterly filers)

Or call over REST with an API key

curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_tax_vat_summary/read \
  -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
  -d '{"year":2026,"quarter":3}'
MCP call example (for AI assistants)

AI assistants send this call themselves when you ask in plain words; you only need it when debugging an MCP connection.

{
  "name": "finance_tax_vat_summary",
  "arguments": {
    "args": {
      "year": 2026,
      "quarter": 3
    }
  }
}