Skip to main content
Glama
nz-openbank-mcp

nz-openbank-mcp

Get Transactions By IDs

txn_get_transactions_by_ids
Read-onlyIdempotent

Fetch multiple settled transactions by their Akahu IDs in one request to inspect related entries together and avoid separate lookups.

Instructions

Batch-fetch settled transactions by their ids in one request.

Useful when you have a list of transaction ids (e.g. from a prior query) and want to inspect them together. Returns {"transactions": [...]} with the same per-entry shape as get_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": {
      "ids": "<ids>"
    },
    "name": "txn_get_transactions_by_ids"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesList of Akahu transaction ids.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the bar is lower; the description still adds real behavior beyond them by noting that only settled (not pending) transactions are returned, that the fetch is batched into one request, and that per-entry shape matches get_transactions. It does not cover edge behavior such as unknown ids, ordering, or batch-size limits.

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?

Three short sentences, front-loaded with the core action, then usage context, then return shape. The return-shape sentence partially duplicates the output schema, but it usefully cross-references get_transactions, so the words largely earn their place.

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 one-parameter batch read with full annotation coverage and an output schema, the description supplies purpose, when-to-use, and filtering scope. Remaining gaps (behavior for missing/invalid ids, max ids per call) are minor but would matter for correct invocation.

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 'ids' parameter is already documented as a list of Akahu transaction ids. The description only restates that it is a list of ids (possibly from a prior query), adding no format, ordering, or limit detail beyond the schema; baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Batch-fetch settled transactions by their ids in one request') plus scope qualifiers ('batch', 'settled') that separate it from txn_get_transaction (single) and txn_get_transactions (filtered list). An agent can distinguish it from all siblings without opening a schema.

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?

Explicitly says when to use it: when you already hold a list of transaction ids, e.g. from a prior query, and want to inspect them together. It stops short of naming the alternatives or exclusions (e.g. use txn_get_transaction for a single id, txn_search_transactions to find ids), so a small inference remains.

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