Skip to main content
Glama

list_elements

Read-only

Inspect the selected device via accessibility or OCR to get a snapshot ID and element references for later input.

Instructions

Inspect the selected device using accessibility or screen text recognition. The response provides a snapshot ID and element references for later input.

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

Input Schema

NameRequiredDescriptionDefault
sourceNo
device_idNo
timeout_msNo
max_elementsNo
include_invisibleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is largely covered. The description adds useful context by disclosing the return payload (snapshot ID and element references, valuable since no output schema exists), but says nothing about snapshot lifetime, failure modes when OCR finds nothing, or how source selection changes behavior.

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?

Two short sentences, front-loaded with the action and followed by the return shape. Nothing is redundant and every clause carries information.

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?

The description covers purpose and return values for a parameterless-required, open-world introspection tool, which is the core need. It falls short on the four non-enum parameters and on behavioral edge cases such as empty results or invalidated snapshots, which matter for a tool with 5 options and no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, so the description must compensate. The phrase 'using accessibility or screen text recognition' meaningfully explains the source enum values, which is the parameter most likely to be misused, but device_id, timeout_ms, max_elements, and include_invisible receive no clarification beyond their names.

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 — inspecting the selected device's UI via accessibility or screen-text recognition — and clarifies the output is a snapshot ID plus element references. It is clear and distinct from screenshot or app-launch siblings, but does not explicitly contrast itself with any named alternative.

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: 'element references for later input' suggests this is the discovery step before fill/tap/scroll actions, but there is no explicit statement of when to call this versus alternatives such as save_screenshot or get_foreground_app. An agent must infer the workflow position.

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