Skip to main content
Glama

Approve, pause, resume or remove an automation

set_automation_status
DestructiveIdempotent

AI Agents: Use when the customer asks to approve, pause, resume or remove one automation, after they confirmed. approve switches on a rule they said yes to in this conversation; a rule that sends something answers with its approval link. Needs the id from list_automations. Not for changing a rule (use propose_automation with replaces).

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": {
      "automation_id": "<automation_id>",
      "command": "<command>"
    },
    "name": "set_automation_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesapprove, pause, resume or remove.
automation_idYesThe automation's id, as list_automations or propose_automation returns it.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
ruleYes
typeYes
noticeNo
statusYes
examplesYes
sentenceYes
systemIdYes
warningsYes
lastRunAtYes
approveUrlYes
systemNameYes
pauseReasonYes
firings30DaysYes
matchedLast30DaysYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / rule / properties / actions / items / properties / type
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / rule / properties / trigger / properties / days
      Added value: +{
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / rule / properties / trigger / properties / yearly
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / command / description
      Previous value: -"pause, resume or remove."New value: +"approve, pause, resume or remove."
    • changedInput schema / properties / command / enum
      Previous value: -[
      -  "pause",
      -  "resume",
      -  "remove"
      -]New value: +[
      +  "approve",
      +  "pause",
      +  "resume",
      +  "remove"
      +]
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=true, so the safety profile is covered structurally. The description adds genuine context beyond that: the confirmation requirement, the fact that approve answers with an approval link for sending rules, and the dependency on list_automations for the id. It does not spell out what remove permanently destroys, which is the one gap against a fully transparent destructive 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?

Dense and front-loaded with the trigger condition, and every clause carries distinct information. The 'AI Agents:' prefix and the compact, run-on phrasing slightly reduce scanability, but there is no filler to cut.

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?

With an output schema present and strong annotations, the description needn't explain return values, and it covers trigger, prerequisite, exclusion and one stateful behavior. The only shortfall is the unstated consequence of 'remove' beyond the destructiveHint flag.

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 baseline is 3, but the description adds meaning the schema does not: it explains where automation_id originates (list_automations or propose_automation) and attaches special semantics to the 'approve' enum value, which the flat enum list cannot convey.

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 title and first sentence name a specific verb set (approve, pause, resume, remove) and a specific resource (one automation), and the closing sentence explicitly separates it from propose_automation. An agent can distinguish this from propose_automation and list_automations without opening either 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 states the trigger condition (customer asks, after they confirmed), the prerequisite data source (the id from list_automations), and an explicit when-not with the correct alternative (use propose_automation with replaces for changing a rule). This is the full when/when-not/alternative triad.

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