Skip to main content
Glama

Adbloop Meta Ads

set_automation_rule_active

Destructive

Turn an automation rule on or off. Off rules stay saved but never run.

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": {
      "rule_id": "<rule_id>",
      "is_active": "<is_active>"
    },
    "name": "set_automation_rule_active"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idYesThe rule's id.
is_activeYestrue = on, false = off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations mark this destructiveHint=true, and the description usefully counters that impression by explaining that disabling preserves the rule rather than removing it. It stops short of saying whether re-enabling resumes prior behavior or how in-flight runs are affected.

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?

Two short sentences with no filler; the core action is front-loaded and the clarifying caveat follows immediately.

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 two-parameter toggle with full schema coverage and annotations present, this covers what an agent needs to call it. Only the reversibility/resumption behavior after turning a rule back on is left unstated.

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 coverage is 100% and both parameters already document themselves ('The rule's id.', 'true = on, false = off.'), so the description adds no parameter-level meaning. Baseline 3 applies.

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 plus resource ('Turn an automation rule on or off') and the second sentence clarifies the state semantics, distinguishing it from delete_automation_rule by noting the rule 'stays saved'.

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?

Usage is only implied: the 'stays saved but never run' clause hints that this is the non-destructive alternative to deletion, but no alternative tool is named and no explicit when/when-not guidance is given.

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