Skip to main content
Glama
Lars-Albinsson

playwright-react-debug-mcp

get_aria_tree

Retrieve the accessibility tree with roles, names, and states to debug screen reader issues in React applications.

Instructions

Get the accessibility tree showing roles, names, and states. Useful for screen reader debugging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxDepthNoMaximum depth to traverse (default: 10)
selectorNoCSS selector for root element (default: body)
Behavior2/5

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

Without annotations, the description carries full responsibility for behavioral disclosure. It only mentions the output contents and use case, but does not explicitly state that this is a read-only operation, mention default traversal depth, or warn about performance on large DOMs.

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 two sentences, front-loaded with the primary action and a clear use case. Every word earns its place.

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 the core purpose and output contents, but with no output schema and no annotations, it leaves ambiguity about the return structure and edge cases (e.g., what happens if selector is invalid). It is adequate but not fully self-sufficient.

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?

The input schema provides complete descriptions for both maxDepth and selector, so the description adds no additional parameter semantics. With 100% schema coverage, the baseline of 3 is appropriate.

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 clearly identifies the tool's function: retrieving the accessibility tree with roles, names, and states. However, it does not explicitly distinguish from sibling tools like get_dom or get_react_tree, so it stops 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a specific use case ('screen reader debugging') but does not mention when to prefer this over alternative tree-getting tools, nor any exclusions. The guidance is implied rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Lars-Albinsson/playwright-react-debug-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server