Skip to main content
Glama

otii_measure

Read-only

Records 50 kHz current, voltage, and power samples for a set duration, returning average/min/max values plus energy and charge totals to profile connected hardware.

Instructions

Record 50 kHz samples; return average/min/max current, voltage and power, plus energy and charge.

coverage is the share of due samples that arrived over USB (normally 100%); any missing frames are timing gaps unrelated to the load, so averages stay valid, but a spike inside a gap would not show in max. Blocks for the requested duration and keeps one CPU core busy meanwhile. Does not switch the output.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "otii_measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
secondsNoHow long to record, in seconds.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Beyond readOnlyHint=true, it discloses that the call blocks for the requested duration, occupies one CPU core, leaves the output untouched, and explains the `coverage` value including why averages remain valid across timing gaps while a spike inside a gap could be missed. That is exactly the side-effect and data-quality context annotations cannot carry.

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?

Front-loaded with what is returned, then the coverage caveat, then side effects – a sensible order with little waste. The coverage sentence is dense and takes a second read, but the detail is substantive rather than filler.

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?

Output schema exists, so it does not need to enumerate return fields, and the blocking/precondition behavior is covered. What is left implicit is the prerequisite that output must already be enabled and what error or partial data occurs if the device is off.

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% and `seconds` is already documented with default and bounds, so the baseline is 3. The description adds real meaning by framing it as a blocking wall-clock duration and tying the measurement window to the returned statistics.

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?

States a specific verb ('Record 50 kHz samples') and the exact result set (average/min/max current, voltage, power, energy, charge), which separates it from a plain instantaneous-read sibling. It never names the sibling it differs from, so an agent must infer the boundary with otii_read.

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 context is implied rather than stated: 'Does not switch the output' signals that the output must already be on (e.g. via otii_power_on) before measuring, and the blocking note signals cost. There is no explicit when-to-use-versus-otii_read guidance or exclusion.

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

Deploy Server

Other Tools