Skip to main content
Glama
ryanmat

io.github.ryanmat/logicmonitor

by ryanmat

query_otlp_metrics

Read-onlyIdempotent

Run PromQL range queries against OTLP metrics to retrieve time-series data. Specify query, start, end, and step to analyze metric trends.

Instructions

[PREVIEW] Run a PromQL range query against native OTLP metrics. Returns a time-series matrix

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesWindow end, unix epoch seconds
stepNoResolution step, e.g. '30s', '5m', '1h'; use larger steps for wider windows
queryYesPromQL expression. Examples: container_memory_usage_bytes (raw series), avg(container_cpu_usage_seconds_total) (aggregate), rate(container_network_receive_bytes_total[5m]) (per-second rate), nginx_up{service_name="api"} (label matcher). Discover names and labels with get_otlp_metric_names / get_otlp_metric_labels
startYesWindow start, unix epoch seconds. Keep windows under ~30 days; very wide windows fail in the metrics backend

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.2.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior; the description adds the return type ('time-series matrix') and a '[PREVIEW]' status flag. It does not mention failure modes, but the schema covers the wide-window constraint.

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 short sentences front-load the action and result with no filler. '[PREVIEW]' is a useful status marker and does not hurt readability.

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 PromQL query tool, the schema supplies rich parameter guidance (query examples, step hints, window limits) and annotations cover safety. The description's only gap is lack of explicit usage-alternative routing and a fuller return-format description, but the overall definition is sufficient for correct invocation.

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 all four parameters are already documented with types, formats, and examples. The description adds no parameter-level meaning beyond what the schema provides.

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 names a specific verb ('Run'), resource ('native OTLP metrics'), and query type ('PromQL range query'), and states the return shape ('time-series matrix'). This clearly distinguishes it from sibling discovery tools like get_otlp_metric_names and get_otlp_metric_labels.

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 description implies use for querying metric time series but gives no explicit when/when-not guidance or alternative routing. The schema's query examples point to get_otlp_metric_names / get_otlp_metric_labels for discovery, but that guidance lives in the schema, not the description.

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

Deploy Server

Other Tools