Skip to main content
Glama

Update auto rule

update_auto_rule
DestructiveIdempotent

Edit an auto rule (partial). A sent conditions list replaces the stored one.

Input Schema

NameRequiredDescriptionDefault
idYesAuto-rule id
nameNo
tagsNo
actionNo
statusNo
rankingNoPlacement actions only: act on just the worst / best N placements that pass the conditions, e.g. {"metric":"cpa","direction":"worst","limit":5,"min_clicks":100} = the 5 worst-CPA placements with at least 100 clicks. For cpa/cpc/cpm/cost lower is better (a placement that spent without converting is the worst CPA); for the rest higher is better. null = every matching placement.
group_idNo
scheduleNoWhen the scheduler may run the rule, in the workspace timezone: days = ISO weekdays 1 (Mon)…7 (Sun), empty = every day; windows = [{from:"HH:MM", to:"HH:MM"}], empty = whole day; a window with to <= from runs over midnight. null = always.
conditionsNoAll conditions must hold (AND)
action_paramsNoParameters the action needs. Bid actions (increase_bid / decrease_bid / increase_zone_bid / decrease_zone_bid): bid_step (>0, required), bid_step_unit (amount|percent), bid_limit (ceiling for an increase, floor for a decrease). Placement list actions (block_zone / whitelist_zone / unblock_zone): site_list_id — the list to write into, default the campaign's own. switch_rotation: flow_scheme_id (required) — the flow scheme copied over the campaign's flows, applied once per scheme. Keys the action does not use are dropped.
time_intervalNoMetrics window
run_every_minutesNo
on_success_pause_ruleNoPause the rule after it fires
on_success_pause_campaignNoPause the campaign after it fires

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the mutation risk profile is partly covered. The description adds genuinely useful behavior beyond that: "(partial)" implies a merge for omitted fields, and "A sent conditions list replaces the stored one" discloses replace-vs-append semantics, which is exactly the kind of surprise that matters on a 14-parameter destructive update. However it is silent on whether other list fields (tags) also replace, on permissions, and on the effect on in-flight schedule runs.

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 short sentences, front-loaded with the action and scope, with no filler. Nothing is wasted, though the extreme brevity for a 14-parameter destructive tool means the terseness is partly under-specification rather than pure concision.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, 14-parameter partial update with no output schema, the description leaves too much unstated: no mention of what is returned, no guidance on merge behavior for non-conditions fields, no note on permissions or on whether edits affect an active schedule. The rich schema does much of the parameter work, but the behavioral envelope of the tool is largely unexplained.

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 57%, and the schema itself carries detailed prose for the complex nested objects (ranking, schedule, action_params, conditions scopes and metrics). The description contributes exactly one semantic fact beyond the schema: that a supplied conditions array overwrites rather than merges. That is valuable but does not compensate for the remaining undocumented parameters such as run_every_minutes or on_success_pause_rule.

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?

"Edit an auto rule (partial)" gives a specific verb and resource, and the "(partial)" qualifier separates it from create_auto_rule and from a full-replace edit. It does not name or contrast with siblings like create_auto_rule, preview_auto_rule, or get_auto_rule, so the differentiation is inferable from the name rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this versus preview_auto_rule (to test before saving), create_auto_rule (new rules), or attach_auto_rule (binding to campaigns). The description gives no preconditions about which fields must be resent or whether the rule must exist and be paused. Only the conditions-replacement rule hints at usage.

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