Skip to main content
Glama
ae3e

kairosdb-mcp-server

by ae3e

Multiple aggregations over a relative range

kairosdb_aggregate
Read-onlyIdempotent

Compute min, max, avg, and other aggregations for a KairosDB metric over a relative time range with optional tag filters, returning each statistic as a separate series.

Instructions

Computes several aggregations (min, max, avg, etc.) in a single request over a relative time range.

Use cases:

  • "Give me the min/max/avg CPU usage on server web-01 over the last 7 days, hourly"

  • "Daily request latency statistics over the last 30 days"

Args:

  • metric_name: Exact metric name

  • tags: Tag filters

  • range_value / range_unit: Time range (default: 24 hours)

  • aggregators: List of functions (default: [avg, min, max])

  • sampling_value / sampling_unit: Computation window (default: 1 hour)

  • response_format: "markdown" or "json"

Returns: One series per aggregator with statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoKairosDB tag filters. Ex: {"host": ["web-01"], "environment": ["production"]}. Each tag value is an array of strings (logical OR).
range_unitNoTime unit: milliseconds | seconds | minutes | hours | days | weeks | months | yearshours
aggregatorsNoList of aggregation functions to compute in a single request (e.g. [avg, min, max])
metric_nameYesExact KairosDB metric name (e.g. server.cpu_usage, network.latency)
range_valueNoNumeric value of the relative time range (e.g. 7 for 7 days)
sampling_unitNoAggregation window unithours
sampling_valueNoAggregation window size (e.g. 1 for 1 hour)
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 establish readOnly, idempotent, and non-destructive behavior. The description adds useful behavioral detail beyond that: the computation happens in a single request, defaults are supplied for range and sampling, and the return shape is one series per aggregator. No contradiction with the 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 opens with a crisp summary, then gives two concrete use cases, an Args summary, and a Returns line. It is front-loaded and readable; the Args bullet list is somewhat redundant with the schema, but it serves as a quick reference without bloating the description.

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 an 8-parameter tool with a nested tags object and no output schema, the description is sufficiently complete: it explains the purpose, provides realistic examples, summarizes defaults, and states the return shape ('One series per aggregator with statistics'). The schema covers the remaining parameter-level details.

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 high (88%), so the schema carries most parameter meaning. The description's Args section mostly restates names, defaults, and simple labels ('Tag filters', 'Time range', 'Computation window') without adding deeper semantics beyond what the schema already 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 first sentence names a specific verb (Computes), a specific resource (KairosDB metric aggregations), and the key scope (multiple aggregations in a single request over a relative time range). This clearly differentiates it from siblings like kairosdb_query_absolute, kairosdb_query_range, and kairosdb_last_value without needing to open their schemas.

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 two use cases ('Give me the min/max/avg CPU usage... over the last 7 days' and 'Daily request latency statistics over the last 30 days') give an agent concrete, recognizable situations for using this tool. It does not explicitly state when not to use it or name alternatives, but the relative-range and multiple-aggregation context is clear enough to route a query.

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