Skip to main content
Glama
nz-openbank-mcp

nz-openbank-mcp

Search Transactions

txn_search_transactions
Read-onlyIdempotent

Search settled New Zealand bank transactions by case-insensitive text in descriptions or merchant names within a date window, returning matches for free-text lookups.

Instructions

Case-insensitive substring search across description and merchant name.

Searches settled transactions in a date window until limit matches are found. Without start_date the window is the 90 NZ days ending on end_date, or ending today. Use for free-text lookups; prefer get_transactions when filtering by account or amount. Returns {"transactions": [...], "truncated": bool, "limit_reached": bool} with the same shape and meaning as get_transactions: if limit_reached, more matches may exist, so raise limit (up to 500) or narrow the dates.

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": {
      "query": "<query>"
    },
    "name": "txn_search_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax matches returned, 1 to 500 (default 50).
queryYesSubstring to match (case-insensitive).
end_dateNoLatest NZ day as YYYY-MM-DD (inclusive) or an ISO 8601 timestamp (UTC if it has no offset); defaults to no upper bound.
start_dateNoEarliest NZ day as YYYY-MM-DD (inclusive) or an ISO 8601 timestamp (UTC if it has no offset); defaults to 90 days back.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.6
    • addedInput schema / properties / end_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Latest NZ day as YYYY-MM-DD (inclusive) or an ISO 8601\ntimestamp (UTC if it has no offset); defaults to no upper bound."
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Max matches returned (default 50)."New value: +"Max matches returned, 1 to 500 (default 50)."
    • addedInput schema / properties / limit / maximum
      Added value: +500
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / start_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Earliest NZ day as YYYY-MM-DD (inclusive) or an ISO 8601\ntimestamp (UTC if it has no offset); defaults to 90 days back."
      +}
  2. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantive behavior beyond them: only settled transactions are searched, the default window is 90 NZ days ending on end_date or today, and the result flags truncated/limit_reached carry meaning. That is exactly the kind of context annotations cannot express.

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?

Four tight sentences, front-loaded with the matching rule, then scoping, then routing, then return semantics. Nothing is padding, and the sibling pointer is placed before the return-shape details.

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?

Even though an output schema exists, the description still explains the flags and the correct recovery action when limit_reached is true, which is the main failure mode for this tool. Combined with the default date-window rule, an agent has everything needed to call it correctly on the first attempt.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the default window is computed relative to end_date (or today), not merely '90 days back'. The limit ceiling of 500 and its role in the limit_reached loop are reinforced in context rather than just declared.

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?

The opening sentence gives a specific verb and resource plus the exact matching semantics: case-insensitive substring over description and merchant name. It also implicitly scopes to settled transactions and names the sibling it is not (get_transactions), so an agent can distinguish it 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 Guidelines5/5

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

Explicitly states when to use it (free-text lookups) and when to prefer the alternative (filtering by account or amount → get_transactions). It also tells the agent what to do when results are truncated: raise limit up to 500 or narrow the dates.

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