Skip to main content
Glama
Beankeeper

Beankeeper

Official

txn_recategorize

Correct a posted transaction line by moving it to another account or splitting it across accounts; changes return an audit receipt for undo.

Instructions

Move one posted line to another account, or pass split lines instead of to_account to divide it across accounts in one correction. Split amounts are on the source line's side, negative for the opposite side, and must total the source line. With no source selector, infer only a single non-asset, non-liability line outside the destination. Direct credentials post immediately and return an audit receipt for audit_undo. Propose-only credentials use their existing proposal flow.

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": {
      "company": "<company>"
    },
    "name": "txn_recategorize"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoSource transaction ID. Supply exactly one of id or reference.
dateNoYYYY-MM-DD, on or after the original date, which is the default.
splitNoDestination lines that replace the selected line, as an alternative to `to_account`. Amounts are on the source line's side; a negative amount posts on the opposite side. The amounts must total the source line.
companyYes
entry_idNoID of the original entry to move.
referenceNoReference of the original transaction.
to_accountNoActive account to receive the selected line. Supply exactly one of `to_account` or `split`.
descriptionNo
on_conflictNo
from_accountNoSource account. If it occurs more than once, provide `entry_id` as well.
tax_categoryNoTax category for the `to_account` line. Defaults to the source line's category.
posting_referenceNoIdempotency reference for the new posting. Use `on_conflict` "skip" for an exact retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.2.0
    • addedInput schema / properties / split
      Added value: +{
      +  "default": [],
      +  "description": "Destination lines that replace the selected line, as an alternative to `to_account`.\nAmounts are on the source line's side; a negative amount posts on the opposite side.\nThe amounts must total the source line.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One destination line of a split recategorization.",
      +    "properties": {
      +      "account": {
      +        "pattern": "^[0-9.-]+$",
      +        "type": "string"
      +      },
      +      "amount": {
      +        "description": "Nonzero decimal in major units on the source line's side, for example \"100.00\".\nA negative amount such as \"-2.90\" posts on the opposite side.",
      +        "pattern": "^[+-]?[0-9]+(\\.[0-9]*)?$",
      +        "type": "string"
      +      },
      +      "memo": {
      +        "description": "Line memo. Defaults to the source line's memo.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "tax_category": {
      +        "description": "Tax category for this line. Defaults to the account's default category.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "account",
      +      "amount"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 100,
      +  "minItems": 2,
      +  "type": "array"
      +}
    • changedInput schema / properties / tax_category / description
      Previous value: -"Tax category for the destination line. Defaults to the source line's category."New value: +"Tax category for the `to_account` line. Defaults to the source line's category."
    • changedInput schema / properties / to_account / description
      Previous value: -"Active account to receive the selected line."New value: +"Active account to receive the selected line. Supply exactly one of `to_account` or `split`."
    • changedInput schema / properties / to_account / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "company",
      -  "to_account"
      -]New value: +[
      +  "company"
      +]
  2. First observedv1.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the single readOnlyHint=false annotation, it discloses the side effects that matter for a mutation: direct credentials post immediately, an audit receipt is returned for audit_undo (reversibility path), and propose-only credentials do not post but go through the proposal flow. That is substantive disclosure about what happens on invocation and how to undo it.

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 primary action, then variants and behavioral consequences in order. Sentences are dense and jargon-heavy but each carries information; only the split-sign/total restatement mildly duplicates the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter mutation with no output schema, the description covers the non-obvious parts: source inference, split-vs-single mode, credential-dependent immediate posting, and the audit receipt return. Idempotency and on_conflict are left to the schema, which documents them, so nothing critical 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?

With 75% schema coverage the schema carries much of the load, but the description adds real meaning not in structured fields: the `to_account` vs `split` mutual exclusion, the source-inference behavior when no selector is present, and the requirement that split amounts total the source line. Some of this (sign convention, totaling) is repeated from the schema, capping it below 5.

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 opens with a concrete verb and resource: "Move one posted line to another account," which tells an agent exactly what mutation occurs and that it operates on a single line. The singular scope implicitly contrasts with the bulk sibling (txn_bulk_recategorize), though no sibling is named explicitly, so it stops short of a 5.

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?

It gives clear conditional guidance: use `split` instead of `to_account` to divide one correction across accounts, and the source-inference rule when no source selector is supplied ("infer only a single non-asset, non-liability line outside the destination"). It also branches by credential type (direct posts immediately vs propose-only routes to the existing proposal flow). No explicit alternative tool is named, so no exclusion/routing statement against siblings.

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

Deploy Server

Other Tools