Skip to main content
Glama

safari_accessibility_snapshot

Retrieve the accessibility tree of a webpage to audit roles, ARIA labels, focusable elements, and form states. Essential for a11y auditing.

Instructions

Get the accessibility tree of the page (roles, ARIA labels, focusable elements, form states). Essential for a11y auditing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorNoCSS selector for subtree (default: full page)
maxDepthNoMax tree depth (default: 5)
Behavior3/5

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

No annotations provided, so description carries full burden. It implies read-only operation ('get the accessibility tree') but does not explicitly state absence of side effects, performance impact, or required page state. Adequate but not thorough.

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 sentences, no redundant words, front-loaded with action and output, followed by purpose. Every sentence adds value.

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?

No output schema, but description lists what is returned. Parameters are optional with defaults. Could mention read-only nature explicitly, but overall sufficient for a simple getter tool.

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% with detailed parameter descriptions (selector for subtree, maxDepth for tree depth). The tool description itself adds no new parameter semantics beyond mentioning 'accessibility tree'. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it gets the accessibility tree with specific components (roles, ARIA labels, focusable elements, form states) and identifies it as essential for a11y auditing. This distinguishes it from sibling tools like safari_snapshot (likely visual/DOM snapshot) and safari_get_element.

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?

Implied usage context (a11y auditing) but no explicit when-to-use or comparison with sibling tools like safari_analyze_page or safari_get_element. Lacks guidance on when not to use this tool.

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/achiya-automation/safari-mcp'

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