Skip to main content
Glama

Robot Actions — Remote Device Control

device_elements_in_region

List addressable UI elements (resource-id, text, or content-desc present) whose bounding box intersects the given physical-pixel rectangle. Returns each element with its attributes, bounds, center coords, and ranked locator strategies. Sorted smallest-first so the most specific element comes back first. Use to enumerate the contents of a region (bottom nav, dialog, list section) without parsing the full XML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1YesLeft edge of region (physical pixels)
x2YesRight edge of region (physical pixels)
y1YesTop edge of region (physical pixels)
y2YesBottom edge of region (physical pixels)
udidYesDevice serial number (UDID)
limitNoCap on number of returned elements (default 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description fully discloses key behaviors: it only returns elements whose bounding box intersects the rectangle, it returns attributes, bounds, center coords, and ranked locator strategies, and it sorts smallest-first so the most specific element appears first. This goes well beyond the schema and provides realistic expectations for output ordering and content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences deliver all essential information without padding: the operation, output contents, ordering behavior, and a concrete use case. Every sentence earns its place, and the most actionable information appears first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite lacking an output schema and annotations, the description explains what is returned, how results are sorted, what qualifies as addressable, and when to use the tool. The optional limit parameter's default is documented in the schema, so nothing critical is missing for an agent to invoke this correctly.

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 baseline is 3. The description reinforces that the rectangle is in physical pixels and that elements are selected by bounding-box intersection, but it does not add new per-parameter detail beyond the schema's clear field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description uses a specific verb 'List' and a clearly defined resource: addressable UI elements in a given physical-pixel rectangle. It defines 'addressable' precisely (has resource-id, text, or content-desc) and states the intersection criterion, so an agent knows exactly what the tool returns and can distinguish it from page-source or find-element 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 final sentence gives an explicit use case: 'Use to enumerate the contents of a region (bottom nav, dialog, list section) without parsing the full XML.' This tells an agent when to invoke it, though it does not explicitly name alternatives like device_page_source or ios_elements_in_region.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources