Skip to main content
Glama
ledgerbridge-mcp

ledgerbridge-mcp

detect_cross_account_transfers_and_refunds

Read-onlyIdempotent

Identifies matched cross-account transfers and linked partial or full refunds across offline bank, Alipay, and WeChat Pay statements to reconcile internal money movement and true net spend.

Instructions

Analyzes multi-account bank, Alipay, and WeChat Pay statements offline to identify matched cross-account internal transfers, linked partial/full refunds, and exact BigInt Naive Outflow vs Gross Spend vs True Net Spend.

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

Input Schema

NameRequiredDescriptionDefault
contentNoCombined multi-statement text (using === FILE: ... === markers) or single statement.
statementsNoOptional array of { filename, content } statement objects.
refundWindowDaysNoMaximum day gap between purchase and refund reversal (defaults to 30).
transferWindowHoursNoMaximum hour gap between outflow in Account A and inflow in Account B (defaults to 48).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that by disclosing that matching is heuristic/window-based ('matched', 'linked partial/full refunds') and that arithmetic is exact via BigInt, but it does not say what happens with unmatched records, how ambiguity is resolved, or what the response shape looks like.

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

Conciseness4/5

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

A single front-loaded sentence with no filler, and the key scope qualifier ('multi-account', 'offline') appears early. The trailing metric list ('BigInt Naive Outflow vs Gross Spend vs True Net Spend') is dense jargon used without definition, which slightly hurts readability but is not wasted space.

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 must carry the return-value burden and it only names three spend metrics without describing structure or how matches/refunds are reported. Zero required parameters also means the tool has a meaningful no-argument or content-only invocation path that the description never addresses, so it is adequate but leaves real gaps for a fairly complex analysis tool.

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% and all four parameters carry their own descriptions including defaults, so the description need not explain them. It adds only the implicit notion of cross-account matching windows, which the schema already documents for refundWindowDays and transferWindowHours; baseline 3 applies.

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?

Uses a specific verb ('Analyzes') plus a precise resource domain (multi-account bank, Alipay, WeChat Pay statements) and enumerates the findings it produces: matched internal transfers, linked partial/full refunds, and three named spend metrics. This is far more specific than a name restatement, though it never names or distinguishes itself from the sibling tools such as reconcile_and_convert_statements.

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

Usage Guidelines2/5

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

The word 'offline' hints at a local, network-free context, and 'multi-account' implies you need statements from more than one account. But there is no explicit when-to-use, when-not-to-use, or routing guidance versus the reconciliation and ledger-audit siblings, leaving the agent to infer selection from the name and purpose sentence alone.

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