Skip to main content
Glama
LamPyrid
by RadCod3

update_rule

Modify an existing rule's settings, triggers, actions, or group to adjust how Firefly III transactions are processed.

Instructions

Update an existing rule's configuration.

You can update any combination of:

  • Basic settings (title, description, active status)

  • Logic control (strict mode, stop processing)

  • Triggers (conditions that must match)

  • Actions (changes to apply)

Note: The 'prohibited' field on triggers is read-only and cannot be modified.

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": {
      "req": "<req>"
    },
    "name": "update_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
reqYesRequest model for updating a rule.

Output Schema

NameRequiredDescriptionDefault
idYesUnique identifier for the rule
titleYesDisplay name of the rule
activeNoWhether the rule is active
strictNoIf True, ALL triggers must match (AND). If False, any trigger can match (OR).
actionsNoList of actions for this rule
triggerNoSingle trigger type
triggersNoList of triggers for this rule
descriptionNoOptional description of the rule
stop_processingNoWhether to stop processing other rules after this one

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important behavioral constraint: the 'prohibited' field on triggers is read-only. However, it never says whether supplied triggers/actions arrays replace existing ones wholesale or merge, nor whether omitted fields are untouched, nor what permissions are required for a mutation.

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?

The one-line purpose statement is front-loaded and the categorized bullet list is easy to scan. The read-only caveat is placed last where it belongs, though the grouping slightly duplicates field names already present in the schema.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and the nested request object is fully documented in the schema. The remaining gap is the semantics of the nested triggers/actions arrays (replace vs. merge) and the effect of null defaults, which matter for a mutation tool with no annotations to fall back on.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the per-field meanings are already documented in the schema; the description mainly restates them in grouped bullets. It adds a small amount of value by clustering fields into basic/logic/trigger/action categories and by flagging the read-only 'prohibited' field, which is the baseline expectation when the schema does the heavy lifting.

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 specific verb and resource ("Update an existing rule's configuration") and then enumerates the four categories of updatable fields, so an agent knows exactly what this mutates. It does not differentiate itself from siblings like execute_rule, test_rule, or get_rule by name, so it falls 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 Guidelines3/5

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

"Update any combination of" implies this is a partial-update tool and therefore the right choice when changing an existing rule, but there is no explicit guidance on when to use this versus execute_rule, test_rule, or search_rules. The usage context is implied rather than stated, which fits a 3.

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