Skip to main content
Glama

Idm Get History

idm_get_history

Query recorded history for one device parameter from an ISOTEL IDM gateway, choosing regular, scaled, averaged, or aggregate output; inactive devices are supported.

Instructions

Read recorded samples of one parameter, aggregated by the gateway.

Four modes, chosen by which arguments are set: regular (default) - max_points samples from the span. scale - exactly scale points spanning the span, each with m records. average - scale plus average: interval duration in SECONDS; adds n, sd. calc - one aggregate over the whole record set, e.g. "avg".

Also works for inactive devices: the gateway keeps their records.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
calcNoaggregate function over the record set, e.g. "avg", "sum".
scaleNonumber of evenly spaced points across the span.
deviceYesroot, full name or unambiguous substring (inactive allowed).
averageNointerval duration in seconds; requires `scale`.
time_toNoUTC timestamp, or "last"/"end".last
parameterYesparameter path, e.g. "ec/E".
time_fromNoUTC timestamp, or "first"/"start" for the oldest record.
max_pointsNoregular mode - number of samples (gateway default 100). With only time_from set this takes the first N after it; with time_to set, the last N before it. Exclusive with `scale`.
interpolateNowith `scale`, fill intervals that hold no records.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/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 and does meaningful work: it discloses gateway-side aggregation, that inactive devices still have records ('the gateway keeps their records'), that average intervals are in SECONDS, and that average mode adds 'n' and 'sd' to each returned point. It says nothing about permissions, result-size limits, or error behavior.

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?

Front-loaded with the core action, then a compact mode list with aligned labels — efficient and scannable. Minor cost: identifiers like `m` in the scale line are never defined in the prose, so the reader has to infer what a returned point contains.

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?

An output schema exists, so return values need not be documented, yet the description helpfully hints at the extra `n`/`sd` fields in average mode. Combined with mode selection, units, defaults, and inactive-device support, an agent has enough to call it correctly for a 9-parameter, 4-mode tool; only error and permission behavior are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is already 100%, so the baseline is 3. The description goes beyond it by defining the mode combinations that tie parameters together (average requires scale; calc collapses the whole record set) and by clarifying the unit of `average`. It adds cross-parameter semantics rather than just restating individual fields.

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?

States a specific verb and resource: 'Read recorded samples of one parameter, aggregated by the gateway.' The four-mode framing (regular/scale/average/calc) makes it unmistakably the historical-samples tool rather than a live-value sibling like idm_get_value or a stream reader like idm_read_stream.

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?

Explicitly tells the agent how to select behavior: 'Four modes, chosen by which arguments are set,' with each mode's argument combination spelled out (scale → average, calc → single aggregate). It also notes the inactive-device case. No sibling alternatives or when-not conditions are given, so it stops short of 5.

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