Skip to main content
Glama
crosspad-mcp-server

crosspad-mcp-server

Official
by CrossPad

crosspad_ui

Idempotent

Drive CrossPad's on-screen UI using snapshot refs to focus, press, rotate, or launch apps, and get a fresh snapshot after each action for reliable next-step control.

Instructions

[ESP HW] Drive the CrossPad's on-screen UI by snapshot refs and, by default, return a fresh snapshot after each action. focus ref=e moves the encoder focus to that group entry, press clicks the encoder, rotate turns it, back is the app's own Back, start_app name opens an app, stop_app closes it and rebuilds the launcher. Every action returns a fresh snapshot by default; use its ui.group refs for the next step, old refs are invalid.

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": {
      "action": "<action>"
    },
    "name": "crosspad_ui"
  }
}

Input Schema

NameRequiredDescriptionDefault
msNopress: encoder button hold (default 80)
refNofocus: a ref from a snapshot's ui.group, e.g. e2
nameNostart_app: app name as listed by crosspad_cdc verb=app action=list
deltaNorotate: detents, non-zero, may be negative
actionYesfocus ref=e<i>; press [ms]; rotate delta; back; start_app name; stop_app
deviceNoDevice id or port; omit when exactly one CrossPad is connected
wait_sNostart_app: wait for the device to confirm (default 3)
includeNoSnapshot sections (default all)
return_snapshotNoTake a fresh crosspad_snapshot after the action (default true)

Output Schema

NameRequiredDescriptionDefault
tsNo
docsNo
hintNo
nextNo
toolNo
deltaNo
errorNo
actionNo
deviceNo
noticeNo
resultNo
detailsNo
outcomeNo
successYes
snapshotNo
to_indexNo
from_indexNo
elicitationNo
confirmationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv11.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, idempotent behavior, so the bar is lower, yet the description still adds real context: every action returns a fresh snapshot by default, refs are invalidated after each action, and stop_app rebuilds the launcher. The only notable omission is any discussion of failure modes (e.g. what happens if a ref is stale or an app fails to start).

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 text is dense and front-loaded: purpose first, then per-action semantics, then the snapshot-chaining rule. The action mapping list is somewhat redundant with the schema enum description, but nothing is filler.

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?

An output schema exists and annotations cover safety, so the description need not explain return values, and it correctly focuses on the one thing an agent must know: the snapshot-ref lifecycle. It is nearly complete for a 9-parameter action-dispatched hardware tool, with only error/recovery behavior left implicit.

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?

With 100% schema description coverage, the schema already documents every parameter including ms, delta, wait_s, include, and return_snapshot. The description partially maps parameters to actions ('focus ref=e<i>', 'start_app name'), but this largely restates the action enum's own description rather than adding new meaning. Baseline 3 is appropriate.

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 opens with a specific verb and resource ('Drive the CrossPad's on-screen UI by snapshot refs') and then enumerates each action (focus, press, rotate, back, start_app, stop_app) with what it does. An agent can distinguish this hardware-UI driver from siblings like crosspad_input or crosspad_apps 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?

It gives clear operational guidance: use ui.group refs from the returned snapshot for the next step and treat old refs as invalid, which is exactly the chaining discipline needed. It does not explicitly say when to prefer this over a sibling such as crosspad_input or crosspad_apps_list, which keeps it below a 5.

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