Skip to main content
Glama
devShahriar

openobserve-mcp

by devShahriar

query_metrics

Run PromQL queries on OpenObserve metrics over a time range, specifying start and end times with optional step resolution to analyze metric trends.

Instructions

Query metrics with PromQL over a time range (Prometheus query_range)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepNoResolution step60s
queryYesPromQL expression
end_timeNoISO timestamp. Defaults to now.
start_timeYesISO timestamp, or relative shorthand like '15m', '2h', '7d'
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the tool queries metrics over a range and references Prometheus query_range, which implies a read-only operation, but it does not disclose output format, time-range limits, pagination, or authentication requirements.

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 a single sentence that is front-loaded with the core action and resource. There is no redundancy or filler; every word earns its place.

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 and no annotations, the description could usefully mention the return format (e.g., Prometheus matrix) and any time-range constraints. The schema documents parameters well, but the overall tool context is under-specified for an agent that needs to understand what to expect from the result.

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%, so each parameter is already documented. The description adds only the 'PromQL' and 'time range' context, which is already reflected in the schema descriptions, adding minimal semantic value beyond the schema.

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 uses a specific verb and resource: 'Query metrics with PromQL over a time range', which clearly identifies the tool's purpose and distinguishes it from log/trace siblings. The parenthetical 'Prometheus query_range' further anchors the exact API behavior.

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

Usage Guidelines4/5

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

The description provides clear context: use this tool to query Prometheus metrics over a time range. It does not explicitly mention when not to use it or name alternatives, but the metric/time-range framing is enough to guide tool selection among the listed siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devShahriar/OpenObserve-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server