Skip to main content
Glama
omarchy-desktop

omarchy-desktop

by martoast

Press an option opener by ref (read-only, fast)

press_element

Activates a single dropdown, tab, or option opener from a prior read_page ref through its accessibility action so its values can be read next. Skips page snapshots and pointer input.

Instructions

Press ONE option opener from a prior read_page — a size/colour dropdown, a 'Select size' button, a tab — through its own accessibility action, so its values can be read next. Read-only and fast: no before/after page snapshot, no pointer, no coordinate fallback. Refuses links (use click_element), and anything that changes the cart, the order or the account. Returns 'Pressed' or 'Not pressed' with the reason; it does not verify what opened — read_page does.

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": {
      "ref": "<ref>"
    },
    "name": "press_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesA ref like 'e3' from a prior read_page call.
window_addressNo

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?

With no annotations, the description carries the full burden and does so well: read-only, no snapshot, no pointer, no coordinate fallback, explicit refusals, and the exact return contract ('Pressed' or 'Not pressed' with reason). What it doesn't cover is the second parameter (window_address) and multi-window scoping behavior.

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 action and the ref source, then behavior, refusals, and return value in a tight sequence with no filler. It is dense as a single paragraph, but every clause adds information an agent needs.

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 two-parameter, no-output-schema action tool, the description covers intent, safety profile, refusal boundaries, and the return contract, so an agent can invoke it correctly. The one omission is any guidance on window_address, leaving a gap for multi-window use.

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 50%: ref is documented in the schema and the description reinforces its provenance, but window_address is undocumented in both places. The description adds useful context about ref origin but no syntax or format detail beyond the schema.

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 gives a specific verb and resource ('Press ONE option opener from a prior read_page') and names concrete instances — size/colour dropdown, 'Select size' button, tab — so the agent knows exactly which class of element this targets. It also distinguishes itself from click_element and read_page by name and by the ref source.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It states the precondition (a ref from a prior read_page), the purpose of using it (so the option values can be read next), and explicit exclusions: links go to click_element, and anything touching the cart, order or account is refused. That is a full when/when-not/alternative specification.

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