Skip to main content
Glama
norma43-mcp

norma43-mcp

Reconcile bank movements with invoices

reconcile_movements
Read-onlyIdempotent

Matches bank movements from Norma 43 files or lists to expected invoices/payments, returning scored 1:1, 1:N and N:1 matches with confidence, evidence, ambiguities and suggestions.

Instructions

Bank reconciliation (conciliación bancaria): match bank movements to expected items, deterministically.

Bank side: a Norma 43 file (content / content_base64) or a movements list of {id, date, amount, text}. Expected side: expected list of {id, date, amount, reference?, counterparty?} such as issued invoices (+, cobros), supplier invoices or payroll (-, pagos), or ledger entries. Signs: + is money in, - is money out, as on the statement.

Finds 1:1 matches, one transfer paying several invoices (1:N) and partial payments (N:1). Each match has a 0-100 score, a confidence (alta/media/baja) and the evidence used (amount, invoice reference found in the bank concept, counterparty name, date distance, uniqueness). Ties are never guessed: they are returned under ambiguous. Weak candidates go to suggestions. Group matches require a unique exact sum plus reference or name evidence.

Args: expected: Items to find in the bank (max 5000). content: Norma 43 file as text (alternative to movements). content_base64: Norma 43 raw bytes as base64. movements: Bank movements if you do not have a Norma 43 file (max 5000). date_window_days: Max days between bank date and item date (default 10, max 180). amount_tolerance: Max amount difference accepted, e.g. "0.50" for bank fees (default "0", max "10"). max_group_size: Max items combined in 1:N / N:1 matches (1 disables grouping, max 5). min_score: Minimum score to confirm a match (default 50).

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": {
      "expected": "<expected>"
    },
    "name": "reconcile_movements"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNo
expectedYes
min_scoreNo
movementsNo
content_base64No
max_group_sizeNo
amount_toleranceNo0
date_window_daysNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent/no-open-world, and the description adds substantial behavior beyond them: matching modes (1:1, 1:N, N:1), 0-100 scoring with alta/media/baja confidence, the evidence types used, the rule that ties are never guessed, and the constraint that group matches need a unique exact sum plus reference or name evidence.

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?

Purpose and the two input sides are front-loaded, followed by matching semantics, then a compact Args block. Given 0% schema coverage, the per-parameter lines are necessary rather than redundant, and the sign convention (+ in, - out) removes a costly ambiguity in one sentence.

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?

An output schema exists, yet the description still explains the meaningful result buckets (`ambiguous`, `suggestions`, scored matches with evidence) so the agent can interpret them. With annotations, all 8 params and the matching rules covered, nothing needed to call it correctly is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden and does so: each of the 8 params is explained with meaning, defaults, and bounds (max 5000 items, date window default 10/max 180, tolerance '0'-'10' for bank fees, max_group_size 1 disables grouping). Even non-obvious semantics like '1 disables grouping' are stated.

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 — 'match bank movements to expected items, deterministically' — plus the two data sides it consumes. It is clearly distinguishable from siblings like parse_norma43 or norma43_to_csv, which only parse/convert rather than reconcile.

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?

Gives clear input-path guidance: use `content`/`content_base64` when you have a Norma 43 file, otherwise supply a `movements` list. It also sets expectations for edge outcomes (ties go to `ambiguous`, weak candidates to `suggestions`). It does not explicitly state when to prefer this over a sibling parser in a pipeline, so not a 5.

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