Skip to main content
Glama

Switch a rule

set_automation_state

Switch a rule off, to rehearsing (judges live tickets and records what it would have done), or on (acts). Rehearsing and on need an active plan. When the new state is rehearsing or on, 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>",
      "state": "<state>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "set_automation_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe rule's id.
stateYes
confirmNo
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

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description's job is to add what those hints cannot. It does add substantive behavior: the confirmation_required preview contract and the active-plan precondition. However, it omits side effects an agent should know about—whether switching off cancels in-flight runs, and what the tool returns on success (no output schema exists to cover that). Useful but not fully transparent for a state-changing tool.

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?

Two sentences, front-loaded with the state enumeration before the operational caveats, and no filler. It is dense but slightly tangled where the parenthetical and the confirm clause interleave, which costs it the top mark.

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?

For a four-parameter mutating tool with no output schema, the description covers the state machine, the confirmation handshake, and one precondition. It leaves the return value on success unspecified and does not explain the interaction with sibling tools like get_automation_version, which matters given the version-conflict parameter. Adequate but with clear gaps.

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 description coverage is only 50%, with id and expectedVersion documented but state and confirm bare in the schema. The description compensates directly: it defines all three enum values of state behaviorally and explains the semantics of confirm (absent = preview, true = act). That is meaningful meaning added beyond the schema, though it never restates which fields are required.

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 states a specific verb-plus-resource ('Switch a rule') and enumerates the three target states, including a parenthetical defining what 'rehearsing' actually does ('judges live tickets and records what it would have done'). That is far more than a restatement of the name. It stops short of distinguishing this from sibling mutators like update_automation or rehearse_automation, so the boundary must be inferred.

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?

It gives real usage conditions: 'Rehearsing and on need an active plan' tells the agent a prerequisite that would otherwise cause a failure. It also prescribes the two-step call pattern for acting states—call without confirm to get a preview, call with confirm: true to act. No explicit exclusions or named alternatives are given, so it lands at 4 rather than 5.

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