Skip to main content
Glama

Telemetry Timeline

telemetry_timeline
Read-onlyIdempotent

Retrieve and downsample a Meshtastic telemetry field over a time window, returning points, min/max, and regression slope to spot trends or leaks.

Instructions

Time series of one telemetry field, bucket-mean downsampled to <= max_points.

Returns {points: [{ts, value}], samples, min, max, slope_per_min, window}. slope_per_min is a linear regression in units/minute: a negative slope on free_heap over a long window means a real leak. The local (LocalStats) cadence is the device's device_update_interval, about 60 s, so 1 h gives about 60 raw points.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "telemetry_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoOnly telemetry from this port.
fieldNoThe field in snake_case or camelCase; common aliases (free_heap, heap_free_bytes) are normalized.free_heap
windowNoHow far back to look, such as "1h" or "-30m".1h
variantNoOne of device, local, environment, power, airQuality, health, host.local
max_pointsNoCap on the points returned.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds real substance beyond them: the downsampling method (bucket-mean) and cap, the exact result fields, what slope_per_min means dimensionally, and the sampling cadence that governs resolution. It says nothing about error behavior, missing-field handling, or cost of large windows.

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?

Four sentences, front-loaded with what the tool does and what it returns, then interpretive guidance. Some of the return-shape enumeration duplicates the output schema, but it is compact and every sentence carries information.

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 read-only, fully documented 5-param tool with an output schema, this covers purpose, downsampling behavior, result semantics, and how to size a window. Remaining gaps (port scoping semantics, behavior when a field has no data) are minor given the structured fields available.

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 coverage is 100%, so the schema already documents all five parameters including the field alias normalization. The description adds modest extra meaning by tying window length to sample counts via the cadence note, which is slightly above the baseline but not a substantial expansion.

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?

States a concrete verb+resource pair: a time series of one telemetry field, bucket-mean downsampled to a point cap. That clearly distinguishes it from the window/log-scanning siblings like events_window and logs_window, though no sibling is named explicitly.

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?

Gives concrete context for how to choose parameters: local cadence is ~60 s so a 1 h window yields ~60 raw points, and a negative slope_per_min on free_heap over a long window indicates a real leak. It stops short of stating when to prefer this over a sibling tool (e.g. logs_window) or any exclusions.

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