Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Get the element at a point

get_ui_element_at
Read-only

Identify the UI element at any screen coordinate across apps, revealing what a click at that point would target.

Instructions

Get the element at a point of the screen, in whichever app shows it there: what a click there would reach.

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "get_ui_element_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesAcross, in points from the left of the main display.
yYesDown, in points from the top of the main display.

Output Schema

NameRequiredDescriptionDefault
elementYesThe element. Null when there's none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.2

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description's real contribution is that the lookup spans 'whichever app shows it there', i.e. cross-app hit testing rather than a focused-window query. It says nothing about what is returned when no element occupies the point, or about permission failures, which are the behaviors an agent most needs to anticipate.

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 sentence with the purpose front-loaded and no filler. The colon clause 'what a click there would reach' is slightly awkward phrasing but it is the sentence that makes the tool's intent land, so it earns its place.

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 read-only lookup with a full output schema, the description covers the essential question of what the call means. Only the edge-case behavior (nothing at that point) is left out, which is a minor gap given the output schema documents the return shape.

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 100% and both parameters already document the units and origin ('points from the left/top of the main display'), so the description has nothing to add and adds nothing. Baseline 3 applies when the schema carries the parameter semantics.

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 concrete verb and resource ('Get the element at a point of the screen') and adds the hit-test framing 'what a click there would reach', which separates it from get_focused_ui_element and get_ui_elements. It does not name any sibling, so differentiation comes from the point-based semantics rather than explicit routing.

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?

The phrase 'what a click there would reach' implies the use case: inspecting a screen coordinate before deciding whether to click. However, it never states when to prefer get_ui_elements or get_focused_ui_element, nor any prerequisites such as accessibility permission being granted, so guidance remains implied.

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