Skip to main content
Glama

Device usage history

iot_device_readings
Read-onlyIdempotent

A charted series for one device — consumption per day for a meter, average per hour for a thermostat — over 24h, 7d, 30d, 90d or 12m, plus the most recent raw readings. Meters report the register; the series is what was USED in each bucket.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "device_id": "<device_id>"
    },
    "name": "iot_device_readings"
  }
}

Input Schema

NameRequiredDescriptionDefault
rangeNo
metricNoWhich metric (energy_kwh, water_gal, temperature_f, …). Defaults to the device's primary metric.
device_idYesThe device id from iot_devices.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the result was truncated, when it was.
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: results are bucketed aggregations, meter values reflect usage rather than the raw register, and the response appends the latest raw readings. It omits defaults (which range/metric apply if omitted) and any bucket-boundary or timezone semantics.

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?

A single dense sentence front-loads the core purpose ('A charted series for one device') and uses the trailing clause for the register-vs-usage distinction. The em-dashed examples are informative rather than filler, though the sentence is long enough that it reads as one breath.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so aggregate/chart formatting need not be explained, and annotations cover the safety profile. Given a three-parameter, read-only query tool, the description supplies everything essential for correct invocation—what is returned, at what granularity, for which ranges, and how meter values differ from raw registers.

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 67%, and the enum for range is already fully enumerated in the schema, so restating 24h/7d/30d/90d/12m adds little. The description only obliquely illuminates metric by giving per-device-type examples, and says nothing about device_id beyond what the schema states. A baseline 3 fits given the schema carries most of the load.

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?

The description names a specific resource and shape: a charted time series for one device, with per-bucket aggregation examples (consumption per day for a meter, average per hour for a thermostat) and the supported ranges. It also clarifies the subtle semantic difference between a meter's reported register and actual usage. It stops short of naming sibling tools, so the contrast with iot_devices or iot_alerts is implied rather than stated.

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?

Usefulness is conveyed only by example (meters vs thermostats) and by the list of ranges; there is no explicit statement of when to pick this over listing devices with iot_devices or checking iot_alerts. The 'most recent raw readings' suffix hints at a snapshot-plus-history role but no exclusion or prerequisite is given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources