Skip to main content
Glama

Split a row

purch_split_transaction
Destructive

Say how one statement row breaks down: several categories that add up to it exactly. The row itself never changes. One line on a statement is often several things: a payroll run is wages, employer taxes and the processor's fee; a warehouse trip is supplies and groceries. The statement only knows the total, so the breakdown comes from the person or from a document they have — the payroll report, the receipt. Never invent the split; ask, or leave the row whole.

The legs must add to the row's amount exactly. They are refused otherwise, with the gap named, for the same reason a statement is: a breakdown that does not add up is a transcription error. The row keeps its amount, its date and the line it came from; only the ledger sees the legs, each posting to its own category against the account the money moved on. Pass remove to drop a split and put the row back to its single category. Effects: split legs recorded, replacing any earlier split.

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": {
      "transaction_id": "<transaction_id>"
    },
    "name": "purch_split_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsNoThe parts it breaks into. At least two, adding to the row exactly.
reasonNoWhere the breakdown came from — the payroll report, the receipt.
removeNoDrop the split and leave the row whole.
transaction_idYesThe row, e.g. T-0014.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the overwrite semantics ('replacing any earlier split'), the exact-sum validation and its failure mode ('refused otherwise, with the gap named'), and precisely what is preserved (amount, date, source line) versus what changes (ledger legs, each posting to its own category). That is substantive context for a tool annotated destructiveHint=true and idempotentHint=false.

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 the action, then constraint, then effects — the right order. The payroll/warehouse illustration buys clarity about why a split exists, but it and the 'same reason a statement is' aside add length that a caller already persuaded to split doesn't strictly need.

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?

Covers purpose, the required data provenance, validation failure, overwrite behavior, the revert path, and an explicit 'Effects:' line — with no output schema to explain, nothing an agent needs in order to call this destructive mutation correctly is missing.

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 adds the cross-parameter invariant (legs must total the row exactly, else rejected with the gap reported) and explains the remove flag's effect on the row's category rather than merely restating the field. Minor duplication with the schema's own 'adding to the row exactly' wording keeps it off a 5.

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 — 'Say how one statement row breaks down' — and immediately bounds the scope ('The row itself never changes'). The opening line plus the payroll/receipt example makes it unmistakably distinct from siblings like purch_review_transaction or purch_tag_category, which assign one category to a row.

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 explicit when-not guidance: the breakdown must come from a person or document, and 'Never invent the split; ask, or leave the row whole' tells the agent to abstain rather than guess. It also documents the remove path for reverting. It does not name a specific sibling to use instead for the 'leave it whole' case (e.g. purch_review_transaction), which is the only missing piece.

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.