Skip to main content
Glama
Prometheus MCP Server

Prometheus MCP Server

by Elad-Health

get_metric_metadata

Retrieve Prometheus metric metadata, including type and help text, for a specific metric or all metrics to understand available metrics and their meanings.

Instructions

Get metadata (type, help text) for a specific metric or all metrics

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

Input Schema

NameRequiredDescriptionDefault
metricNoMetric name to get metadata for. If not specified, returns all metadata

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; 'Get' implies a safe read operation and the parenthetical tells the agent what data comes back (metric type and help text), which is useful. It says nothing about permissions, rate limits, or error behavior for unknown metric names.

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 short sentence with the resource first, the returned fields inline, and zero filler. Nothing could be removed without losing information.

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 trivial one-optional-parameter read tool with no output schema, the description covers purpose, scope, and the shape of the return value. Only minor gaps remain, such as behavior when the metric name does not exist.

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, so the description's restatement of the optional all-metrics behavior adds little. Baseline 3 applies when the schema does the heavy lifting.

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 ('Get metadata ... for a specific metric') and names the payload fields (type, help text). It distinguishes itself from listing tools by describing both single-metric and all-metric scope, though it never names list_metrics or any sibling explicitly.

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?

The phrase 'for a specific metric or all metrics' implies the two usage modes and that the parameter is optional, but it offers no explicit when-to-use vs alternatives guidance (e.g. versus list_metrics) and no exclusions.

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