Skip to main content
Glama
vola-trebla

playwright-trace-decoder-mcp

by vola-trebla

correlate_dom_and_network

Identify which network response caused a DOM change by correlating HAR log and DOM snapshots within ±100ms. Diagnose race conditions and async rendering bugs.

Instructions

Joins the HAR network log and DOM snapshots into an explicit causal chain. For each action where a network response completed and the DOM mutated within ±100ms, returns the triggering request URL, response status, body snippet, and the exact DOM nodes that appeared or disappeared. Background polling and analytics pixels are filtered out. Use to diagnose race conditions and async rendering bugs — removes hallucination from the question 'did this fetch cause this DOM change?'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trace_pathYesAbsolute path to trace.zip, or a URL (https://) to download it from
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses important behaviors: filtering out 'background polling and analytics pixels,' using a ±100ms timing window, and returning body snippets. It does not mention error handling or edge cases, but the key behavioral traits are covered.

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?

Three sentences, each earning its place: first states the core action and return value, second describes filtering, third gives the use case and benefit. Front-loaded with the main purpose, no redundancy, appropriately sized for the complexity.

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

Completeness5/5

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

Despite having no output schema, the description explicitly lists the return fields (request URL, status, body snippet, DOM nodes). It also provides timing details, filtering criteria, and a concrete use case. With a single required parameter and no additional configuration, this is fully complete.

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 schema covers the only parameter (trace_path) at 100% coverage, so the baseline is 3. The description does not add any additional meaning about how to use the parameter or its format beyond what the schema already states. This is acceptable because there is nothing missing.

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 uses a specific verb ('Joins') with a clear resource ('HAR network log and DOM snapshots') and states the output (triggering request URL, response status, body snippet, DOM nodes). It explicitly distinguishes this from sibling tools by focusing on building an 'explicit causal chain' rather than just listing events.

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

Usage Guidelines4/5

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

The description provides clear when-to-use guidance: 'Use to diagnose race conditions and async rendering bugs.' It also explains the value in removing hallucination from causal questions. It does not explicitly name alternatives or exclusion cases, but the usage context is strong.

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/vola-trebla/playwright-trace-decoder-mcp'

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