Skip to main content
Glama
mcp-prometheus

mcp-prometheus

by AmeesAnsari

describe_metric

Read-onlyIdempotent

Inspect a Prometheus metric's type, help text, unit, label names, and example values from the last hour to validate queries and understand available dimensions.

Instructions

Show a metric's type, help text and unit, plus its label names and example values from the last hour.

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": {
      "metric": "<metric>"
    },
    "name": "describe_metric"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricYesExact metric name, e.g. 'http_requests_total'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive behavior, but the description adds a genuine trait beyond them: example values are scoped to the last hour, which tells the agent the samples are time-limited and not exhaustive. It does not cover what happens with an unknown metric name or whether sampling is truncated, keeping it out of 5 territory.

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?

One sentence that front-loads the primary output (type, help text, unit) before the secondary detail (labels, example values). Every clause conveys distinct information and nothing is repeated from the schema or annotations.

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?

With an output schema present, the description need not enumerate return fields, and it still summarizes the payload shape and its time window. For a one-parameter read tool this is nearly complete; only failure/no-data behavior for an unknown metric is unaddressed.

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?

The single parameter is fully documented in the schema (exact metric name with an 'http_requests_total' example), so the schema carries the load. The description adds no extra meaning such as matching rules or which metric namespace applies, which is the expected baseline-3 outcome at 100% coverage.

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 ("Show") and resource (a metric's type, help text, unit, label names, example values), so the agent knows exactly what comes back. It does not distinguish itself from siblings such as list_metrics or query, which name-wise could look similar, 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: the list of returned metadata suggests this is an inspection step before querying or ranging, but the description never states when to prefer it over query/list_metrics, nor any exclusions or prerequisites. An agent can infer the use case but gets no explicit routing guidance.

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