Skip to main content
Glama

bulk_edit_transactions

Destructive

Apply one bulk operation to multiple transactions. Select by EITHER explicit actionIds OR a filter (query_summ_transactions DSL), not both; capped at 100,000 actions. Visibility: a filter matches visible transactions only; explicit actionIds also reach hidden (ignored/spam/dust) ones — take them from a fresh query_summ_transactions includeHidden: true (edits replace action ids; older ids go stale). To un-ignore a transaction, recategorise it by id to its true category. Always confirm with the user before applying changes. delete is PERMANENT: it reports the deleted leg count, returns no undo handle, and undo_edit cannot reverse it — confirm the exact selection with the user first. To keep them on record but out of calculations, use ignore. Operation payloads (alongside type in operation; only these operations):

  • markAsSpam / ignore / delete: no payload

  • recategorise: { toActionType } — "Send" → 'withdrawal'; "Receive" → 'deposit'; own-wallet pair → group type 'transfer' (split into withdrawal + deposit). Avoid 'in'/'out' (raise warnings); 'fiatDeposit'/'fiatWithdrawal' = fiat in/out of an exchange.

  • changeCurrency / changeFeeCurrency: { fromCurrencyId, toCurrencyId } · changePrice: { currencyId, price } · changeValue: { currencyId, value, valueCurrency? } — search_currencies or search_filter_options (user's own) ids; never invented.

  • changeSourceAccount / changeDestinationAccount: { fromParty, toParty } — replaces the from / to account (A -> B becomes X -> B / A -> Y), never moves it to a different import; party = { exchangeId, blockchain? }

  • addComment: { comment } · updateTag: { tags: [tag id, max 1] } · txRewind: { timestamp } Warning suppression, price lookup and accounting-system (ERP) mapping are web-app only. Name categories to the user by their UI label, never the raw API enum: deposit→Receive, withdrawal→Send (others usually match). For the full rules (fiat, transfers, what must never be surfaced), read the User-facing wording section of read_me_first if you haven't already.

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": {
      "operation": "<operation>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "bulk_edit_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoFilter query (full NewFilters DSL — same shape as query_summ_transactions) selecting the transactions to edit server-side. Provide EITHER filter OR actionIds (not both). Use a filter for large filtered cleanups instead of paging Action IDs through actionIds. Selection is capped at 100,000 actions — narrow the filter if you exceed it. The same cap applies whether you select by actionIds or filter. Use get_filter_options first to discover valid filter values.
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
actionIdsNoAn Action `_id` (the "Action ID") — a `query_summ_transactions` result row's `_id`, labelled `Action ID` in its text output. Use one from this conversation's results. It changes after a report refresh (a sync, an edit, a merge or a tag change can trigger one), so if it is not found, query again; where a tool also takes a `transactionId`, prefer that, because Transaction IDs do not change. NOT the Transaction `_id` that `add_manual_transaction` returns, and NOT the tx hash (the `txId` filter); passing either matches nothing and silently does nothing. To turn a Transaction `_id` into its Action ID, query with the `id` filter (`{ type: "id", value: ["<id>"], showAssociated: 1 }`) and read the `Action ID` off the result. Provide EITHER actionIds OR filter (not both). Use actionIds for a known, explicit set of transactions.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
operationYes
expectedCountNoRequired for `delete` over MCP: the number of actions the selection matches. A delete without it (or with a different number) is refused and reports the count — confirm that count with the user, then re-run with it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description substantiates that with concrete consequences beyond the annotation: delete returns no undo handle, reports a deleted leg count, and cannot be reversed by undo_edit. It also discloses hidden-vs-visible selection asymmetry, action-id staleness across refreshes, and that warning suppression/price lookup/ERP mapping are web-app only. Slightly short of 5 because per-operation return shapes are not described.

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 selection rules and the destructive-delete warning before operation payloads, with bulleted payload specs that scan well. Some redundancy with the schema ('EITHER actionIds OR filter' restated, trailing wording-policy paragraph) adds length without new decision-relevant information.

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?

Given a 7-parameter nested-schema mutation tool with no output schema, the description covers selection, safety, id staleness, and payload contracts thoroughly. Only the result shape for non-delete operations is left unstated, which an agent may need to report outcomes accurately.

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 86%, so the baseline is 3, but the description adds real value by spelling out the per-operation payload contract (toActionType, from/to currency ids, changeValue fields, party shape) that the schema only points at with 'the payload contract is in the tool description.' It also clarifies that changeSourceAccount/changeDestinationAccount replaces, not moves, and recommends avoiding 'in'/'out'.

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?

Opens with a specific verb and resource ('Apply one bulk operation to multiple transactions') and enumerates the exact operation types, which cleanly separates it from single-transaction siblings like edit_transaction and from undo_edit.

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?

Explicitly states the selection fork (actionIds XOR filter), the 100,000-action cap, when to prefer a filter over paging ids, and the stated alternative to delete ('to keep them on record but out of calculations, use ignore'). It also names prerequisite discovery tools (get_filter_options, search_filter_options) and the read_me_first reference.

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