AI tools — finance
19 tools. The latest schema is always in finance_tool_catalog once connected.
Ledger anomaly check
ReadScope:finance:readfinance_audit_anomaliesRun 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, e.g. 2026 |
month | integer | no | Month 1–12 |
quarter | integer | no | Quarter 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:readfinance_audit_invoice_vs_portalCompare 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, e.g. 2026 |
month | integer | no | Month 1–12 |
quarter | integer | no | Quarter 1–4 (not together with month) |
direction | string | no | OUT = 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:readfinance_audit_ledger_vs_cashbookReconcile 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, e.g. 2026 |
month | integer | no | Month 1–12 |
quarter | integer | no | Quarter 1–4 (not together with month) |
fundId | string | no | Fund 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:readfinance_audit_missing_vouchersCash-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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, e.g. 2026 |
month | integer | no | Month 1–12 |
quarter | integer | no | Quarter 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
}
}
}Search receipts and payment vouchers
ReadScope:finance:readfinance_cashbook_searchSearch the cash book by date range, type, status, source app or keyword. Returns the match count, one page of vouchers and total receipts / payments for the whole filter.
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | no | Customer name, customer code or voucher number |
kind | string | no | RECEIPT or VOUCHER (payment) |
status | string | no | Voucher status, e.g. ACTIVE, DRAFT, CANCELLED |
dateFrom | string | no | Document date from (YYYY-MM-DD) |
dateTo | string | no | Document date to (YYYY-MM-DD) |
sourceService | string | no | Originating app: GYM, SALES, SPORT, FINANCE |
page | integer | no | Page, starting at 1 |
pageSize | integer | no | Vouchers per page, max 50 |
Or call over REST with an API key
curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_cashbook_search/read \
-H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
-d '{"kind":"RECEIPT","dateFrom":"2026-11-01","dateTo":"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_cashbook_search",
"arguments": {
"args": {
"kind": "RECEIPT",
"dateFrom": "2026-11-01",
"dateTo": "2026-11-30"
}
}
}Cash position today
ReadScope:finance:readfinance_cashbook_summaryTotal 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:readfinance_close_checklist_statusPeriod-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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, e.g. 2026 |
month | integer | no | Month 1–12 |
quarter | integer | no | Quarter 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:readfinance_close_obligationsA 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
days | integer | no | Days 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:readfinance_law_lookupLook 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | yes | Topic, e.g. 8% VAT rate, family deduction |
date | string | no | Effective 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:readfinance_ledger_account_balanceOpening balance, debit/credit turnover and closing balance of one ledger account, computed like the trial balance. Can be narrowed to one counterparty.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
tk | string | yes | Account number, e.g. 131, 511, 6422 |
from | string | yes | From date (YYYY-MM-DD) |
to | string | yes | To date (YYYY-MM-DD) |
objectId | string | no | Counterparty 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:readfinance_ledger_account_detailEach 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
tk | string | yes | Account number, e.g. 642 |
from | string | yes | From date (YYYY-MM-DD) |
to | string | yes | To date (YYYY-MM-DD) |
objectId | string | no | Counterparty id to view one counterparty only |
page | integer | no | Page, starting at 1 |
pageSize | integer | no | Rows 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:readfinance_ledger_compare_periodsCompare one account between period A and period B: each period's amount, the difference and the % change. Compares turnover (revenue, expenses) or closing balance.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
tk | string | yes | Account number |
fromA | string | yes | Period A from (YYYY-MM-DD) |
toA | string | yes | Period A to |
fromB | string | yes | Period B from (usually the previous period) |
toB | string | yes | Period B to |
measure | string | no | period = compare turnover (default), closing = compare closing balance |
objectId | string | no | Counterparty 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"
}
}
}Accounting legal entities
ReadScope:finance:readfinance_ledger_legal_entitiesThe business's accounting legal entities: id, name, tax code, accounting regime, fiscal-year start month and bookkeeping start date.
No parameters.
Or call over REST with an API key
curl -X POST https://api.nextx.vn/api/v1/ai/tools/finance/finance_ledger_legal_entities/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_ledger_legal_entities",
"arguments": {
"args": {}
}
}Receivables / payables with aging
ReadScope:finance:readfinance_ledger_party_balanceBalances 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).
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
tk | string | yes | 131 (receivable) or 331 (payable) |
from | string | yes | From date (YYYY-MM-DD) |
to | string | yes | To date, also the aging reference date |
search | string | no | Counterparty name, code or tax code |
objectId | string | no | Counterparty id when known |
kind | string | no | CUSTOMER, SUPPLIER, EMPLOYEE or OTHER |
aging | boolean | no | Whether 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:readfinance_ledger_trial_balanceTrial 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
from | string | yes | From date (YYYY-MM-DD) |
to | string | yes | To date (YYYY-MM-DD) |
level | integer | no | Deepest account level, 1–9, default 1 |
tkPrefix | string | no | Account 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:readfinance_report_financial_lineOne line of the financial statements (B01 balance sheet, B02 income statement, B03 cash flow): current and prior period figures and the account formula.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
report | string | yes | B01, B02, B03 or a template code, e.g. B02-DN |
from | string | yes | From date (YYYY-MM-DD) |
to | string | yes | To date (YYYY-MM-DD) |
line | string | no | Line code, e.g. 01, 60, 270 |
search | string | no | Text 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:readfinance_tax_cit_summaryCorporate income tax for a fiscal year: rate, quarterly provisional amounts from the books, amounts prepaid and paid, and the payable on filed returns.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
fiscalYear | integer | yes | Fiscal year, e.g. 2026 |
quarter | integer | no | One 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:readfinance_tax_pit_summaryTotal personal income tax withheld in the year per withholding and annual returns, compared with the books. No per-person figures.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, 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:readfinance_tax_vat_summaryVAT 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
legalEntityId | string | no | Legal entity id; omit when there is only one |
year | integer | yes | Year, e.g. 2026 |
month | integer | no | Month 1–12 (monthly filers) |
quarter | integer | no | Quarter 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
}
}
}