Skip to main content
Glama
Otii MCP Server
by qoitech

measure

Powers a device under test at a set voltage for a defined duration, records current and optional UART/channel data, then returns recording ID and statistics.

Instructions

Power the device under test from the Otii main output at main_voltage for duration_s seconds and record it, then turn power off. Returns the recording id and statistics for the whole recording.

main_voltage: supply voltage in V. Check it is safe for the device under test. max_current_A: the main output cuts off above this current. channels: channels to record in addition to main current 'mc', e.g. 'mv' (main voltage), 'mp' (main power), 'i1'/'i2' (digital inputs GPI1/GPI2, for energy_between_gpi_edges). uart_baudrate: set to record the device's UART output (rx channel) as a timestamped log, which enables get_log and energy_between_messages. exp_voltage: expansion port voltage (1.2-5 V), i.e. the UART/GPIO logic level. Must match the device's IO voltage when recording UART or GPI. Left unchanged if not given. device: Otii device name; defaults to OTII_DEVICE or the only connected device.

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": {
      "main_voltage": "<main_voltage>"
    },
    "name": "measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNo
channelsNo
duration_sNo
exp_voltageNo
main_voltageYes
max_current_ANo
uart_baudrateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it discloses the power-on/record/power-off sequence, the current cutoff behavior of max_current_A, and the downstream features enabled by channels and uart_baudrate. It omits failure behavior (e.g. whether power is turned off if the recording errors) and any permission or device-exclusivity constraints.

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 single paragraph stating action and return values, followed by a compact per-parameter block where each line adds distinct meaning. Slightly long, but no redundant sentences; minor tightening possible in the channels/uart lines.

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?

For a 7-parameter hardware-control tool with no annotations and no output schema, the definition covers actions, side effects, return summary, and all parameter meanings. Remaining gaps are error/cleanup semantics and the shape of the returned statistics, which it gestures at without detail.

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 description coverage is 0%, and the description compensates fully: it explains main_voltage units and the safety check, max_current_A as a cutoff threshold, channel codes with concrete examples, the effect of uart_baudrate on enabling get_log/energy_between_messages, the 1.2-5 V range and conditional requirement for exp_voltage, and device default resolution. duration_s is covered implicitly by 'for duration_s seconds'.

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

Purpose5/5

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

States a specific verb+resource chain: power the device from the Otii main output for a duration, record, then turn power off, and says what is returned (recording id and statistics). It is clearly the primary measurement/recording tool, distinguished from the read-only siblings named in the description (get_log, energy_between_messages) that depend on it.

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?

Implies the measurement workflow and notes when exp_voltage must match the device IO level, and warns to check main_voltage safety. However, it never says when to prefer this over alternatives or what to do if a measurement fails, so the agent must infer the surrounding workflow.

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