Skip to main content
Glama

Change a rule

update_automation

Change a rule from the version you read: a new name, a whole definition, or edit operations addressed by card id. An edit the catalog refuses comes back with its reason. Changing the wording of an On rule moves it back to rehearsing. note is your one-line summary for the rule's history. When the rule is on and its conditions or steps change, it acts only with the human's agreement: called without confirm it returns confirmation_required and a summary of what it would do, and called with confirm: true it acts.

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>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "update_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe rule's id.
nameNo
noteNo
editsNo
confirmNo
definitionNo
expectedVersionYesThe rule version your change starts from (get_automation's version). A stale one is refused with version_conflict and the current version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) by disclosing that catalog-refused edits return a reason, that On-rule wording changes demote the rule to rehearsing, that note is written into rule history, and that live rules require a two-step confirm handshake with confirmation_required. These are non-obvious side effects and gating behaviors an agent could not infer from structured fields.

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?

Five sentences, front-loaded with the three update modes, then the consequential behaviors (refusal reasons, demotion, confirm gating). Dense but every sentence adds an operational fact; the 'note is your one-line summary' line is the only one that could be trimmed as it mainly mirrors the schema field.

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 7-parameter mutation with deeply nested edits and no output schema, the description covers the risky parts an agent must know: confirmation gating, catalog refusal, state demotion, and semantic tagging. The edits grammar itself is left entirely to the schema, which is reasonable, but the return shape on the confirm-required path is described only in prose.

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?

With only 29% schema description coverage, the description carries real weight: it maps name, definition, edits, note, and confirm to their meaning and explains the confirm handshake and its return value. expectedVersion and id are left to the schema (which does describe expectedVersion and its version_conflict behavior), so coverage is good but not complete.

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?

States a specific verb and resource ('Change a rule') and enumerates the three update modes: new name, whole definition, or edit operations by card id. It implicitly anchors to get_automation ('from the version you read') but never names a sibling it could be confused with, so differentiation is inferred rather than declared.

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 concrete when-to guidance: use edits for addressed changes, use confirm to actually act, expect confirmation_required without it, and expect a rule to fall back to rehearsing when an On rule's wording changes. It lacks explicit exclusions (e.g., when to use propose_automation, restore_automation_version, or set_automation_state instead), so alternatives are left implicit.

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