Skip to main content
Glama

Match transfer

match_transfer

Pair two bank movements that are the same money seen twice, and book both to 1460 Geldtransit. Neither leg is an expense or a revenue — a Stripe payout is the same money leaving the Stripe balance and arriving at the bank, and booking both sides would double it. Three kinds, and they differ in ONE rule, the bank account: "transfer" and "currency_conversion" move money between the holder's OWN accounts and therefore need TWO DIFFERENT accounts; "reversal" is a charge taken and given back on ONE AND THE SAME account (a marketplace holds an amount, releases it, holds it again) and therefore needs the SAME account on both legs. Each kind refuses the other's shape instead of guessing, and the refusal names the kind that fits. The automatic pairing during an import only sees legs sevDesk itself paired, or ones whose purpose text says transfer or currency conversion; a payout from a payment provider that sevDesk does not know matches none of that, which is why three Stripe payouts sat unmatched. This is the explicit way to say what only a person can know. THE PAIR IS WRITTEN TO SEVDESK TOO, as sourceTransaction/targetTransaction on the two CheckAccountTransactions — that is sevDesk's own Umbuchung, the same field the import reads back as transit and the DATEV export turns into a 1460 posting. Without it the two movements stayed open in sevDesk while they looked settled here, which is the one difference nobody notices until the year is closed. A leg without a NUMERIC sevDesk id is reported, not skipped silently. REFUSED, not guessed: if the two amounts do not cancel out, if the accounts do not match the kind, or if either leg is already settled against a document (booking that to Geldtransit would silently unbook a real payment). A date difference is reported, not refused — a payout takes days to arrive. DRY RUN BY DEFAULT: reports both legs, the difference and what would be written here and in sevDesk.

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": {
      "from_transaction_id": "<from_transaction_id>",
      "to_transaction_id": "<to_transaction_id>"
    },
    "name": "match_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNotransfer (default, two different accounts) | currency_conversion (two different accounts) | reversal (one and the same account: a charge and its reversal cancelling out)
dry_runNoDefault TRUE. Set false to write the pair and book both legs to 1460.
tell_sevdeskNoDefault TRUE: also write the pair into sevDesk as sourceTransaction/targetTransaction. Set false only when the movements do not exist in sevDesk at all — the pair is then local and sevDesk keeps showing both legs as unassigned.
to_transaction_idYesThe leg the money ARRIVES on (positive amount), e.g. the credit on the bank account, or the amount given back.
from_transaction_idYesThe leg the money LEAVES (negative amount), e.g. the payout on the Stripe account, or the charge that was taken.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations mark this as a non-readonly, non-destructive, non-idempotent write. The description adds critical behavior: it writes sourceTransaction/targetTransaction into sevDesk, defaults to dry run, reports non-numeric IDs, reports date differences, and refuses amount, account, or settled-document mismatches. This is well beyond annotation coverage.

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?

Purpose is front-loaded and most sentences convey needed policy, but the description is long and includes rhetorical asides and anecdotal detail such as three Stripe payouts sitting unmatched and nobody noticing until the year is closed. It is informative but could be tightened.

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 complex write tool with no output schema, the description covers the dual local/sevDesk write, dry-run behavior, refusal rules, date-difference reporting, and ID handling. An agent has enough context to call it correctly.

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 coverage is 100%, so the schema already documents kind, dry_run, tell_sevdesk, and both leg IDs. The description restates the kind account rules and adds that a wrong kind is refused with the fitting kind named, but most parameter meaning is already in the schema.

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?

The first sentence names the verb (Pair) and resource (two bank movements) and states the accounting effect (book both to 1460 Geldtransit). It also says neither leg is expense or revenue, separating it from invoice/payment matching siblings even though no sibling tool is named.

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?

Explains when to use it: automatic import pairing only handles legs sevDesk already paired or purpose text containing transfer/currency conversion, so unknown provider payouts such as Stripe remain unmatched. It also states refusal conditions and the dry-run default, but does not explicitly contrast with named sibling tools.

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.

Resources