Skip to main content
Glama

Press meter keys

press

Simulate front-panel key presses on a Fluke 287/289 meter in sequence and return the display state after each key, which fields changed, and any warnings.

Instructions

Simulate front-panel keys in order (soft keys F1-F4 under the display, the arrows, HOLD, MINMAX, RANGE, INFO, BACKLIGHT, ONOFF) and return the display state after each key, which state fields changed ("changed": [] = nothing visible, ["view"] = a result page or viewer opened or closed, null = cannot tell; autorange range moves are not counted) and a "note" when the effect is invisible or absent. Menus, panels, help pages and the lead-alert warning overlay the reading and are invisible here, and a refused menu choice silently leaves the menu open: after a soft key that changed nothing, ask the user what the screen shows before the next soft key (a blind F4 can open Setup). "warnings": KEY_IGNORED, LEAD_ALERT_POSSIBLE (current function, leads in the wrong jacks), MENU_STATE_UNKNOWN. Key map per dial position: https://github.com/FrostFlops/open289/blob/main/docs/UI.md. held: a long press (RANGE held = back to autorange). ONOFF switches the meter OFF for good (it cannot be switched on remotely, and the adapter goes to sleep with it): it is refused unless allow_off is true; the meter then asks for confirmation (F1 confirms, F4 cancels).

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": {
      "keys": "<keys>"
    },
    "name": "press"
  }
}

Input Schema

NameRequiredDescriptionDefault
heldNolong press (HELD_DOWN) for every key
keysYeskeys, pressed in order
max_wallNotime limit for the whole call in seconds (default 120); past it the command is stopped and TIMEOUT is returned
allow_offNopermit ONOFF, which switches the meter off; only when the user asked for it

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?

With no annotations, the description carries the full burden and does: it discloses that menus/panels/help/lead-alert overlays are invisible to this tool, that a refused menu choice silently leaves the menu open, that autorange moves are not counted as changes, that ONOFF permanently powers off the meter and may not be reversed remotely (the adapter sleeps) and is refused unless allow_off is true, plus the F1-confirm/F4-cancel confirmation flow and the warning codes returned.

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 opening sentence front-loads the core action and return shape, and nearly every subsequent clause (warnings, key map link, held, ONOFF safety) adds unique information. It is nonetheless a dense, paragraph-length block where bulleted structure would make the conditional rules easier to parse.

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

Completeness5/5

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

There is no output schema, and the description fully specifies the return shape: display state after each key, the changed field semantics including the null and empty-array cases, an optional note, and the warning list. Combined with the safety rules for ONOFF, an agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes beyond by explaining that keys execute in order, that held means a long press (with the RANGE-held-means-autorange example), and by spelling out the full consequences of allow_off rather than restating the schema text. max_wall is left entirely to the schema, but it is already well documented there.

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 states a concrete verb and resource ("Simulate front-panel keys in order") and enumerates the exact physical keys covered, so an agent knows precisely what domain this tool acts in. It never names a sibling tool or explicitly contrasts itself with read/status/live, so differentiation is implicit rather than stated.

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 gives strong situational guidance: after a soft key that changed nothing, stop and ask the user what the screen shows before pressing another soft key, and note that blind F4 can open Setup. It also states the ONOFF precondition (allow_off) and that it should only be used when the user asked. What is missing is any explicit statement of when to prefer this over sibling read/status tools.

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