Skip to main content
Glama
nz-openbank-mcp

nz-openbank-mcp

Get Transactions

txn_get_transactions
Read-onlyIdempotent

List settled New Zealand bank transactions with optional account, date, amount, and category filters to review spending or reconcile accounts.

Instructions

List settled transactions with optional filters.

Returns {"transactions": [...], "truncated": bool, "limit_reached": bool} where each entry has id, account_id, date (YYYY-MM-DD, NZ calendar day), description, amount (formatted in the account's currency, e.g. "-$12.50" or "-USD 9.99"), amount_raw (number rounded to cents; negative = debit), currency (ISO code, or None when the account's currency is unknown, in which case amount has no symbol, e.g. "-1,234.50"), type, merchant (str | None), category (str | None). The list is complete only when both flags are false. limit_reached is true when the result holds limit items, so more may exist: raise limit (up to 500) or narrow the dates before totalling. truncated is true when the scan stopped at the 20-page cap before reaching the end of the range; narrow the dates and call again.

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": "txn_get_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items returned, 1 to 500 (default 100).
categoryNoExact category name (applied after fetching).
end_dateNoLatest NZ day as YYYY-MM-DD (inclusive), or an ISO 8601 timestamp passed to Akahu as an inclusive upper bound (UTC if it has no offset).
account_idNoScope to one account (sent to Akahu).
max_amountNoUpper bound on signed amount (applied after fetching).
min_amountNoLower bound on signed amount (applied after fetching; negatives are debits).
start_dateNoEarliest NZ day as YYYY-MM-DD (inclusive), or an ISO 8601 timestamp passed to Akahu as an exclusive lower bound (UTC if it has no offset).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.6
    • changedInput schema / properties / account_id / description
      Previous value: -"Scope to one account (server-side filter)."New value: +"Scope to one account (sent to Akahu)."
    • changedInput schema / properties / category / description
      Previous value: -"Exact Category.name match (client-side filter)."New value: +"Exact category name (applied after fetching)."
    • changedInput schema / properties / end_date / description
      Previous value: -"ISO 8601 timestamp upper bound (server-side filter)."New value: +"Latest NZ day as YYYY-MM-DD (inclusive), or an ISO 8601\ntimestamp passed to Akahu as an inclusive upper bound (UTC if it\nhas no offset)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max items returned (default 100)."New value: +"Max items returned, 1 to 500 (default 100)."
    • addedInput schema / properties / limit / maximum
      Added value: +500
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / max_amount / description
      Previous value: -"Upper bound on signed amount (client-side)."New value: +"Upper bound on signed amount (applied after fetching)."
    • changedInput schema / properties / min_amount / description
      Previous value: -"Lower bound on signed amount (client-side; negatives are debits)."New value: +"Lower bound on signed amount (applied after fetching; negatives are debits)."
    • changedInput schema / properties / start_date / description
      Previous value: -"ISO 8601 timestamp lower bound (server-side filter)."New value: +"Earliest NZ day as YYYY-MM-DD (inclusive), or an ISO 8601\ntimestamp passed to Akahu as an exclusive lower bound (UTC if it\nhas no offset)."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent annotations, it discloses the 20-page scan cap, the exact meaning of truncated versus limit_reached, the completeness rule (both flags false), and currency-formatting edge cases including the unknown-currency case where amount carries no symbol. That is substantive behavioral context an agent cannot get from the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose statement is front-loaded and the flag semantics earn their space because they define correctness of results. However, a large share of the text enumerates the per-entry return fields (id, account_id, date, merchant, category) that the existing output schema already specifies, which is redundant bulk.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter read tool with an output schema, the description covers everything needed to call it correctly and interpret results: truncation/loss semantics, remediation steps, and data-format quirks. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents limit bounds, signed-amount filters, and inclusive/exclusive date handling. The description echoes a few of these (limit up to 500, negative = debit) but adds no new parameter-level detail such as how category interacts with post-fetch filtering or ordering.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List settled transactions with optional filters" gives a specific verb and resource, and the word "settled" implicitly separates it from the sibling txn_get_pending_transactions. It does not explicitly name that sibling or txn_search_transactions, so the differentiation must be inferred rather than read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete operational guidance: when limit_reached is true, raise the limit (up to 500) or narrow the dates before totalling; when truncated is true, narrow the dates and call again. What it lacks is sibling routing — an agent is never told to prefer txn_search_transactions for text queries or txn_get_pending_transactions for unsettled items.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.