Skip to main content
Glama

get_accessibility_tree

Read-onlyIdempotent

Retrieve the page or element accessibility tree to understand form structures and component roles, names, and values; optionally focus on a specific element.

Instructions

[Agent Browser] Get the accessibility tree for the page or a specific element. Cleaner than DOM for understanding form structures and component purposes. Returns roles, names, values in a YAML-like hierarchical format. Optional selector to focus on a specific element.

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

Input Schema

NameRequiredDescriptionDefault
selectorNo
max_lengthNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavioral context: the return shape is a YAML-like hierarchy of roles, names and values. It does not disclose that output can be truncated when max_length is reached, which is the remaining behavioral gap.

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?

Four short lines, front-loaded with the core action before the rationale and return format. Minimal waste; the closing selector line slightly overlaps with the opening 'or a specific element' phrase but is still functional.

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?

An output schema exists, and the description still helpfully characterizes the return format; annotations cover the safety profile for a simple two-parameter read tool. The missing piece is any mention of max_length truncation behavior, which matters for an agent deciding whether to narrow scope with a selector.

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 0%, so the description must carry the load. It explains 'selector' as an optional focus on a specific element, but never mentions 'max_length' (default 8000), which silently controls truncation of the returned tree — half the parameters remain semantically unexplained.

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?

Uses a specific verb and resource: 'Get the accessibility tree for the page or a specific element.' The clause 'Cleaner than DOM for understanding form structures' implicitly distinguishes it from DOM/markdown-based siblings, so an agent can see why it would pick this over a raw DOM dump, though no sibling is named explicitly.

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?

It signals the intended use case ('understanding form structures and component purposes'), which is real guidance, but there is no explicit statement of when not to use it and no named alternative to route to. Usage is implied rather than prescribed.

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