Skip to main content
Glama

observe

Lists the foreground app's accessibility elements with handles and optionally attaches a screenshot, so an agent can inspect the current iOS screen and target controls for interaction.

Instructions

List the foreground app's elements with handles. Optionally attach a screenshot.

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

Input Schema

NameRequiredDescriptionDefault
widthNo
screenshotNo

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 bears the full behavioral burden. It does not say whether the call is read-only (implied but unstated), whether it blocks or waits for UI stability, what a 'handle' is or how it is consumed, or how 'foreground app' is determined. Only the optional-screenshot behavior is disclosed.

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?

Two short sentences, front-loaded with the primary action before the optional extra. Nothing is padded, though 'Optionally attach a screenshot' is terse to the point of underspecifying the width/screenshot relationship.

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 description is the only source of truth, yet it omits return shape (what an element record or handle looks like), the meaning of 'width', and the effect of the screenshot flag on the response. For a foundational observation tool that other tools depend on, this leaves meaningful gaps.

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?

Schema description coverage is 0%, so the description must compensate for both parameters. It covers 'screenshot' loosely ('Optionally attach a screenshot') but says nothing about 'width' (default 402) — presumably the screenshot width, but the agent must guess whether it affects the element listing, the image, or both. One of two parameters is effectively undocumented.

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 states a specific verb and resource: listing the foreground app's UI elements with handles, plus an optional screenshot. It implicitly separates itself from the sibling 'screenshot' tool by framing the screenshot as an attachment to the element listing. It does not, however, name any sibling explicitly to sharpen the distinction.

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 statement of when to use this tool versus alternatives such as 'screenshot', 'app_list', or 'status'. The phrase 'with handles' hints that this precedes interaction tools like tap_text or long_press, but that is inference, not guidance. No prerequisites, no exclusions, no stated alternatives.

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