Skip to main content
Glama
MCP Actual

MCP Actual

by cubicecho

Update a rule

update_rule
DestructiveIdempotent

Replace an entire rule by sending its full conditions and actions, since omitted fields are dropped. Read the existing rule first to preserve current settings.

Instructions

Replace a rule’s conditions and actions. This overwrites the whole rule, so send the complete set — anything omitted is dropped, not preserved. Read the current rule with list_rules first.

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": {
      "id": "<id>",
      "conditions": "<conditions>",
      "actions": "<actions>"
    },
    "name": "update_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the rule to replace.
stageNoDefaults to null, the normal stage.
actionsYesThe complete action set, not a partial update.
conditionsYesThe complete condition set, not a partial update.
conditionsOpNoDefaults to "and".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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"
      +]
    • removedInput schema / properties / conditions / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / conditions / items / properties / options / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • changedInput schema / properties / conditions / items / required
      Previous value: -[
      -  "field",
      -  "op"
      -]New value: +[
      +  "field",
      +  "op",
      +  "value"
      +]
  2. First observedv1.0.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but they cannot express that this is a full replacement rather than a patch. The description supplies precisely that ('anything omitted is dropped, not preserved'), which is the single most consequential fact for avoiding data loss.

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?

Three short sentences, front-loaded with the destructive-overwrite warning, and every clause carries actionable information. No filler or restatement of the tool name.

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 a destructive full-replacement mutation with no output schema, the description covers the critical semantic (omissions are dropped) and the preparatory read step. Minor gaps remain, such as behavior on an invalid or unknown id, but annotations and the fully documented schema cover the rest.

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 id, conditions, actions, stage, and conditionsOp are all documented in the schema itself. The description reinforces that conditions and actions must be complete sets, but adds no detail about stage or conditionsOp defaults beyond the schema. Baseline 3 is appropriate.

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 and resource ('Replace a rule's conditions and actions') and immediately clarifies the semantics of 'replace' as whole-object overwrite. An agent can distinguish this from create_rule or apply_rule_actions 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 Guidelines4/5

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

Gives an explicit prerequisite workflow: read the current rule with `list_rules` first, which is exactly the right guidance for a full-replacement tool. It stops short of naming when to choose create_rule vs update_rule, so it is clear context without explicit exclusions.

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