Skip to main content
Glama
Otii MCP Server
by qoitech

get_statistics

Calculates energy, charge, and current statistics between two times in an Otii recording, using seconds from recording start and defaulting to the latest recording.

Instructions

Statistics between two times (seconds from recording start). For the main current channel 'mc' this includes energy and charge. Defaults to the latest recording.

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": {
      "from_s": "<from_s>",
      "to_s": "<to_s>"
    },
    "name": "get_statistics"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_sYes
deviceNo
from_sYes
channelNomc
recording_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses only one behavioral trait — that for channel 'mc' the result includes energy and charge — and is silent on what happens for other channels, whether results are aggregated or sampled, units, resolution, and error behavior for invalid ranges. That is thin for a query over a 5-parameter surface.

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?

Three short sentences with no filler; the time-unit clarification is front-loaded. The second sentence's channel-specific detail slightly interrupts the flow before the default-recording note, but nothing is wasted.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no annotations and no output schema, the description is too sparse: the shape and units of the returned statistics are undefined, and the device parameter is undocumented anywhere. An agent could call it, but could not predict or interpret the result.

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 0%, so the description must compensate. It usefully explains that from_s/to_s are seconds from recording start and that recording_id defaults to the latest recording, and it implicitly covers channel via 'mc'. The device parameter is never mentioned, and channel is not named as a parameter, so compensation is partial.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Statistics between two times" names a verb and resource and adds scoping detail (seconds from recording start, channel 'mc' includes energy and charge). However, "statistics" remains generic — it never says what aggregate is computed (mean/min/max/energy totals) or how it differs from siblings like measure or energy_between_messages. An agent can tell roughly what it does but not precisely what it returns.

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?

The only contextual guidance is the default behavior ("Defaults to the latest recording", channel defaults to 'mc'). There is no statement of when to choose this over measure or the energy_between_* siblings, and no prerequisites or exclusions.

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