Skip to main content
Glama
ae3e

kairosdb-mcp-server

by ae3e

Query over a relative time range

kairosdb_query_range
Read-onlyIdempotent

Retrieve time-series data from KairosDB for a metric over a relative range, with optional tag filters and aggregation. Get timestamped points with min, max, and average statistics.

Instructions

Queries KairosDB for a metric's data over a relative time range (e.g. the last 24 hours).

Typical use cases:

  • "Give me the CPU usage data for server web-01 over the last 7 days"

  • "Show me the memory usage from last week"

Args:

  • metric_name: Exact KairosDB metric name

  • tags: Tag filters (e.g. {"host": ["web-01"]})

  • range_value: Duration to look back (default: 24)

  • range_unit: Unit (hours/days/weeks/..., default: hours)

  • aggregator: Optional aggregation function (avg/min/max/sum/count)

  • sampling_value / sampling_unit: Window size if aggregation is enabled

  • limit: Max number of points (default: 1000, max: 10,000)

  • response_format: "markdown" (default) or "json"

Returns: Timestamped data points with statistics (min/max/avg).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoKairosDB tag filters. Ex: {"host": ["web-01"], "environment": ["production"]}. Each tag value is an array of strings (logical OR).
limitNoMaximum number of data points to return (max 10,000)
aggregatorNoIf provided, aggregates the data with this function. Leave empty for raw data.avg
range_unitNoTime unit: milliseconds | seconds | minutes | hours | days | weeks | months | yearshours
metric_nameYesExact KairosDB metric name (e.g. server.cpu_usage, network.latency)
range_valueNoDuration of the time range (e.g. 24 for the last 24 hours)
sampling_unitNoWindow unit (required if aggregator is set)hours
sampling_valueNoAggregation window size (required if aggregator is set)
response_formatNomarkdown
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds meaningful behavioral context: it returns timestamped data points with min/max/avg statistics, has a default limit of 1000, and supports markdown or JSON response formats. This adds value beyond the structured annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized with a purpose statement, typical use cases, an Args list, and a Returns section. Information is front-loaded with the relative-time concept and examples. It is slightly longer than necessary because the Args list overlaps heavily with the schema, but each section has a clear role.

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 9-parameter tool with one required parameter, the description covers the main decision points: relative range, tag filtering, aggregation, limits, and response format. Since there is no output schema, the Returns line helps close that gap. It does not describe exact JSON shape or pagination behavior, but this is acceptable given the schema richness and annotations.

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 89%, so the schema already documents most parameters well. The description reinforces key semantics with examples like 'e.g. {"host": ["web-01"]}' and clarifies that sampling windows apply when aggregation is enabled. This is useful but largely duplicates the schema, keeping it at the baseline of 3.

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 clearly states the tool queries KairosDB for a metric's data over a relative time range, with concrete examples like 'last 7 days'. This directly distinguishes it from the sibling kairosdb_query_absolute, which handles absolute ranges. The verb 'queries' and resource 'data over a relative time range' make the purpose unambiguous.

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 typical use cases and explains the relative time range concept, giving an agent clear context on when to invoke it. However, it does not explicitly name alternatives like kairosdb_query_absolute or kairosdb_last_value, so the differentiation is implied rather than stated.

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

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/ae3e/kairosdb-mcp-server'

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