Skip to main content
Glama

prtg_get_sensor_history

Read-onlyIdempotent

Retrieves historic PRTG sensor data over a time range up to 31 days, returning per-channel min, max, mean and last values plus averaged intervals for trend analysis.

Instructions

Historic data of one PRTG sensor over a time range (at most 31 days): per-channel min, max, mean and last over the whole range, plus up to max_rows averaged intervals. Give hours (back from now) or start/end in PRTG server local time. The average interval is picked automatically unless average_seconds is given.

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": {
      "sensor_id": "<sensor_id>"
    },
    "name": "prtg_get_sensor_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoRange end, "YYYY-MM-DD HH:MM", PRTG server local time. Default now.
hoursNoHours back from now (1-744). Default 24 when start is not given.
startNoRange start, "YYYY-MM-DD HH:MM", PRTG server local time.
channelsNoOnly channels whose name contains one of these texts.
max_rowsNoMost intervals to list (1-500); summaries always cover all.
sensor_idYesPRTG sensor ID.
average_secondsNoAveraging interval in seconds: one of 0, 60, 300, 900, 3600, 21600, 86400 (0 = raw values, ranges up to 24 hours only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a hard 31-day cap on the range, PRTG server local time for timestamps, and automatic averaging-interval selection. It still says nothing about pagination/truncation semantics beyond max_rows, failure modes, or units.

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?

Three tight sentences, front-loaded with what the tool returns, then how to specify the range, then the averaging rule. No filler, and the 31-day limit is surfaced in the opening clause where it matters most.

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 correctly takes on the burden of describing the return shape (per-channel summary statistics plus listed intervals), and it covers timezone, defaults and the range cap. Minor gaps remain: units of the returned values, how channel filtering interacts with the whole-range summaries, and behavior when a channel has no data.

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 the schema already documents every parameter including the allowed average_seconds values and max_rows limits, setting the baseline at 3. The description adds the relationship between hours and start/end and the automatic interval-picking rule, but much of that logic is already restated in the schema text.

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 verb and resource ('Historic data of one PRTG sensor') and spells out exactly what is returned: per-channel min, max, mean, last, plus averaged intervals. It is clearly distinguishable from a plain sensor-metadata call, though it never names a sibling such as prtg_get_sensor as the alternative for current values.

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 rather than stated: the agent learns to supply either 'hours' or start/end, and that average_seconds overrides automatic interval selection. There is no explicit when-to-use/when-not-to-use guidance or routing to another tool for live readings versus historical ones.

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