Skip to main content
Glama

record

Destructive

Capture voltage, current, and power over a set duration to CSV and/or PNG, with optional device power switching and serial console logging for hardware power analysis.

Instructions

Record main voltage [V], current [A] and power [W] for duration_s seconds (0.01..600) into the server's output directory: a CSV file (columns time_s, voltage_v, current_a, power_w; rate_hz rows per second averaged, 1..50000, null = every sample) and/or a PNG plot over time titled with the Otii model and serial number, or with title (plain text, at most 200 characters), with a grey project note at the bottom right: footer replaces it (same limits), footer="" leaves it out. Select csv and png individually or together (at least one). name: plain file name without suffix (default: timestamped). Returns the absolute paths and avg/min/max/std per channel. power_on=true powers the device under test: the main output must be off; it is switched on pre_trigger_s seconds (0..10, less than duration_s) into the recording and off at the end. The time the switch-on command was sent is marked in the plot and in the CSV column output_on; power_on.command_sent_s in the result. serial_port (a /dev/ path) reads the serial console of the device under test at baud (8N1, nothing is sent) and adds a fourth plot panel with each line at its arrival; needs png.

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": "record"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNo
pngNo
baudNo
nameNo
titleNo
footerNo
rate_hzNo
power_onNo
duration_sNo
serial_portNo
pre_trigger_sNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the destructiveHint/readOnlyHint annotations it discloses the real side effects: files written into the server's output directory with timestamped naming, and physical actuation of the device under test (main output switched on pre_trigger_s seconds into the recording and off at the end). It also describes the return payload (absolute paths plus avg/min/max/std per channel and power_on.command_sent_s) and clarifies that the serial console is read-only (8N1, nothing sent).

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?

Content density is high with little wasted wording, but the text is a single run-on paragraph of stacked parentheticals that is hard to scan. Critical facts such as 'at least one of csv/png' and the power_on prerequisite are buried mid-paragraph rather than front-loaded.

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 an 11-parameter, no-output-schema, hardware-affecting tool it covers outputs, side effects, return values and cross-parameter constraints. Remaining gaps are error conditions and file-collision behavior (e.g. whether an existing name is overwritten), which matter given destructiveHint=true.

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?

With 11 parameters at 0% schema coverage, the description carries the full burden and does so: it gives ranges and meaning for duration_s (0.01..600), rate_hz (1..50000, null = every sample), pre_trigger_s (0..10 and less than duration_s), title/footer (plain text, max 200 chars, footer="" omits it), name (no suffix, timestamped default), baud (8N1), and the power_on/serial_port behaviors. Only a couple of defaults (rate_hz, baud) are omitted, which is minor against this coverage.

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 opens with a specific verb and resource set — record main voltage, current and power for a bounded duration — and enumerates the two artifacts produced (CSV and PNG). An agent can tell exactly what the tool does, but there is no differentiation from the sibling 'measure' or 'status' tools, so it stops short of a 5.

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

Usage Guidelines4/5

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

It states concrete usage rules and prerequisites: csv and png are selected individually or together with at least one required, serial_port needs png, and power_on requires the main output to be off. What is missing is any statement of when to prefer this over measure or power_cycle, and no explicit exclusions are given.

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