Skip to main content
Glama
computer
by zznabil

Inspect element

ax_element
Read-onlyIdempotent

Read a single UI element by ref to inspect its role, title, full value, bounds, actions, and optionally attributes, children, and parent.

Instructions

Read one element by ref: role, title, value (full), bounds, actions; optionally its attributes, children and parent.

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": {
      "ref": "<ref>"
    },
    "name": "ax_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement ref from ax_tree/ax_find, e.g. "e12".
parentNoInclude parent.
childrenNoInclude children.
attributesNoInclude raw attributes.

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, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds only the "(full)" qualifier on value, which usefully signals untruncated text, but says nothing about output size limits, depth of children, or ref staleness across tree changes.

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?

A single sentence with the core action front-loaded, then return fields, then optional expansions. No filler or redundant phrasing.

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

Completeness4/5

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

With no output schema, enumerating returned fields is exactly the right compensating detail, and the annotation set covers safety. Minor gap: nothing about whether refs expire or how large child/attribute payloads behave.

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 schema already explains ref, parent, children and attributes. The description restates the same optional inclusions and adds no extra meaning, which is the baseline-3 case where structured fields do the work.

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?

"Read one element by ref" gives a specific verb and resource, and the enumeration (role, title, value, bounds, actions) tells the agent exactly what comes back. It implicitly separates the tool from ax_tree/ax_find (which produce refs) without naming them, so sibling differentiation is present but not explicit.

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?

"By ref" plus the schema note that refs come from ax_tree/ax_find implies the prerequisite workflow, but the description itself states no when-to-use condition and never points to alternatives such as ax_element_at for coordinate-based lookup or ax_tree for bulk reads.

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