Skip to main content
Glama

Create or update an ads alert rule

automate_upsert_alert_rule
Destructive

Create or update an ads alert rule. Admin only. Notify after hourly sync; does not pause.

Input Schema

NameRequiredDescriptionDefault
nameNo
scopeNo
titleNo
actionNo
metricNo
reasonNo
confirmNo
date_toNo
dry_runNo
rule_idNo
user_idNo
email_toNo
operatorNo
platformNo
action_idNo
client_idNo
conditionNo
date_fromNo
is_activeNo
min_spendNo
thresholdNo
to_amountNo
user_emailNo
campaign_idNo
report_typeNo
confirm_liveNo
range_presetNo
lookback_daysNo
cooldown_hoursNo
roas_thresholdNo
consecutive_daysNo
google_customer_idNo
meta_ad_account_idNo
max_actions_per_dayNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / email_to
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Email To"
      +}
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

The description adds real context beyond annotations: admin-only access, hourly-sync evaluation timing, and that the rule notifies rather than pauses campaigns, which softens the destructiveHint. However, for a destructive 34-parameter mutation it says nothing about confirm/dry_run safety flow, what an update overwrites, or reversibility.

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?

Three short, front-loaded sentences with zero filler; the operation and its constraints come first. It is efficient, though the space saved is not reinvested in any parameter or safety detail.

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?

Given a destructive, 34-parameter tool with no parameter documentation, the description is far too thin for correct invocation—an agent cannot know how to use dry_run/confirm or how to target an existing rule. The output schema covers return values, so that gap is acceptable, but the input-side gap is severe.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 34 parameters with 0% description coverage, and the description explains none of them. Critical fields like rule_id (create vs update), dry_run, confirm, confirm_live, and confirm_live's role in a destructive mutation are left entirely undocumented; only the phrase 'create or update' hints at rule_id semantics.

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 (create or update) and resource (ads alert rule), which clearly separates it from the delete/list variants. It does not explicitly distinguish 'ads alert rule' from siblings automate_upsert_automation_rule or automate_upsert_seo_alert_rule, so an agent must infer the boundary.

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?

'Admin only' gives a clear permission precondition and 'Notify after hourly sync; does not pause' tells the agent this is notification-only rather than an action-taking tool. It stops short of naming the alternative (e.g. automate_propose_pause) for pausing, so routing is implied rather than explicit.

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.