Skip to main content
Glama

Match Transfers

match_transfers
Read-onlyIdempotent

Pair withdrawals with the deposits that received them between your own accounts. FREE.

Typical input {"ledger": , "window_minutes": 1440} returns {"pairs": [{"out": "kr91", "in": "cb14", "asset": "BTC", "from": "kraken", "to": "coinbase", "network_fee": "0.0001", "minutes": 42.0}], "unmatched": {"transfer_out": [...], "transfer_in": [...]}}. A pair needs the same asset, a different account, the deposit inside the window after the withdrawal, and a quantity within tolerance_pct of the amount sent net of the fee. Use before build_lots so basis and holding period move with the coins instead of being treated as a sale. Not for transfers to third parties: those stay unmatched and should be typed gift_out or sell. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.

Input Schema

NameRequiredDescriptionDefault
ledgerYescanonical rows.
tolerance_pctNoallowed quantity difference in percent after the fee (default 1).
window_minutesNohow long after the withdrawal the deposit may land (default one day).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes further: it specifies the matching predicate (same asset, different account, deposit inside window, quantity within tolerance_pct of amount net of fee) and a full error contract — no protocol errors, an {"error": ...} object, and retry safety after correction. That is meaningful context an agent cannot get from structured fields.

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?

Front-loaded with purpose, then a worked example, matching criteria, intended ordering, exclusions, and error behavior — a sensible progression. It is dense and borderline long (the inline example is verbose), but no sentence is wasted and the 'FREE' note is the only soft addition.

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?

For a 3-parameter matching tool with an output schema, the description supplies everything else an agent needs: input shape, match semantics, sequencing relative to build_lots, out-of-scope cases, and error/retry behavior. Return-shape explanation is technically redundant with the output schema but harmless.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns extra credit by explaining what the parameters mean operationally: tolerance is compared against the amount sent net of fee, and the window is measured after the withdrawal. The example input concretizes ledger and window_minutes usage.

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 — 'Pair withdrawals with the deposits that received them between your own accounts' — and immediately bounds scope to transfers among the user's own accounts. Sibling differentiation is explicit via build_lots and the exclusion of third-party transfers.

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

Usage Guidelines5/5

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

Gives an explicit ordering instruction ('Use before build_lots so basis and holding period move with the coins instead of being treated as a sale') and an explicit exclusion ('Not for transfers to third parties: those stay unmatched and should be typed gift_out or sell'). There is nothing left to infer about when to reach for this tool.

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.