Skip to main content
Glama
519Green

IoTaWatt MCP Server

by 519Green

sample_waveform

Read-only

Capture one AC cycle of raw voltage/current samples from a CT input to identify connected load type via harmonics, crest factor, and phase lag.

Instructions

Capture one AC cycle of raw voltage and current samples (about 640 pairs) from a single CT input and describe the shape of the current: crest factor, 3rd/5th/7th harmonics, distortion and phase lag. This shows what kind of load is on the circuit right now: a heater draws a clean sine in phase with voltage, a motor lags, electronics draw a peaky current rich in harmonics. It is a snapshot of everything on that CT, not of one appliance. Values are raw ADC counts, not amps or volts, and have no CT/VT phase correction, so angles are approximate. Needs the admin user on a password-protected device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelYesInput name from discover, or the input's channel number.
include_samplesNoInclude the raw V,I sample pairs after the summary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, non-destructive), but the description adds substantial context beyond them: values are raw ADC counts not engineering units, there is no CT/VT phase correction so angles are approximate, and it requires the admin user on a password-protected device. The auth requirement and data caveats are exactly the behavioral disclosures 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?

The core action and scope are front-loaded in the first sentence, with interpretation and caveats following. It runs to several sentences, and the load-interpretation examples are somewhat illustrative padding, but each sentence still contributes practical context for reading the output.

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?

There is no output schema, so the description carries the burden of describing the return, and it does list the returned shape metrics (crest factor, harmonics, distortion, phase lag) plus the optional raw sample pairs. It stops short of stating framing, ordering, or an example envelope, but it is largely sufficient for correct invocation and interpretation.

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 coverage is 100%, so both parameters are already documented in the schema. The description reinforces the 'single CT input' notion and the pair count (~640) that maps loosely to include_samples, but adds little syntax or format detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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?

The description states a specific verb and resource: 'Capture one AC cycle of raw voltage and current samples... from a single CT input' and enumerates the derived metrics. It sharply distinguishes this from siblings like snapshot by clarifying it is 'a snapshot of everything on that CT, not of one appliance.' An agent can identify what it does without opening the schema.

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?

The description explains what the readings reveal (heater vs motor vs electronics) and tacitly implies when it is useful, but it never explicitly names when to use it versus siblings (snapshot, query, watch). Usage is inferable rather than stated, and no alternatives or exclusions are given.

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