Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Perform an element's action

perform_ui_action
Destructive

Triggers a specific action on a macOS UI element by ID, letting assistants open menus, step sliders, confirm, cancel, or pick from UI elements discovered by inspection tools.

Instructions

Ask an element to do one of its actions, as its actions field lists them.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe element's id, from get_ui_elements, find_ui_elements or another tool of these that returned it.
actionYesOne of the element's actions: 'AXShowMenu' opens its menu, 'AXIncrement' and 'AXDecrement' step a slider or a stepper, 'AXConfirm', 'AXCancel', 'AXPick'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.2

TDQS

B3.4/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. The description adds only a hint of behavior (AXShowMenu opens a menu, AXIncrement/Decrement step a control) via the parameter text, but never warns about irreversible effects, state changes, or that the tool may block on transient UI, which matters for a destructive, non-idempotent tool.

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?

A single short sentence with no filler, and the key constraint (the element's own actions list) is stated up front. It is arguably too terse for a destructive operation, but nothing is wasted.

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

Completeness3/5

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

With an output schema present and full parameter coverage the return-value burden is removed, but for a destructive, non-idempotent, open-world UI mutation the description says nothing about consequences, reversibility, or what happens if the action is unavailable on the element.

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 description coverage is 100%, so both parameters and the known action names are already documented in the schema. The description's contribution is limited to reiterating that the action string must come from the element's own actions field, which largely duplicates the schema rather than adding new meaning.

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 action: it makes an element execute one of the accessibility actions listed in its own 'actions' field, naming the field as the source of valid values. That is more precise than a generic 'interact with element', but it offers no contrast with close siblings such as click_ui_element or press_ui_element, which an agent must choose between.

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?

Implied guidance is present: the caller must first read the element's 'actions' list (via get_ui_elements/find_ui_elements) and pick one of those values. There is no explicit statement of when to prefer this over click_ui_element/press_ui_element, nor any prerequisite or when-not guidance.

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