Skip to main content
Glama
mgcrea

mcp-prometheus

by mgcrea

Prometheus: Request

prometheus_request
Read-only

Sends read-only GET requests to uncovered Prometheus /api/v1 endpoints and returns raw response data, truncated to a configurable character limit.

Instructions

Escape hatch: GET any /api/v1 endpoint the other tools do not wrap — /api/v1/query_exemplars, /api/v1/targets/metadata, /api/v1/alertmanagers, /api/v1/format_query, /api/v1/status/walreplay. The answer is the raw data of the envelope, unshaped, cut at max_chars. Read-only: only GET is ever sent. Prefer the named tools, which shape their output; this one can return megabytes.

Input Schema

NameRequiredDescriptionDefault
pathYesAPI path, starting with /api/v1/, e.g. "/api/v1/format_query".
paramsNoQuery parameters. A repeated parameter is an array: {"match[]": ["up", "process_start_time_seconds"]}.
max_charsNoCut the serialized answer at this many characters (100-200000). Defaults to 20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses that only GET is sent, that the response is the raw unshaped data field, that output is truncated at max_chars, and that it can return megabytes. These are exactly the behavioral traits an agent needs for an open-world escape-hatch tool.

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?

The description is front-loaded with the escape-hatch purpose, followed by examples, scope, safety, and truncation caveats. Every sentence contributes useful information without repetition.

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 an open-world raw-API tool with a rich schema, the description covers purpose, alternatives, safety, and truncation well. It does not mention error-envelope or non-2xx behavior, which is a minor remaining gap for an arbitrary-endpoint tool.

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%, with path pattern, params repetition semantics, and max_chars range already documented in the schema. The description reinforces max_chars truncation but does not add new parameter meaning beyond the schema baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: GET any /api/v1 endpoint not covered by the named tools. It explicitly distinguishes itself from siblings by positioning itself as the escape hatch and naming examples of endpoints it handles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance ('other tools do not wrap') and when-not-to-use guidance ('Prefer the named tools'), naming the alternative category directly. An agent can decide between this and the specific Prometheus tools without inference.

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