Skip to main content
Glama

manage_transaction_grouping

Destructive

Merge transactions the matcher missed into one transfer or trade, or split a merged or wrongly matched group back into separate transactions. Use it, not edit_transaction, when transactions belong together or apart: grouping is not editing. 'merge': call get_transaction_merge_plan first and show the user the plan and its warnings, then send its transactionIds, proposalVersion, requestId and acceptedWarnings unchanged; when the plan says needsValueConfirmation, also send the value the user confirmed and its side. A merge refused as stale means the transactions changed: plan and confirm again. If a merge fails, retry the same call with the same requestId; a new plan gives a new requestId. 'split': send any transaction of the group (or its mergeId); the whole group is taken apart. A merge can write several groups: undo it with one split per group. Merging and splitting are in beta: if a plan, merge or split is refused as unavailable, tell the user it isn't available on their account yet and don't retry. Each change recalculates the report. Confirm with the user before calling. New to this session? Call the read_me_first tool for wider context on terminology and tool-usage patterns.

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

Input Schema

NameRequiredDescriptionDefault
sideNoThe side the confirmed value is anchored on: the plan's defaultSide unless the user chose the other (merge only)
valueNoThe group's value the user confirmed, greater than 0. Send with side, only when the plan says needsValueConfirmation (merge only)
actionYesGrouping change
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".
mergeIdNoThe merge group id, when known (split only; transactionIds alone is enough). Sent with transactionIds, every transaction must be in this group, or the split is refused
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.
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.
requestIdNoThe plan's requestId from get_transaction_merge_plan (required for merge). Resend the same id to retry a merge that failed
transactionIdsNomerge: the plan's transactionIds from get_transaction_merge_plan, unchanged. split: any transaction of the group; the whole group is split
proposalVersionNoThe plan's proposalVersion from get_transaction_merge_plan (required for merge)
acceptedWarningsNoEvery warning the plan raised, after the user accepted them (merge only; omit when the plan raised none)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only give the safety profile (not read-only, destructive, not open-world); the description adds real behavioral detail on top: a merge can write several groups, undo requires one split per group, a stale-merge refusal means the data changed and must be re-planned, the same requestId should be reused on retry, availability may be gated by beta, and each change recalculates the report.

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 purpose and the sibling distinction, then organized by 'merge' and 'split' labels with retry and beta caveats. Very dense and somewhat long, but nearly every sentence carries operational information rather than filler.

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 an 11-parameter, destructive, two-mode tool with no output schema, the description covers the full workflow: plan first, confirm with the user, resend plan artifacts, handle stale refusals and retries. It stops short of describing the shape of the result or what 'recalculates the report' means for downstream state.

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 goes beyond it by explaining the conditional coupling of parameters: proposalVersion, requestId and acceptedWarnings must be resent unchanged from the plan, and value/side are only sent when the plan reports needsValueConfirmation. The conditional split of transactionIds vs mergeId semantics is also described.

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 both specific verbs and resources — merging missed transactions into one transfer/trade and splitting a merged or wrongly matched group apart — so the scope is unambiguous. It then explicitly states 'Use it, not edit_transaction', which separates it from the nearest sibling without requiring schema inspection.

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 routes the agent: use this rather than edit_transaction when transactions belong together or apart, and it names get_transaction_merge_plan as a mandatory prerequisite for merge. It also specifies split usage ('send any transaction of the group'), retry behavior on failure, and a when-not case (beta unavailability → don't retry).

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