Skip to main content
Glama
Prometheus MCP Server

Prometheus MCP Server

by Elad-Health

query_instant

Run a PromQL instant query to retrieve the current value of metrics at a specified evaluation time or the current time.

Instructions

Execute a PromQL instant query to get the current value of metrics

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": {
      "query": "<query>"
    },
    "name": "query_instant"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoEvaluation timestamp (RFC3339 or Unix timestamp). Default: current time
queryYesPromQL query expression

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?

No annotations exist, so the description carries the full burden. It conveys that this is a non-mutating read evaluated at a single timestamp (implied by 'instant' and 'current value'), but says nothing about error behavior for invalid PromQL, timeouts, rate limits, or the shape of the result.

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 front-loaded sentence with no filler; the action, the query language, and the returned semantic are all in the first clause.

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 two-parameter read tool with full schema coverage and no output schema, the definition covers the essentials. The missing piece is a hint about what the response looks like (metric vectors vs scalars), which is the one thing neither annotations nor schema supply.

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% and both parameters are documented inline, including the default for 'time'. The description adds no further meaning about 'query' or 'time' beyond the schema, 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?

The description uses a specific verb ('Execute') and names the resource precisely ('PromQL instant query'), and 'current value' distinguishes the instant semantics from a range query. It never names the sibling query_range, so the differentiation against alternatives is left implicit.

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: 'instant query ... current value' suggests this is for a single point-in-time lookup rather than a time range, but the description never says when to use this vs query_range or find_series. No prerequisites or exclusions are stated.

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