Skip to main content
Glama
vito1317

macos-control-mcp

by vito1317

ai_find_element

Locate UI elements by describing them in natural language. Searches the frontmost app's accessibility tree and returns matching elements with exact coordinates for automation.

Instructions

[AI-Optimized] Find a UI element by description in natural language. Searches the accessibility tree of the frontmost app and returns matching elements with their exact coordinates. Use this to locate buttons, text fields, menu items, etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNoProcess ID of the app (omit for frontmost app)
descriptionYesNatural language description of the element to find (e.g., "the Save button", "search text field", "close button")

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

The description discloses meaningful behavior: it searches the accessibility tree of the frontmost app and returns elements with exact coordinates, implying a read-only operation. With no annotations provided, though, it leaves gaps around failure behavior, multiple-match handling, accessibility permissions, and what happens if no element is found.

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?

The description is three sentences and front-loaded with the core action and return value. The '[AI-Optimized]' prefix adds little and the final sentence partly restates the opening, but the overall length is appropriate and readable.

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?

Core usage is covered: what to pass, what the tool searches, and what it returns. Since there is no output schema and no annotations, the description could be more complete about the result shape, matching behavior for multiple elements, and error cases, though the tool is relatively simple.

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 the baseline applies. The description's mention of 'natural language' and 'frontmost app' mostly echoes the existing schema descriptions rather than adding new meaning beyond them.

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 clearly states the action ('Find a UI element by description in natural language'), the resource ('accessibility tree of the frontmost app'), and the result ('returns matching elements with their exact coordinates'). It does not explicitly name a sibling distinction, but the search-by-description behavior separates it from generic tree or point-based accessibility tools.

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?

The phrase 'Use this to locate buttons, text fields, menu items, etc.' gives a concrete context for when to invoke the tool. However, it does not mention alternatives like ai_screen_elements, accessibility_tree, or accessibility_element_at, nor does it state when not to use this tool.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vito1317/macos-control-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server