Skip to main content
Glama

Mean of a group of sensors

get_sensors_average
Read-onlyIdempotent

The mean of up to 100 sensors per 5 minutes, hour or UTC day, each sensor counted once per bucket, with the number of sensors in each bucket. Windows as in get_sensor_readings; by day at most 92 days a call.

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": {
      "ids": "<ids>"
    },
    "name": "get_sensors_average"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601 date or time, UTC; default now.
idsYes
fromNoISO 8601 date or time, UTC.
intervalNohour

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / interval / enum
      Previous value: -[
      -  "5min",
      -  "hour"
      -]New value: +[
      +  "5min",
      +  "hour",
      +  "day"
      +]
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral context beyond that: the de-duplication rule (each sensor counted once per bucket), the 100-sensor cap, the UTC-day bucketing, and the 92-day-per-call limit for daily aggregation.

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?

Two dense but purposeful sentences; the aggregation semantics are front-loaded and nothing is filler. The telegraphic style and the mid-sentence cross-reference to get_sensor_readings make it slightly harder to parse than it needs to be.

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?

With no output schema, the description must carry return semantics, and it does indicate the response includes a per-bucket mean and a per-bucket sensor count. Gaps remain on the exact return shape (timestamps, ordering) and how sensors with no readings in a bucket are treated, which matters for a 100-sensor aggregate.

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 50%: to/from are documented in the schema, but ids and interval carry no schema descriptions. The description partially compensates by tying the 100-item cap to ids, enumerating the interval buckets (5min/hour/UTC day), and deferring window semantics to get_sensor_readings; it still does not explain from/to defaults or the interaction between range length and interval.

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 states a specific aggregation (mean) over a specific resource (a group of up to 100 sensors) at specific bucket granularities, and it clarifies the counting rule (each sensor once per bucket) plus the accompanying count of sensors per bucket. It is not a tautology of the title, though it is phrased as a noun phrase rather than a verb and only implicitly contrasts with get_sensor_readings via the window reference.

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?

The description implies when it applies (you want aggregated means rather than raw readings) and points to get_sensor_readings for window semantics, and it gives one hard operating constraint (at most 92 days per call when interval is day). However, it never explicitly says when to choose this over get_sensor_readings or what happens for non-day intervals at long ranges.

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