Skip to main content
Glama

Drive Display Start

drive_display_start
Destructive

Drive a Meshtastic device UI through input steps and capture a mirrored screen after each, returning a job ID to poll for results.

Instructions

Drive the device UI with input steps and capture the mirrored screen after each.

One connection covers the whole walkthrough. Returns a job_id at once; poll drive_display_poll. Each step reports changed_px against the previous snapshot; 0 means the UI ignored the input or it was a no-op.

These are real key presses: Enter (SELECT, SELECT_LONG) in a focused MUI text field sends the message on the mesh, and CANCEL turns a BaseUI screen off when no menu is open. The PNGs show mesh-sourced text. Every input: docs/display-mirror.md.

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": {
      "steps": "<steps>"
    },
    "name": "drive_display_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoSerial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device.
wakeNoOne event pressed first, as in `capture_display`.
scaleNoEnlarges a small panel, as in `capture_display`.
stepsYesAt most 32 `{"event", "kb_char"?, "touch_x"?, "touch_y"?, "label"?}` with `send_input_event` names or codes: a tap is `USER_PRESS` with coordinates, typing is any code with `kb_char`.
out_dirNoWhere the PNGs go, inside `MESHTASTIC_MCP_CAPTURE_DIR`; omit for a per-job directory.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, openWorldHint=true and non-idempotent, and the description reinforces rather than contradicts them: 'These are real key presses' with concrete consequences (message sent on mesh, screen turned off). It also discloses the single-connection-per-walkthrough model, the changed_px=0 interpretation, and that the PNGs contain mesh-sourced text. It does not cover failure handling, timeouts, or whether a partially completed job persists.

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?

Front-loaded with the purpose and the async contract before the caveats, and nearly every sentence carries actionable information. A couple of lines are telegraphic ('Every input: docs/display-mirror.md.', 'The PNGs show mesh-sourced text'), which cost a little clarity but no real bloat.

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 destructive, open-world, job-based tool with five parameters and an output schema, this is close to sufficient: it explains the polling handoff, the per-step diff signal, and the two highest-risk inputs. Gaps are operational rather than structural - no guidance on job failure, step limit enforcement, or choosing capture_display instead when only one snapshot is needed.

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 earns a bump by giving runtime meaning to the most important parameter, the step events (a tap is USER_PRESS with coordinates, typing carries kb_char, Enter/SELECT_LONG submits a message in a focused MUI field, CANCEL closes a BaseUI screen). It adds nothing beyond the schema for port, scale, wake or out_dir, which the schema already documents by cross-reference to capture_display.

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 and resource ('Drive the device UI with input steps') plus the observable outcome ('capture the mirrored screen after each'), which is clearly distinct from plain capture_display or capture_screen siblings. An agent can tell this is a scripted input walkthrough with per-step screenshots 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 Guidelines4/5

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

Gives the key operational rule for the async model: a job_id is returned immediately and drive_display_poll must be polled, which is the main alternative an agent would otherwise pick. It also warns that Enter/SELECT sends a real mesh message and CANCEL powers off a BaseUI screen, i.e. real side effects. It stops short of explicit when-not guidance (e.g. 'use capture_display for a single screenshot') and says nothing about aborting a running job.

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