Skip to main content
Glama
Prometheus MCP Server

Prometheus MCP Server

by Elad-Health

get_label_values

Retrieve all values for a specified Prometheus label, such as job names or instances, to discover available label options for queries and monitoring.

Instructions

Get all values for a specific label (e.g., all job names, all instances)

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": {
      "label": "<label>"
    },
    "name": "get_label_values"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesLabel name (e.g., "job", "instance", "__name__")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. 'Get' implies a read-only operation and 'all values' implies an exhaustive enumeration, but it never states whether results are scoped by time, whether they are sorted or truncated, or how large the list may be.

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 short sentence with the core action front-loaded and examples tacked on for clarity. Nothing is wasted and nothing obscures the primary intent.

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 one-parameter read tool with no output schema, this is adequate but leaves the return shape (flat string list?) and any scoping behavior unstated. An agent can call it correctly, but cannot predict what it will get back.

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 coverage is 100% and the single parameter is fully documented in the schema, including the same example values. The description's 'all job names, all instances' duplicates the schema's examples rather than adding format or constraint detail, so the baseline 3 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+resource ('Get all values for a specific label') and the parenthetical examples ('all job names, all instances') make the output concrete. It does not name any sibling to differentiate from (e.g., get_metric_metadata or find_series), so it falls short of a 5.

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: an agent can infer this is for discovering label values before building selectors. There is no explicit when-to-use clause, no exclusions, and no pointer to alternatives such as find_series for filtering.

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