Skip to main content
Glama

desktop_find

Finds macOS app elements by role, name, text, or value and returns references for targeted actions, including closed menu bar surfaces.

Instructions

Find elements by role / name / text in an app (also closed menus with surface=menubar); returns refs.

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": "desktop_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
nthNo
lastNo
nameNo
roleNo
rootNo
textNo
countNo
exactNo
firstNo
limitNo
valueNo
statesNo
surfaceNowindow
native_idNo
window_idNo
timeout_msNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It implies a read-only lookup and states 'returns refs', but says nothing about permission/accessibility requirements, timeout_ms behavior (default 5000), what happens when nothing matches, or how refs are consumed downstream.

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 dense sentence with the core verb and criteria front-loaded and no filler. The nested parenthetical is slightly awkward to parse but costs little.

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?

For an 18-parameter tool with no annotations and no output schema, this is thin: matching semantics (exact vs fuzzy, value vs states), paging modifiers, and flag interactions are unaddressed. The one piece of return-value info ('returns refs') is present, but the description is far from complete for this 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?

18 parameters at 0% schema description coverage, yet the description only glosses app, role, name, text and the menubar value of surface. The majority of parameters (nth, last, first, count, limit, exact, value, states, native_id, window_id, root, description, timeout_ms) get no meaning from the description at all.

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 names a concrete verb ('Find') and resource ('elements') and lists the matching criteria (role / name / text), plus the app scope. It is clear what the tool does, though it never contrasts itself with siblings like desktop_get or desktop_snapshot that could plausibly return element data too.

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 only implied: the parenthetical '(also closed menus with surface=menubar)' tells the agent one non-obvious case where this tool applies, which is genuinely useful. But there is no when-to-use / when-not-to-use guidance and no named alternative for plain element retrieval.

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