Skip to main content
Glama
Prometheus MCP Server

Prometheus MCP Server

by Elad-Health

list_targets

List all scrape targets and their health status (up/down), with an optional health filter, to identify unavailable endpoints.

Instructions

List all scrape targets and their health status (up/down)

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": "list_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
healthNoFilter by health statusall

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 behavioral burden. It conveys that results are a list of targets with up/down status, but says nothing about read-only safety, whether targets are scoped to a job/pool, pagination or result volume, or whether the health field is live or cached — all of which matter for a monitoring endpoint.

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 compact sentence with the resource front-loaded and no wasted words. The parenthetical is mildly ambiguous — it reads as return values but sits next to a filter concept — which keeps it just short of a 5.

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?

The tool is simple: one optional, fully documented parameter and no output schema. The description covers the core purpose adequately, but with no annotations and no output schema it could say more about what a target record contains (job, instance, labels, last scrape) and how filtering interacts with the default 'all'.

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 the health parameter and its enum are already fully documented in the schema. The description's '(up/down)' actually narrows the enum, which also includes 'unknown' and 'all', so it adds no meaning beyond the schema and is slightly less complete than it.

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?

The description gives a specific verb and resource ('List all scrape targets') plus the payload ('their health status'), so the agent knows exactly what it returns. It does not, however, distinguish this from the sibling get_target_health, whose name suggests overlapping territory, leaving the agent to guess which one to call.

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 or when-not-to-use guidance and no named alternative. With a sibling named get_target_health present in the catalog, the omission of any routing hint is a real gap, since the only usage signal is the implicit 'this lists targets'.

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