Skip to main content
Glama
CT-mao

uitree-local

by CT-mao

get_element_tree

Retrieve the current screen's accessibility element tree as JSON to inspect UI structure. Enable the filter option to return a simplified tree for focused analysis.

Instructions

Returns only the accessibility element tree of the current screen as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNoReturn only the simplified tree (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a read-only operation by saying 'Returns,' but does not state permissions, side effects, limitations, or how the filter setting changes behavior beyond what the schema already says.

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?

The description is a single, front-loaded sentence with no wasted words. It communicates the return type and scope immediately.

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?

For a simple one-parameter getter with full schema coverage, the description is adequate but thin. It does not explain the returned JSON shape, the effect of the filter parameter, or how this differs from sibling screen-inspection tools, and there is no output schema to compensate.

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 the single filter parameter is already documented structurally. The description does not add any meaning about the filter beyond the schema, which matches the baseline score for high schema coverage.

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 gives a specific verb and resource: it returns the accessibility element tree of the current screen as JSON. The word 'only' hints that this is narrower than a full screen-state capture, but no sibling tool is named explicitly, so it falls short of full differentiation.

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?

The description explains what the tool returns but not when to use it instead of alternatives like get_screen_state or get_screenshot. There is no explicit when-to-use, when-not-to-use, or prerequisite guidance.

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