Skip to main content
Glama

Check statement balance

check_statement_balance
Read-onlyIdempotent

Checks a list of bank statement transactions against the statement's opening, closing and running balances, to the cent. Use it after reading transactions from a statement, to find missing, duplicated or misread rows before the data is used. Returns passed, failed or unchecked, with the difference and the rows that do not match.

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": {
      "transactions": "<transactions>"
    },
    "name": "check_statement_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
transactionsYesAll transactions of the statement, in statement order.
closing_balanceNoClosing (end) balance printed on the statement, if any.
opening_balanceNoOpening (start) balance printed on the statement, if any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior; the description adds useful output semantics (passed/failed/unchecked, difference, non-matching rows) and precision ('to the cent'). It leaves some behavior, such as what triggers 'unchecked', unspecified.

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?

Three tight sentences: purpose first, then usage timing, then return values. No filler or repetition.

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?

The description covers purpose, timing, and high-level return values despite no output schema, while annotations cover the safety profile. Minor gap: 'unchecked' is not defined, and no explicit alternative tool is mentioned.

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 three parameters are already documented. The description adds context that opening, closing, and running balances are compared to the cent, but it does not add syntax or format details beyond the schema.

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 ('Checks') and resource ('list of bank statement transactions') and names the validation target (opening, closing, running balances). It does not explicitly differentiate from sibling tools, though its validation purpose is clear.

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 to use it after reading transactions and before the data is used, and names the defects it finds (missing, duplicated, misread rows). No when-not condition or named alternative is provided.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources