Skip to main content
Glama

PitCanary

Get patterns and extremes

get_trends
Read-onlyIdempotent

Explains how a room behaved over a window and, for each subject, whether the building or the way the room is used accounts for it. Carries the share of time each subject stayed inside its band, the band itself, the standout days, and the split by weekday against the hours the room is meant to be in use. Worth showing rather than listing: the shares are a chart, the weekdays are a chart, and the diagnosis is the sentence that goes under them. How to read the fields: shares count only the hours the room is meant to be in use, except humidity, which counts every hour (humidity_basis all_hours). A subject's delta_pts is its share in this window minus its share in the window of the same length just before, in percentage points (null when either side has no hours). diagnosis compares the subject's share in hours the room was in use with hours it stood empty, 80 % counting as fine: verdict fine_both (fine either way), use_load (poor only in use), poor_both (poor either way) or empty_only (poor only empty), and owner names who usually acts on that pattern, the same word for every subject: nobody, ventilation, building or schedule. For sound or light, use_load means the room's use, not its ventilation. Each record has all_time (since the sensor has been in this room) and period (inside the window asked for). Requires a PitCanary account.

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": {
      "room_id": "<room_id>"
    },
    "name": "get_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day of the window, YYYY-MM-DD, inclusive. Defaults to today.
fromNoFirst day of the window, YYYY-MM-DD, inclusive. Defaults to six days back, so with neither from nor to the window is the last seven days including today.
room_idYesThe room id, as returned by list_rooms.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description adds real behavioral context: an explicit auth prerequisite ('Requires a PitCanary account') and detailed semantics of the returned diagnosis verdicts and owner values. It stops short of 5 because it says nothing about cost, failure modes, or what happens with an invalid or unknown room_id.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is a single dense block of run-on sentences that mixes output-field documentation, verdict enumerations and presentation advice. Most sentences carry real information (there is no output schema), but the phrase 'the same word for every subject' and the charting aside pad it out. It would scan far better as a short purpose line plus a compact field glossary.

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

Completeness3/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 carries the burden of explaining returns, and it does define key fields (shares, delta_pts, diagnosis, owner, all_time vs period) well. However, the overall response shape is never described: it is unclear what the set of 'subjects' is (temperature, humidity, CO2, sound, light?), whether records are per subject or per day, or how standout days and the weekday split are structured. An agent cannot predict the payload layout.

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 100%, so from/to windowing and room_id are already fully documented in the schema, and the description adds little parameter-level meaning beyond echoing 'the window asked for'. Baseline 3 applies when the schema does the heavy lifting.

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 opening sentence gives a specific verb and resource: it explains how a room behaved over a window and attributes the cause to the building or to the room's use. That is far more than a restatement of the name. It falls short of 5 because it never distinguishes itself from plausible siblings such as get_room_analysis, get_room_score, get_history or get_timeline, so an agent must guess which analysis tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no named alternative anywhere in the text. The closest thing is presentation advice ('worth showing rather than listing: the shares are a chart...'), which tells the agent how to render output, not when to call this tool instead of a sibling. The agent is left to infer selection purely from the tool's output shape.

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