Skip to main content
Glama
nz-openbank-mcp

nz-openbank-mcp

Get Transaction

txn_get_transaction
Read-onlyIdempotent

Fetch one settled transaction by Akahu transaction ID to retrieve its details for reconciliation, reporting, or transaction lookup.

Instructions

Fetch one settled transaction by id.

Returns the same shape as one entry in get_transactions["transactions"].

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": {
      "transaction_id": "<transaction_id>"
    },
    "name": "txn_get_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
transaction_idYesAkahu transaction id (e.g. "txn_a1b2c3").

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description contributes beyond that by scoping results to settled transactions and by pinning the return shape to an entry of get_transactions['transactions'], which is a genuine behavioral disclosure. It does not mention error behavior for unknown ids, but that is a minor gap given annotation coverage.

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

Conciseness5/5

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

Two short sentences, zero waste, with the core action front-loaded and the return-shape note as supporting detail. Nothing is repeated from the schema or annotations.

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

Completeness4/5

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

For a single-parameter read tool with full annotation coverage and an output schema, the description covers what it fetches, its scope, and what comes back. The only missing piece is explicit guidance on choosing between this, txn_get_transactions_by_ids, and txn_get_pending_transactions.

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 description coverage is 100% and the single transaction_id parameter is documented with format and an example value, so the schema does the heavy lifting. The description adds no further semantics about id validity, cross-account scope, or format beyond calling it an 'id'. Baseline 3 applies.

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?

States a specific verb and resource plus scope: 'Fetch one settled transaction by id.' The words 'one' and 'settled' implicitly separate it from the list tool (txn_get_transactions) and the batch tool (txn_get_transactions_by_ids), and exclude pending transactions. It stops short of naming any sibling, so the differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied via the qualifier 'settled' and 'by id', which suggests this is the single-record path rather than the list or batch paths. There is no explicit when-to-use, when-not-to-use, or pointer to txn_get_pending_transactions for unsettled records, leaving the agent to infer the routing.

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