Skip to main content
Glama

Delete Alert Rule

delete_alert_rule
DestructiveIdempotent

Delete an alert rule (DELETE /api/reports/cost-dashboard/alerts/{id}). DESTRUCTIVE — the rule stops and is gone; its past firings stay in list_triggered_alerts. To stop it temporarily use set_alert_rule_active with is_active:false. Works on any plan. 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": "…", "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>"
    },
    "name": "delete_alert_rule"
  }
}

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 delete (alertId from list_alert_rules).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint/readOnlyHint/idempotentHint, yet the description adds substantial context beyond them: past firings persist in list_triggered_alerts, plan requirements, the in-app role matrix, and the four MCP write prerequisites (scope, org switch, role, confirm) plus the read-only key exclusion. That is exactly the kind of authorization and blast-radius detail annotations cannot carry.

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?

Destructive warning and endpoint are front-loaded, then alternatives, then gates — a sensible order. It is dense and slightly over-packed: "Works on any plan" sits awkwardly next to "Alert rules need a paid plan," and the in-app role matrix is longer than most callers need.

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?

For a two-parameter destructive delete with no output schema, everything an agent needs is present: identity of the target, irreversibility and its limits, the safer alternative, and the full authorization checklist with refusal semantics.

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 real meaning: it shows a concrete payload example and explains that confirm:true is one of four server-checked gates whose failure names the missing condition. Minor gap: alert_id provenance (list_alert_rules) is only in the schema.

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?

Opens with a specific verb+resource ("Delete an alert rule") plus the underlying endpoint, and immediately distinguishes it from the reversible path by naming set_alert_rule_active. An agent can pick it out of the alert-rule sibling group without opening any 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?

Explicitly states the alternative for the common near-miss case ("To stop it temporarily use set_alert_rule_active with is_active:false") and adds when-not conditions via the four-part write gate. It even tells the agent what to do on refusal (relay the named gate, don't retry).

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