Skip to main content
Glama
e-arveldaja MCP Server

e-arveldaja MCP Server

by iseppo

Reconcile Bank Transactions

reconcile_bank_transactions
Destructive

Suggest and confirm invoice matches for bank transactions, and reconcile reviewed inter-account transfers using dry-run plans.

Instructions

Merged bank reconciliation entry point. Use mode='suggest' for invoice-match suggestions, mode='dry_run_auto_confirm' or mode='execute_auto_confirm' for exact invoice matches (confidence >= 90, or the ref_number_exact rule: the reference of exactly one open unpaid EUR invoice + the exact EUR amount + a proven direction matching the invoice kind, or the document_reference_exact rule: payment text naming exactly one open unpaid EUR purchase invoice by its number or order number + the exact amount + a verified outgoing CAMT direction; such rows keep their lower confidence and carry auto_confirm_rule), mode='inter_account_dry_run' for own-account transfer detection, and mode='execute_inter_account' (REQUIRES the plan_handle from the dry run) to reconcile the reviewed inter-account transfers.

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

Input Schema

NameRequiredDescriptionDefault
modeNoWorkflow phase to run. Defaults to suggest.
keep_sideNoInter-account only: which leg of a matched transfer pair is confirmed (the other is deleted). Default outgoing. incoming requires a checksum-verified incoming CAMT marker on that leg, else the pair goes to ambiguous_pairs (direction_unresolved). Resend the same value at execute.
plan_handleNoExecution-plan handle from the reviewed dry run. Required for mode='execute_auto_confirm' and mode='execute_inter_account', and forwarded to the executor.
max_date_gapNoMaximum days between inter-account transfer legs (default 1, max 31).
min_confidenceNoMinimum confidence threshold for invoice matching modes (auto-confirm default 90). Above 90 also disables ref_number_exact and document_reference_exact.
block_on_duplicateNoFor the invoice-matching modes (suggest / dry_run_auto_confirm / execute_auto_confirm): refuse (or, in suggest, flag) an exact match whose cash movement appears already booked by another journal. Default false = advisory only.
delete_proposed_mirrorsNoInter-account only, opt-in: bind each proposed mirror deletion (a PROJECT row already journalized from the other account side) into the dry-run plan; execute deletes only rows still matching the reviewed identity. Resend the same value at execute.
target_accounts_dimensions_idNoFor inter_account_dry_run one-sided transfers, specify the target bank account dimension ID when it cannot be inferred.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.39.0
    • addedInput schema / properties / keep_side
      Added value: +{
      +  "description": "Inter-account only: which leg of a matched transfer pair is confirmed (the other is deleted). Default outgoing. incoming requires a checksum-verified incoming CAMT marker on that leg, else the pair goes to ambiguous_pairs (direction_unresolved). Resend the same value at execute.",
      +  "enum": [
      +    "outgoing",
      +    "incoming"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.38.0
    • changedInput schema / properties / min_confidence / description
      Previous value: -"Minimum confidence threshold for invoice matching modes (auto-confirm default 90). Above 90 also disables the ref_number_exact rule."New value: +"Minimum confidence threshold for invoice matching modes (auto-confirm default 90). Above 90 also disables ref_number_exact and document_reference_exact."
  3. Changed1 schema field changedv0.37.0
    • addedInput schema / properties / delete_proposed_mirrors
      Added value: +{
      +  "description": "Inter-account only, opt-in: bind each proposed mirror deletion (a PROJECT row already journalized from the other account side) into the dry-run plan; execute deletes only rows still matching the reviewed identity. Resend the same value at execute.",
      +  "type": "boolean"
      +}
  4. Changed2 schema fields changedv0.29.2
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / min_confidence / description
      Previous value: -"Minimum confidence threshold for invoice matching modes."New value: +"Minimum confidence threshold for invoice matching modes (auto-confirm default 90). Above 90 also disables the ref_number_exact rule."
  5. Addedv0.25.3
  6. Removedv0.25.2
  7. Changed2 schema fields changedv0.21.0
    • addedInput schema / properties / min_confidence / maximum
      Added value: +100
    • addedInput schema / properties / min_confidence / minimum
      Added value: +0
  8. First observedv0.18.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, non-idempotent, non-read-only; the description adds real behavior beyond that: the confidence>=90 gate, the exception rules (ref_number_exact, document_reference_exact) that keep lower confidence and carry auto_confirm_rule, and the dry-run-before-execute sequencing. It never states what is actually destroyed on execute (journals? transactions?) or what suggest returns, which keeps it short of a 5.

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

Conciseness3/5

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

Appropriately front-loaded with the purpose, but the rest is a single run-on sentence that chains five modes, two named rules, and a nested prerequisite, making it hard to scan. Splitting modes into a short list would have preserved the same information with far better structure.

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

Completeness3/5

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

There is no output schema, yet the description never says what suggest or the dry-run modes return (candidate lists, plan handles, ambiguous_pairs, etc.), even though plan_handle is the handoff between phases. For a destructive, 8-parameter, multi-phase tool, the omission of result/error semantics leaves a meaningful gap.

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%, so the schema already carries parameter meaning. The description contributes the semantics of the two 'exact rule' match categories used with min_confidence, but mostly restates the mode/plan_handle relationships already present in the schema — net value above the schema is modest.

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+resource ('Merged bank reconciliation entry point') and enumerates five concrete workflow phases, so the agent knows exactly what family of operations this covers. It does not, however, distinguish this tool from the closely overlapping sibling reconcile_inter_account_transfers, which handles at least part of the same inter-account work — that ambiguity prevents a 5.

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 maps each mode to an intent ('Use mode=suggest for invoice-match suggestions... mode=execute_inter_account... to reconcile the reviewed inter-account transfers'), and states the gating prerequisite that execute_inter_account REQUIRES a plan_handle from the dry run. Missing any when-NOT-to-use guidance or a pointer to reconcile_inter_account_transfers / classify_bank_transactions as alternatives for overlapping cases.

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

Deploy Server

Other Tools