Skip to main content
Glama

delete_grafana_alert_rule

DestructiveIdempotent

Delete a provisioned Grafana alert rule by UID (DELETE /api/v1/provisioning/alert-rules/{uid}) on the tenant's connection. Required: uid.

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": {
      "uid": "<uid>"
    },
    "name": "delete_grafana_alert_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesUID of the alert rule to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / uid / description
      Added value: +"UID of the alert rule to delete"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is covered. The description adds the meaningful constraint that this targets provisioned rules on the tenant's connection, but says nothing about what is lost, whether the deletion is reversible, or what errors occur for unknown UIDs.

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?

A single front-loaded sentence with the action, scope, endpoint, and requirement in order. No redundant or filler wording.

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 one-parameter destructive delete with rich annotations and no output schema, the definition covers nearly everything needed to invoke it correctly. The only gap is behavioral detail about irreversibility and handling of non-provisioned rules.

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?

With one parameter at 100% schema description coverage, the schema already explains the uid fully, and 'Required: uid' merely restates it. No extra meaning such as UID format or lookup guidance is added, so the baseline applies.

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 and resource (delete a provisioned Grafana alert rule), scoped by UID and tied to the tenant's connection, with the underlying endpoint given for precision. It implicitly separates itself from upsert/list siblings via 'delete', but never names an alternative explicitly, so it falls just short of the top band.

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?

Usage is only implied by the verb: an agent can infer it should call this when removing an existing provisioned rule. There is no guidance on when not to use it, no mention of what happens with non-provisioned alert rules, and no caution about irreversibility.

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.