Skip to main content
Glama
Prometheus MCP Server

Prometheus MCP Server

by Elad-Health

find_series

Retrieve time series matching a Prometheus label selector, with optional start and end times, to identify available metrics for queries.

Instructions

Find time series matching a label selector

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": {
      "match": "<match>"
    },
    "name": "find_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEnd time for the search
matchYesSeries selector (e.g., 'up{job="prometheus"}', '{__name__=~"http_.*"}')
startNoStart time for the search

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 full disclosure burden and provides almost none of it: it does not say whether the call is read-only, whether results are truncated or capped, how a missing selector matches, or what the response looks like (list of series names? label sets?). 'Find' weakly implies a read, but that is the only behavioral signal in an otherwise silent definition.

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 front-loaded clause with zero filler or redundant restatement of the name. Its terseness is a problem of substance rather than bloat, so it scores well here even though it leaves the agent under-informed elsewhere.

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

Completeness2/5

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

With no output schema and no annotations, the description is the agent's only source of truth for return shape and behavior, and it says nothing about either. For a 3-parameter query tool in a Prometheus-like family, the definition should at minimum state what comes back and how it relates to the start/end bounds.

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 schema itself gives concrete selector examples, so the baseline of 3 applies. The phrase 'label selector' merely echoes the 'match' parameter rather than adding syntax, time-bound interaction, or default-behavior details beyond what the schema already documents.

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 ('Find time series') plus the mechanism ('matching a label selector'), which distinguishes it from value-returning siblings like query_instant or query_range. It does not explicitly name any sibling, but the resource itself is distinctive enough for an agent to route correctly.

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?

There is no when-to-use guidance at all — nothing tells the agent whether to reach for find_series versus get_label_values, query_instant, or query_range when exploring a metric. The only implicit signal is the word 'matching', leaving the selection decision entirely to inference.

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