Skip to main content
Glama

iph_find

Locate on-screen iPhone UI elements by label, text, regex, role, ID, value, or nested selector. Returns matches or lists candidates when multiple elements match.

Instructions

Find elements on screen that match a selector.

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": {
      "selector": "<selector>"
    },
    "name": "iph_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
selectorYesSelector: a plain string is an exact label (the name part of a "name, value" row also counts). Or combine terms: label="exact", label~="contains", label/regex/, role=button, id=<identifier or element id>, value~=…, within="<selector>", index=N. An object works too: {label, label_contains, label_regex, value, value_contains, role, id, id_contains, id_regex, within, index}. More than one match is an error that lists the candidates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/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 behavioral burden, yet it says nothing about the return value, whether the tool is read-only, whether it waits/polls for elements to appear, or what happens on zero matches. The important multiple-match error behavior is disclosed only in the schema, not the description.

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 front-loaded sentence with no filler, which is efficient. The brevity, however, comes at the cost of the missing behavioral detail rather than being a model of tight specification.

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?

With no annotations and no output schema, the agent needs the description to explain what a match returns and how failures surface; it does neither. For a selector-based query tool with a nontrivial matching language and an undocumented 'all' flag, the description is substantially incomplete.

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?

The schema documents the selector in rich detail (label/value/role/id/within/index syntax, string or object forms), but the description adds nothing to that. The second parameter, 'all', is undocumented in both the schema and the description, so the description fails to compensate for the 50% coverage gap.

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 specific verb and resource ('Find elements on screen') plus the matching condition ('match a selector'), which is clearer than a bare restatement. It offers no differentiation from siblings such as iph_read, iph_button, or iph_tap, so an agent cannot tell from the description alone how element location relates to reading or interacting with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of the natural follow-up action (e.g., locating an element before iph_tap or iph_type). The agent must infer from the tool name that this is a lookup step rather than an interaction step.

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