Skip to main content
Glama

get_temperature_history

Retrieve temperature sensor history for a device over a chosen time range, optionally filtering by sensor IDs and thinning results to a set number of points.

Instructions

Получить историю показаний датчиков температуры за указанный период.

Параметры: device_id: идентификатор устройства. hours: глубина истории в часах (по умолчанию 24, максимум зависит от тарифа: бесплатный — 3 месяца, платный — весь период). sensor_ids: список ID датчиков для фильтрации. Если не указан — все датчики. max_points: прореживание ряда до этого числа точек (равномерно, первая и последняя сохраняются; 0 — без ограничения). По умолчанию 500, чтобы ответ не усекался лимитом MCP.

Данные раскодируются из формата Delta-time Array. Возвращает временные ряды: [{sensor_id, sensor_name, readings: [{ts, temp}]}]; при прореживании добавляется поле thinned: true.

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": "get_temperature_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
device_idYes
max_pointsNo
sensor_idsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A4.1/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 disclosure burden, and it does well. It reveals delta-time decoding, tariff-dependent maximum history depth, default thinning to 500 points to avoid MCP response truncation, preservation of first and last points, and a thinned flag in the output. It does not cover permissions or error behavior, which keeps it at 4 rather than 5.

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 one-line purpose statement is front-loaded, followed by a structured parameter block and a short return-format note. The parameter block is long but every line adds operational meaning. The return-shape sentence partly duplicates the output schema, which is minor redundancy.

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?

For a 4-parameter read tool with no annotations, the description supplies defaults, limits, filtering semantics, thinning behavior, and even the return structure. An agent could call this correctly without opening the schema, and the tariff-based hours ceiling is a non-obvious constraint that is explicitly surfaced.

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

Parameters5/5

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

Schema coverage is 0%, so the description must supply all parameter meaning, and it does. It defines device_id, hours with default and tariff-based maximum, sensor_ids as an optional filter with 'all sensors' fallback, and max_points with default 500, 0 meaning unlimited, and uniform thinning that keeps endpoints — all details absent from the bare schema.

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 first sentence names a specific verb and resource: get the history of temperature-sensor readings for a given period. That clearly distinguishes it from boiler, heating-circuit, and radio-sensor history siblings. It never explicitly names those siblings as alternatives or says how they differ in scope, so it stops short of a 5.

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?

Usage is implied by 'history of temperature sensor readings for a period', and the hours parameter description hints at tariff limits. There is no explicit when-to-use or when-not-to-use guidance compared with get_boiler_history, get_heating_circuit_history, or get_radio_sensor_history, so the agent must infer routing from the name.

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