Skip to main content
Glama
grafana-blind-alerts-mcp

grafana-blind-alerts-mcp

by softenq

classify_zero_series_rule

Classifies zero-series PromQL or LogQL alert rules as zero_by_design or orphaned_or_unverified, helping auditors identify silent Grafana alerting blind spots.

Instructions

Classify a single PromQL or LogQL alert expression without threshold filters.

Args: expr: Full PromQL or LogQL expression returning zero series. datasource_uid: Grafana datasource UID bound to the rule. datasource_type: Either 'prometheus' or 'loki'.

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": {
      "expr": "<expr>",
      "datasource_uid": "<datasource_uid>"
    },
    "name": "classify_zero_series_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
exprYes
datasource_uidYes
datasource_typeNoprometheus

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It discloses the meaningful constraint that threshold filters are excluded, and 'classify' implies a read-only analysis, but it never states permissions, side effects, or what the classification categories are; the output schema covers return values.

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?

One summary sentence followed by a compact three-line Args block; front-loaded and free of padding. The phrase 'without threshold filters' is slightly cryptic but earns its place as a scope constraint.

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

Completeness3/5

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

With an output schema present, return values need no explanation, and all three parameters are documented. However, for a tool whose core action is 'classify', the description never says what the classification means or how it relates to sibling rule-auditing tools, leaving a real gap.

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 description coverage is 0%, so the Args block does real work: it explains that expr must be a full expression returning zero series, that datasource_uid is bound to the rule, and that datasource_type is 'prometheus' or 'loki' — enum-like values absent from the schema. Minor gap: datasource_type's default and its interaction with expr type are not clarified.

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 (classify) and resource (a single PromQL or LogQL alert expression), plus a scoping qualifier ('without threshold filters'). The 'single' wording distinguishes it from bulk rule auditing, though what the classification produces is not spelled out in the description.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The word 'single' implies one-expression-at-a-time usage, but there is no explicit when-to-use or when-not-to-use guidance and no reference to the sibling tools (audit_blind_alert_rules, list_grafana_alert_rules) that an agent would need to choose between.

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