Skip to main content
Glama

cua_element_action

Perform semantic Accessibility or UI Automation actions such as press, focus, or set_value on elements by reference or query, avoiding pixel-based guessing.

Instructions

Invoke a direct semantic Accessibility / UI Automation action (press, confirm, focus, set_value, show_menu, raise) on an element by ref or query without pixel guessing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cua_element_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
roleNo
queryNo
valueNoValue to write when action='set_value'.
actionNopress
app_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that actions are semantic and lists the action names, but it does not describe side effects for press/confirm/set_value, focus/raise behavior, required permissions, app-state prerequisites, or failure/return behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no wasted wording. The parenthetical action list is compact and directly useful, and the key constraint ('without pixel guessing') is placed clearly at the end.

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

Completeness2/5

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

This is a six-parameter UI automation tool with no annotations, no output schema, and very low schema description coverage. The one-sentence description does not cover prerequisites, side effects, parameter relationships, error behavior, or what the caller should expect after a successful action, so it is not complete enough for the tool's complexity.

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

Parameters2/5

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

Schema coverage is only 17%, so the description should compensate but largely does not. It clarifies that an element may be identified by ref or query and enumerates action values, but it leaves role, app_name, value semantics beyond set_value, ref-vs-query precedence, and role filtering unexplained.

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 specific verb and resource: invoking a semantic Accessibility/UI Automation action on an element by ref or query. It lists the available action types and distinguishes the approach from coordinate-based pixel guessing, though it does not name sibling alternatives like cua_mouse or cua_find_elements.

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

Usage Guidelines3/5

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

Usage is implied: use this when a semantic element reference or query is available instead of pixel-based input. However, the description gives no explicit when-not conditions, prerequisites, or named alternatives, leaving the agent to infer the selection criteria.

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