Skip to main content
Glama
Nightingale (n9e) Built-in MCP Server

Nightingale (n9e) Built-in MCP Server

Official

query_range

Read-only

Run PromQL range queries against a Prometheus-compatible datasource, auto-adjusting step and flagging truncated results when max points are exceeded.

Instructions

Run a PromQL range query against a Prometheus-compatible datasource. The 'step' is auto-adjusted upward when the result would exceed max_points (default 1000) per series, and 'truncated' is set in the response.

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": {
      "ds_id": "<ds_id>",
      "query": "<query>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "query_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesEnd time (Unix seconds)
stepNoResolution step in seconds (auto if omitted)
ds_idYesDatasource ID
queryYesPromQL expression
startYesStart time (Unix seconds)
max_pointsNoCap points per series (default 1000)

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?

Beyond readOnlyHint, the description discloses a real behavioral trait: step is silently adjusted upward when results exceed max_points, and a 'truncated' flag appears in the response. That is exactly the kind of silent mutation of inputs an agent needs to know about, and it is not derivable from annotations alone. It does not describe error behavior or the response payload shape, which keeps it from a 5.

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?

Two sentences, no filler. The core operation is stated first and the non-obvious side effect follows immediately, which is the right ordering for an agent scanning for behavior that affects result interpretation.

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?

With no output schema, the description carries the burden of explaining returns and only hints at it via the 'truncated' flag. It never says the result is a set of series with timestamp/value pairs, nor how truncation affects interpretation, so an agent knows a flag exists but not what the rest of the payload looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all six parameters are already documented, setting the baseline at 3. The description adds meaning the schema does not: it explains the coupling between 'step' and 'max_points' and the consequence (auto-increase plus truncation) rather than just restating each field independently.

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 ('Run a PromQL range query against a Prometheus-compatible datasource'), which distinguishes it from instant-query style siblings by the word 'range'. It stops short of naming or contrasting any sibling explicitly, so the differentiation is implicit rather than stated.

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 implied by 'range query' (time-bounded series retrieval), but there is no explicit when-to-use guidance, no statement of when to prefer this over query_instant, and no preconditions such as datasource compatibility. An agent can infer the context but is given no routing rules.

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