Skip to main content
Glama
ledgerbridge-mcp

ledgerbridge-mcp

generate_deterministic_ofx_fitids

Read-onlyIdempotent

Generates deterministic SHA-256 OFX 2.2 FITIDs for statement rows, keeping imports duplicate-safe across QuickBooks, Xero, Wave, and GnuCash while preserving distinct IDs for identical same-day purchases.

Instructions

Generates deterministic SHA-256 OFX 2.2 FITID keys (LB<22HEX>) for statement rows so QuickBooks, Xero, Wave, and GnuCash remain duplicate-safe across re-imports while preserving distinct IDs for identical same-day purchases.

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": {
      "items": "<items>"
    },
    "name": "generate_deterministic_ofx_fitids"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesTransactions to compute deterministic OFX FITIDs and exact minor-unit amounts for.
accountNoLogical account identifier (defaults to "Assets:Bank:Primary").
currencyNoISO currency code (defaults to "USD").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 behavior, so the description's job is to add context. It does: it discloses the hashing algorithm, the exact key format, re-import duplicate safety, and the collision-avoidance rule for identical same-day purchases. It omits error behavior and the shape of the returned data.

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?

A single front-loaded sentence with the verb and output format first, followed by the business rationale. The list of four accounting systems is compact and earns its place by specifying the import targets.

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?

With no output schema, the description should clarify what the call returns, yet it never states that FITIDs (and, per the schema, minor-unit amounts) come back per row or how they are ordered. Purpose and behavior are otherwise well covered for a moderate-complexity generation tool with fully documented inputs.

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 documents items, date, payee, amount, orderRef, account, and currency. The description adds only indirect meaning, implying that date, amount, and payee participate in the hash via the same-day-purchase clause, but it does not explain how each parameter affects the generated key.

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?

The description states a specific verb and resource: generates deterministic SHA-256 OFX 2.2 FITID keys in the LB<22HEX> format for statement rows. It is unambiguous about what the tool produces, though it never references the sibling tools (ledger audit, transfer detection, reconciliation) to sharpen the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The intended context is implied by the clause about keeping QuickBooks, Xero, Wave, and GnuCash duplicate-safe across re-imports, which tells an agent roughly when this tool applies. There is no explicit when-not-to-use guidance and no named alternative for cases where deterministic FITIDs are not wanted.

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