Skip to main content
Glama

Delete an alert rule

delete_alert
DestructiveIdempotent

Deletes an alert rule that your API key created (rules made on the website or by other keys cannot be deleted this way). Its past alerts stay in the inbox and delivery log. Needs an API key.

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

Input Schema

NameRequiredDescriptionDefault
ruleIdYesRule id, from `list_alerts` or `create_alert`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint, idempotentHint, openWorldHint), the description discloses two behaviors that cannot be inferred: past alerts remain in the inbox and delivery log after deletion, and an API key is required. Ownership scoping further clarifies the failure mode, which is high-value context for a destructive operation.

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, each carrying distinct information: what is deleted, what survives, and what credential is needed. The ownership restriction is front-loaded rather than buried.

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 single-parameter destructive tool with full annotation coverage and no output schema, the description covers scope, side effects on past alerts, and auth requirements. Nothing needed to invoke it correctly is missing.

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 the ruleId field already states it comes from list_alerts or create_alert, so the schema carries the parameter burden. The description adds no format or selection guidance for ruleId beyond what is already structured, warranting the baseline 3.

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 ('Deletes an alert rule') and immediately bounds the scope by ownership, which separates it from create_alert/list_alerts/test_alert. An agent knows exactly what object is operated on and whose.

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?

It gives an explicit exclusion: rules made on the website or by other API keys cannot be deleted this way, which is exactly the precondition an agent must check before calling. It stops short of naming an alternative path for those out-of-scope rules, so no full when-to-use routing is provided.

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