Skip to main content
Glama
MCP Actual

MCP Actual

by cubicecho

Apply rule actions to transactions

apply_rule_actions
Destructive

Apply rule actions to up to 500 transaction IDs and save the edits; use only IDs from preview or search to prevent unintended changes.

Instructions

Apply rule actions to specific transactions and SAVE the result. This is the write half of preview_rule_effects: preview first, then pass the transaction ids it returned. The actions are applied UNCONDITIONALLY to every id you pass — rule conditions are NOT evaluated here, so a wrong id is silently changed rather than skipped. Pass only ids you have actually seen, from preview_rule_effects or search_transactions; never ids you assembled yourself. Edits real transactions in bulk, at most 500 per call, and cannot be undone through this server. Actions use the same format as create_rule (see describe_rule_schema), and values are ids, not names — preview_rule_effects reports these as toId. Returns the ids actually updated, plus any that did not exist under missing.

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": {
      "transactionIds": "<transactionIds>",
      "actions": "<actions>"
    },
    "name": "apply_rule_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionsYesActions to apply. Same format as create_rule.
transactionIdsYesIds of the transactions to change. At most 500.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / actions / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / actions / items / properties / options / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / actions / items / required
      Previous value: -[
      -  "op"
      -]New value: +[
      +  "op",
      +  "value"
      +]
  2. First observedv1.0.1

TDQS

A4.9/5.0
Behavior5/5

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

Although annotations already mark the tool as destructive and non-idempotent, the description adds critical behavior the annotations do not convey: actions are applied unconditionally without evaluating rule conditions, wrong ids are silently changed, bulk edits are capped at 500 per call, and changes cannot be undone through this server. It also explains how missing ids are returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense and front-loaded: the write purpose and preview relationship appear first, followed by safety warnings, limits, format pointers, and return behavior. Every sentence contributes operational guidance without waste.

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 a destructive bulk-mutation tool, the description covers the necessary context: how to obtain valid ids, why conditions are not re-evaluated, the 500-item cap, irreversibility, action format references, and return values including missing ids. No significant gap remains for correct invocation.

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 schema already documents both parameters and the 500-id limit. The description still adds meaningful semantics by clarifying that values must be ids rather than names, that actions use the same format as `create_rule`, and that `preview_rule_effects` reports those ids as `toId`.

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 description states a specific verb and resource: apply rule actions to transactions and save the result. It explicitly distinguishes this write operation from the read-only `preview_rule_effects` sibling, so an agent can select it correctly without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides explicit sequencing guidance: preview first with `preview_rule_effects`, then pass the transaction ids it returned. It also warns against assembling ids manually and directs the agent to `preview_rule_effects` or `search_transactions` as the only valid id sources.

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