Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Press an element

press_ui_element
Destructive

Activates a macOS UI element by ID—button, link, checkbox, tab, or menu item—through Accessibility, without moving the pointer or bringing its window to the front.

Instructions

Use an element as a click would: press a button, follow a link, toggle a checkbox, choose a tab or a menu item. It's done through Accessibility: the pointer doesn't move, and the window needn't be in front. What it does is the app's: a button may send, delete or buy.

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>"
    },
    "name": "press_ui_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe element's id, from get_ui_elements, find_ui_elements or another tool of these that returned it.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.2

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the safety profile is largely covered. The description adds genuine value by explaining the accessibility mechanism (no pointer movement, no foreground requirement) and by warning that effects are app-defined ('a button may send, delete or buy'), reinforcing rather than contradicting the destructive hint.

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 tight sentences, front-loaded with the action and its examples before the mechanism and the risk note. No filler, though the opening 'Use an element as a click would' is slightly indirect phrasing.

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?

For a one-parameter tool with a full output schema, the description covers behavior and risk well; return values need not be explained. The missing piece is explicit guidance on when to press versus click or use perform_ui_action, which matters given the crowded sibling set.

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 100% and the single required 'id' parameter is fully documented in the schema, including where to obtain it (get_ui_elements, find_ui_elements). The description adds nothing about the id or any format constraints, relying entirely on the structured field.

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 with concrete examples: 'press a button, follow a link, toggle a checkbox, choose a tab or menu item.' It also distinguishes itself mechanically ('the pointer doesn't move, and the window needn't be in front'), which implicitly separates it from pointer-moving siblings like click_ui_element, though that sibling is never named.

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 context is implied rather than stated: the accessibility mechanism and the note that the window needn't be in front hint at when this is preferable to a real click. There is no explicit 'use this instead of X when Y' routing, so the agent must infer the choice versus click_ui_element or perform_ui_action.

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