Skip to main content
Glama

trace_path

Trace screen-reader navigation paths to identify accessibility barriers by modeling step-by-step actions, announcements, and cumulative costs for reaching interactive targets.

Instructions

Trace the exact screen-reader navigation path to a specific interactive target. Returns step-by-step actions a screen-reader user would perform, with modeled announcements, cumulative cost, and the target's role/name at each hop. Read-only — navigates to the URL but does not modify the page.

Use this after analyze_url to understand why a target scored poorly.

For auth-gated or explored targets: Pass statesJson from a prior analyze_url (use includeStates=true). This skips browser launch entirely and traces against the captured state, including any explored states discovered behind auth boundaries. Workflow: analyze_url(includeStates=true, explore=true) → extract result.states → trace_path(statesJson=JSON.stringify(states), target='search').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the page to trace
targetYesTarget to trace to. Can be an exact target ID from an analysis result, or a glob pattern to match target names (e.g., '*search*', 'Submit*'). Case-insensitive.
profileNoAT profile IDgeneric-mobile-web-sr-v0
deviceNoPlaywright device name for emulation (e.g., 'iPhone 14')
waitForSelectorNoCSS selector to wait for before capturing (essential for SPAs)
exploreNoExplore hidden branches (menus, tabs, dialogs) before tracing
timeoutNoPage load timeout in milliseconds
statesJsonNoPre-captured states from a prior analyze_url run. Pass the 'states' array from the JSON output (use includeStates=true on analyze_url to include it). When provided, trace_path skips browser launch and traces against the captured state. Workflow: analyze_url(includeStates=true) → extract result.states → trace_path(statesJson=...).
storageStateNoPath to Playwright storageState JSON for authenticated pages. Use save_auth to create.
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes key behaviors: it's read-only ('Read-only — navigates to the URL but does not modify the page'), explains how it handles auth-gated targets with statesJson, and mentions skipping browser launch. However, it doesn't cover potential rate limits, error conditions, or performance implications, leaving some gaps.

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?

The description is well-structured and front-loaded with the core purpose. Every sentence adds value, such as explaining the return format, read-only nature, usage context, and auth workflow. It could be slightly more concise by integrating some details, but it avoids redundancy and is efficiently organized.

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?

Given the tool's complexity (9 parameters, no output schema, no annotations), the description does a good job of covering essential context: purpose, usage guidelines, behavioral traits, and parameter workflows. However, without an output schema, it doesn't detail the return format (e.g., structure of step-by-step actions), which is a minor gap for a tool that returns detailed data.

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 documents all parameters thoroughly. The description adds some context for statesJson by explaining the workflow with analyze_url, but it doesn't provide significant additional meaning beyond what's in the schema descriptions. This meets the baseline for high schema coverage.

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?

The description explicitly states the tool's purpose: 'Trace the exact screen-reader navigation path to a specific interactive target. Returns step-by-step actions a screen-reader user would perform, with modeled announcements, cumulative cost, and the target's role/name at each hop.' This is a specific verb ('trace') and resource ('screen-reader navigation path'), and it distinguishes from siblings like analyze_url by focusing on navigation tracing rather than general analysis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool: 'Use this after analyze_url to understand *why* a target scored poorly.' It also details a specific workflow for auth-gated targets, naming analyze_url as an alternative/precursor and explaining how to pass statesJson. This clearly defines the context and alternatives.

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/tactual-dev/tactual'

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