Skip to main content
Glama
Beankeeper

Beankeeper

Official

txn_bulk_associate

Links every transaction matching your filters to one customer or vendor in a single atomic batch. Run a dry run first to preview the selection, then apply it with the returned token.

Instructions

Link every transaction matching the txn_list filters to one active customer or vendor, atomically and up to 500 transactions. Call with dry_run first and pass its selection_token to apply exactly those transactions. Transactions already linked to this counterparty are unchanged, and transactions linked to another are skipped unless replace_existing is true; association reports newly_linked, already_linked, replaced and skipped_linked_elsewhere. Needs a narrowing filter. The selection_token covers each transaction's current link. If single-line guards refuse transactions, nothing is written and details.blocked_lines names each one. Proposal-only access queues one change for the frozen transactions.

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>",
      "counterparty": "<counterparty>"
    },
    "name": "txn_bulk_associate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast transaction date to match (inclusive).
fromNoFirst transaction date to match (inclusive).
metaNoExact `KEY=VALUE` matches on top-level metadata keys, combined with AND.
accountNoOptional entry account that matched transactions must use.
companyYes
dry_runNoValidate the batch and return the matched count, totals, a sample and a `selection_token` without writing.
currencyNoCurrency code. Required with an amount filter if the company uses multiple currencies.
metadataNoCase-insensitive substring of the transaction metadata.
amount_eqNoExact entry amount in major units.
amount_gtNoExclusive minimum entry amount in major units.
amount_ltNoExclusive maximum entry amount in major units.
directionNo
referenceNoExact reference of the original transactions to match.
descriptionNoCase-insensitive substring of the transaction description.
counterpartyYesActive customer or vendor to link to each matched transaction.
tax_categoryNoExact entry tax category to match.
selection_tokenNoThe `selection_token` from a dry run. If the filters now match other lines, nothing is written and `SELECTION_CHANGED` is returned.
replace_existingNoReplace links to other customers or vendors. By default those transactions are skipped and counted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false. The description adds substantial context: atomic 500-cap batching, dry-run/selection-token workflow, per-transaction skip/unchanged/replace semantics, SELECTION_CHANGED and blocked_lines failure modes, and proposal-only access behavior. This is well beyond what annotations provide.

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-loads the core action and the dry-run requirement, then layers in skip semantics and failure modes. Dense but nearly every sentence carries actionable information. Slightly long to read in one pass, but not padded.

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 an 18-parameter, no-output-schema mutation tool, the description explains the return counts (newly_linked, already_linked, replaced, skipped_linked_elsewhere), dry-run token behavior, and blocked_lines failure details. An agent has enough to call it correctly and interpret results.

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 high (89%), so the schema carries most parameter documentation. The description still adds meaning beyond it: the dry_run/selection_token coupling, replace_existing semantics, and the requirement that filters be narrowing. Other match params (direction, tax_category, amounts) are left to 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?

States a specific verb (link), resource (every transaction matching txn_list filters) and target (one active customer or vendor), with scope limits (atomic, up to 500). This distinguishes it from a single-transaction link or a broader associate tool without needing the schema.

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 clear operational guidance: dry_run first, then pass selection_token, and a narrowing filter is required. It explains skip-vs-replace behavior via replace_existing. It stops short of explicitly naming sibling alternatives (e.g. single-transaction linking), so a 4 rather than 5.

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