Skip to main content
Glama
swannman
by swannman

Get historical metric series

baseline_get_history

Fetch historical reporting data for a device, including pressure, zone, flow, moisture, and temperature metrics. Returns summary statistics and per-bucket data points for the specified date range.

Instructions

Modern reporting time-series for a single device. Kinds: pressure, zone, flow, moisture, temperature. This is the source for historical PRESSURE and for per-zone/flow/moisture/temperature trends. deviceSn is the device's reporting serial (from baseline_list_devices: serialNumber for sensors/meters, decoderSN for zones). Dates accept ISO-8601 or YYYY-MM-DD. Returns max/min/average/median plus per-bucket points.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesMetric kind.
deviceSnYesDevice reporting serial (serialNumber, or decoderSN for a zone).
fromYesStart date (ISO-8601 or YYYY-MM-DD).
toYesEnd date (ISO-8601 or YYYY-MM-DD).
controllerIdNoController id (from baseline_list_controllers). Optional when the account has exactly one accessible controller or BASELINE_CONTROLLER_ID is set; otherwise required.
granularityNoBucket size (default day).
Behavior3/5

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

With no annotations, the description carries full burden. It discloses the return format (max/min/average/median plus per-bucket points) and acceptable date formats. However, it lacks information on potential behavioral traits like data limits, pagination, or authentication requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with 4 sentences, each adding distinct information: purpose, kinds, data source, date format, and return structure. Front-loaded with the core purpose.

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?

Given the tool has 6 parameters and no output schema, the description adequately covers purpose, parameter sources, date formats, and return structure. It could mention ordering or record limits, but overall it provides sufficient context for an agent to use the tool effectively.

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 coverage is 100% so baseline is 3. The description adds value by explaining the source of deviceSn (from baseline_list_devices), date format (ISO-8601 or YYYY-MM-DD), and default granularity (day). This clarifies meaning beyond the schema descriptions.

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 description clearly states it provides historical time-series for a single device, lists the metric kinds, and distinguishes itself from siblings like baseline_get_live (real-time) and baseline_get_report (reports). It uses a specific verb 'get' and resource 'history series', making purpose unambiguous.

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 description tells when to use this tool by specifying it is the source for historical pressure and per-zone/flow/moisture/temperature trends. It does not explicitly state when not to use it, but the context of siblings implies alternatives. It also clarifies how to obtain deviceSn from another tool.

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

Install Server

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/swannman/baseline-irrigation-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server