Skip to main content
Glama

Pause / Resume Alert Rule

set_alert_rule_active
Idempotent

Pause or resume an alert rule without editing it (PUT /api/reports/cost-dashboard/alerts/{id}/active). is_active: false stops it evaluating and notifying; true resumes it. Resuming is refused when the rule has nowhere to deliver (e.g. its only channel was deleted) — attach a channel or email with update_alert_rule instead, which also resumes an auto-paused rule. Works on any plan, so a downgraded organization can still silence old rules. Returns the rule's new state. In the app any active member can create alert rules and manage the ones they created, contributors and admins manage every rule, viewers can attach saved channels but not ad-hoc emails, and the public demo organization is read-only; over MCP every write additionally needs the admin gate below. Alert rules need a paid plan. WRITE TOOL — MCP WRITES ARE OFF BY DEFAULT FOR EVERY ORGANIZATION. This call needs ALL FOUR of: the admin:write scope, the organization switch turned on (an org admin enables it in Settings → Organization → AI agent access), an admin or super_admin org role, and confirm:true. Missing any one of them it refuses and changes nothing, and the error names which one — relay that to the user rather than retrying. Read-only cak_ API keys can never perform it. Example: { "alert_id": "…", "is_active": false, "confirm": true }.

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": {
      "alert_id": "<alert_id>",
      "is_active": "<is_active>"
    },
    "name": "set_alert_rule_active"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to true to actually perform this write. Required: the tool refuses the mutation unless confirm:true is present. Authorization for the change itself is your org role, checked server-side.
alert_idYesThe rule to pause or resume (alertId from list_alert_rules).
is_activeYesfalse pauses the rule (it stops evaluating and notifying); true resumes it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-destructive, idempotent, open-world write; the description adds far more: the exact four-part authorization gate (admin:write scope, org switch, admin/super_admin role, confirm:true), that failures are atomic and the error names the missing gate, that read-only cak_ keys can never succeed, and that the response is the rule's new state. This is precisely the behavioral context an agent needs before attempting a write, and nothing contradicts readOnlyHint=false or idempotentHint=true (setting a boolean state is naturally idempotent).

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?

Front-loaded and dense: capability, semantics, refusal path, then the authorization gate, then an example. The in-app role matrix paragraph (viewers, contributors, public demo org) is the longest and least actionable block for an MCP caller, and the confirm requirement is stated twice, but no sentence is pure filler.

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

Completeness5/5

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

There is no output schema, yet the description states what is returned (the rule's new state), and it fully specifies the non-obvious multi-factor authorization required for an MCP write. Combined with the sibling pointer for the no-channel case, an agent has everything needed to invoke this correctly or to explain a refusal.

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 description coverage is 100%, so alert_id provenance (from list_alert_rules), the is_active polarity, and the confirm requirement are all already documented. The description reinforces these and adds a worked example payload, but introduces no parameter meaning the schema lacks — 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 pair and resource ("Pause or resume an alert rule") plus an explicit scope boundary ("without editing it") that separates it from update_alert_rule and delete_alert_rule. The endpoint path and the is_active polarity are given up front, so the agent can identify the tool without reading the 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?

Gives the positive case (silence/resume a rule), the failure case where resuming is refused (no delivery destination), and the named alternative plus its extra benefit (update_alert_rule also resumes an auto-paused rule). It also states a plan-level use case (downgraded orgs can still silence old rules), leaving little to inference.

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