Skip to main content
Glama

Remove alert

delete_alert
DestructiveIdempotent

Retire an alert rule while keeping past firings in the inbox; confirm first, then return the site's remaining rules with the removed ID under deleted.

Instructions

Retire an alert rule (past firings stay in the inbox). Confirm with the user first. Returns the site's remaining rules with the removed id under deleted.

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": {
      "site_id": "<site_id>",
      "rule_id": "<rule_id>"
    },
    "name": "delete_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
rule_idYes`id` of the rule to retire, from list_alerts `rules`.
site_idYesSite id from list_sites: vendor:station_id, e.g. sungrow:1445844.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.11.5
    • addedInput schema / properties / rule_id / description
      Added value: +"`id` of the rule to retire, from list_alerts `rules`."
    • addedInput schema / properties / site_id / description
      Added value: +"Site id from list_sites: vendor:station_id, e.g. sungrow:1445844."
  2. Changed4 schema fields changedv0.11.4
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "title": "Result",
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"delete_alertOutput"New value: +"delete_alertDictOutput"
  3. First observedv0.9.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description adds value rather than repeating: it discloses that historical firings survive the deletion and sketches the response (remaining rules plus the removed id under `deleted`). It stops short of describing failure modes — e.g. an unknown rule_id — or any permission requirements.

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?

Three short sentences, front-loaded with the core action and its key side effect, then the safety directive, then the return shape. Nothing is padded and no sentence merely restates the tool name.

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 destructive mutation with full annotations, full schema coverage, and an output schema, this covers what an agent needs to invoke it correctly. The only gap is error semantics for a nonexistent or already-deleted rule, which is minor given the output schema exists.

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% and both parameters carry explicit descriptions pointing at list_alerts and list_sites as sources, so the schema does the heavy lifting. The description adds only the implicit site scoping ('the site's remaining rules') and no format or edge-case detail beyond 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?

States a specific verb and resource ('Retire an alert rule') and immediately clarifies the important semantic nuance that past firings remain in the inbox, which distinguishes a retire from a hard purge. An agent can tell this apart from create_alert and list_alerts without opening 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 Guidelines3/5

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

Provides one concrete procedural rule — 'Confirm with the user first' — which is real guidance for an irreversible-looking action. However, it never says when to prefer this over listing alerts first (e.g. resolve rule_id via list_alerts) or what to do if the rule is already gone; usage is largely implied by the verb.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.