Skip to main content
Glama
computer
by zznabil

Press element

element_press
Destructive

Performs an accessibility action on a UI element, defaulting to press; specify alternate actions or a menu item path to operate controls when standard clicking is unavailable.

Instructions

Perform an accessibility action on an element: default "press"; others from ax_element actions (e.g. "showMenu", "increment"). With menu, choose that item path in the menu the action opens. If it returns BackgroundUnavailable, use element_click (coordinate input) instead.

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": "element_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref from ax_tree/ax_find, e.g. "e12".
menuNoMenu item path to choose.
actionNoAction name (default "press").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered structurally. The description adds genuinely useful behavior by naming a specific failure mode (BackgroundUnavailable), but says nothing about what a press may destroy, permission needs, or whether retries are safe.

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 primary action and default, then the menu caveat, then the failure fallback. No filler, though phrasing like "others from ax_element actions" is terse to the point of being slightly cryptic.

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?

All three parameters are documented, and the description compensates for the absence of an output schema by calling out the one return condition an agent must react to. What is missing is minor context on side effects and permissions for a tool marked destructive.

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 baseline is 3, but the description earns more: it clarifies that action defaults to "press" and that valid values come from ax_element actions, and it explains that menu is a path to select within the menu the action opens rather than a standalone selector.

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?

States a specific verb and resource ("Perform an accessibility action on an element"), names the default action ("press") and gives examples of alternatives ("showMenu", "increment"). It also differentiates itself from element_click by characterizing that sibling as coordinate input.

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 a concrete routing rule: when the call returns BackgroundUnavailable, switch to element_click. It also explains when the menu parameter applies (choosing a path in the menu the action opens). It stops short of explicit when-not guidance for the pure-press case.

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