Skip to main content
Glama
mgcrea

mcp-prometheus

by mgcrea

Prometheus: List Label Values

prometheus_list_label_values
Read-only

List the values a Prometheus label takes, optionally restricted to series matching a selector, so you can filter on exact values instead of guessing regex patterns.

Instructions

List the values one label takes — every namespace, job or instance — optionally only on series matching a selector (e.g. the pods of one deployment). Use it to get exact values right before filtering on them, instead of guessing at a regex.

Input Schema

NameRequiredDescriptionDefault
endNoOnly consider series with samples before this: now, now-1h, -30m, an RFC3339 timestamp (2026-01-31T12:00:00Z) or unix seconds. Defaults to now.
labelYesLabel name, e.g. `namespace`, `job`, or `__name__` for metric names.
limitNoMaximum values to return (1-5000). Defaults to 200.
matchNoA series selector to restrict to, e.g. `{namespace="monitoring"}` or `up{job=~"kube.*"}`. A selector only — no functions or operators. An empty matcher set `{}` is rejected by Prometheus; use at least one non-empty matcher such as `{job=~".+"}`.
startNoOnly consider series with samples after this: now, now-1h, -30m, an RFC3339 timestamp (2026-01-31T12:00:00Z) or unix seconds. Defaults to now-1h, i.e. series that exist now. Pass now-30d to include ones that have since gone away.
searchNoCase-insensitive substring to filter by, e.g. `http`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true already declares this a safe read, so the description's burden is lower. It adds no behavioral context beyond that — no note on result volume, the limit cap's effect, or what happens with a broad match — leaving only the schema to cover those.

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?

Two sentences with no filler; the operation and the optional selector scoping are front-loaded, and the second sentence earns its place by giving the concrete use case.

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 read-only lookup tool with a fully described six-parameter schema and an obvious return shape (a list of label values), the description covers purpose, scoping and intended use. Only the return shape's ordering/truncation behavior is left unaddressed, which is minor.

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%, so start/end/limit/match/search are fully documented in the schema, which sets the baseline at 3. The description reinforces the selector concept with a deployment/pods example but adds no syntax or semantics not already present in the schema.

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 — listing the values a single label takes — with concrete examples (namespace, job, instance) that pin down what a 'label value' is. It implicitly separates itself from prometheus_list_labels (label names) and prometheus_list_metrics, though it never names the sibling it is not.

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?

Gives a clear situational cue: use it to resolve exact values before filtering, rather than guessing at a regex. That tells the agent when to prefer this over trial-and-error filtering, but there is no explicit contrast with prometheus_list_labels or prometheus_query.

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