Skip to main content
Glama

PA Meter Measure

pa_measure
DestructiveIdempotent

Read the current RF power the meter sees for a selected band without driving a Meshtastic device, returning calibrated min/mean/max dBm across samples with attenuator correction.

Instructions

Read the power the meter sees at band now, with no Meshtastic device driven.

Selects the band's calibration curve and returns min/mean/max dBm over samples readings, corrected for attenuator_db. For a node PA sweep use pa_sweep. See docs/power-meter.md.

Returns {band, requested_center_mhz, meter_cal_mhz, kind, attenuator_db, samples, min_dbm, mean_dbm, max_dbm}.

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": {
      "band": "<band>"
    },
    "name": "pa_measure"
  }
}

Input Schema

NameRequiredDescriptionDefault
bandYesA region name (`"US"`, `"EU_868"`) or MHz (`"868"`), snapped to the nearest calibration point.
peakNoRead peak power instead of average.
samplesNoHow many readings to take.
interval_sNoSeconds between readings.
meter_portNoThe meter's serial port; omit to find it by USB VID/PID.
attenuator_dbNoThe pad before the meter, added to every reading; pass `attenuator_db=0` for the raw noise floor.

Output Schema

NameRequiredDescriptionDefault
bandYes
kindYes
max_dbmYes
min_dbmYes
samplesYes
mean_dbmYes
attenuator_dbYes
meter_cal_mhzYesthe calibration point the band snapped to
requested_center_mhzYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Adds useful behavior beyond the fields: it selects the band's calibration curve, applies the attenuator correction, and clarifies that no radio is driven. However, annotations declare readOnlyHint=false and destructiveHint=true, and the definition never explains the source of that risk (e.g., exclusive claim of the meter's serial port, or interference with a live meter session) — an agent reading "Read...with no device driven" would not anticipate a destructive-flagged call. Minor tension with the peak parameter is also unexplained: the description promises min/mean/max but says nothing about the peak read mode.

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?

Three short sentences, front-loaded with the core action and scope, then the alternative, then the return shape — no filler. The return-field enumeration is somewhat redundant given an output schema exists, which costs a point.

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 6-parameter hardware tool with a full schema and an output schema, the definition covers purpose, the sibling alternative, the calibration/attenuation model, and the result shape. Remaining gaps are hardware-centric (port discovery, whether the meter is locked during the read, why the call is flagged destructive) rather than functional.

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 description coverage is 100%, so baseline is 3; the description reinforces `band` calibration selection and the `attenuator_db` correction but adds no syntax or format detail beyond the schema. The `peak` parameter is omitted entirely from the narrative, leaving a mismatch with the stated min/mean/max return.

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 concrete verb+resource ("Read the power the meter sees at `band`") and immediately scopes it with "with no Meshtastic device driven", which differentiates it from the device-driving `pa_sweep` sibling by name. An agent can tell what this does and what it is not without inspecting 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 Guidelines4/5

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

Explicitly routes the device-sweep case to `pa_sweep` and states the operative condition (no Meshtastic device driven), which is real when/when-not guidance. It does not mention the meter's own status/introspection path (`pa_meter_status`) or any exclusion such as whether a node session must be idle, so the alternative coverage is good but not complete.

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