Skip to main content
Glama
Prometheus MCP Server

Prometheus MCP Server

by Elad-Health

get_alert_rules

Retrieve all Prometheus alerting rules and their current states, with optional filters by rule group or state to inspect firing, pending, or inactive alerts.

Instructions

Get all alerting rules and their current states

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_alert_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupNoFilter by rule group name
stateNoFilter by rule stateall

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole burden. It implies a read-only retrieval of live rule state, but says nothing about required permissions, whether evaluation state is computed on demand, or how large the result can be.

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?

A single tight sentence with no filler, front-loading the resource and return content. It is efficient rather than padded, though brevity here edges into under-specification.

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?

For a simple two-optional-parameter read tool with a fully documented schema, the description is minimally adequate and does hint at return content ("current states"). It still omits any output shape detail and offers no guidance on the state filter values, without an output schema to cover that gap.

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% with documented group and state filters (including the enum values), so the schema already does the work. The description adds nothing about filtering semantics, which is acceptable at the baseline level.

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 ("Get all alerting rules") plus what is returned ("their current states"). It does not distinguish itself from nearby siblings such as get_alert_history, list_alerts, or get_recording_rules, so an agent must guess which of these applies.

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?

Provides no when-to-use context, no exclusions, and no pointer to alternatives like get_alert_history for past state transitions or get_recording_rules for recording rules. The agent gets no routing signal at all.

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