Skip to main content
Glama

measure

Computes statistics, values at x, -3 dB bandwidth, THD harmonics, and edge timing from a finished circuit simulation run for probe-based analysis.

Instructions

Measure on a finished simulate() run. what: stats (min/max/mean/rms) | at (value at x) | bandwidth (-3 dB of an AC probe; ref=first|peak) | harmonics (THD of a transient probe at fundamental f0 over the last periods periods) | edge (10-90 % time, overshoot). interp: "linear" (default, how Proteus draws traces) or "hold" (step between solver samples; use for pulse edges and digital-like signals).

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

Input Schema

NameRequiredDescriptionDefault
xNo
f0No
refNofirst
nameYes
whatYes
afterNo
nharmNo
probeYes
interpNolinear
periodsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the key prerequisite (a finished simulate() run) and what the interp modes mean for trace rendering. It says nothing about behavior when the run is missing, units returned, or whether any state is modified.

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?

Dense but front-loaded: the prerequisite comes first, then a pipe-delimited enumeration that maps modes to quantities, then interpolation semantics. The telegraphic style is efficient but slightly cryptic for the non-obvious parameters.

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

Completeness3/5

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

For a 10-parameter, annotation-free tool, the description covers the measurement semantics reasonably well and an output schema exists to explain return values. However, it omits meaning for probe, name, after, and nharm, and gives no failure-mode or prerequisite-enforcement context.

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 0% across 10 parameters, so the description must compensate; it explains what, x (via 'value at x'), f0, ref (first|peak), periods, and interp. Four parameters — name, probe, after, and nharm — receive no explanation anywhere, leaving a substantial gap.

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 (measure) on a specific resource (a finished simulate() run) and enumerates the five measurement modes (stats, at, bandwidth, harmonics, edge) with their computed quantities. It also implicitly distinguishes itself from the sibling simulate tool by requiring a completed run rather than producing one.

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?

Gives clear mode-selection context: bandwidth for an AC probe, harmonics for a transient probe at f0 over `periods`, edge for rise/overshoot, and interp='hold' for pulse edges and digital-like signals. It lacks explicit when-not guidance or a direct pointer to siblings like sweep or simulate for producing the run.

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