Skip to main content
Glama

Start Trace

trace_start

Starts Playwright tracing for the active page context to capture diagnostics and reproducible browser workflows. Use optional page ID and flags for sources, snapshots, or screenshots.

Instructions

Start Playwright tracing for the active page context.

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

Input Schema

NameRequiredDescriptionDefault
pageIdNoPage id. Defaults to the active page.
sourcesNo
snapshotsNo
screenshotsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and provides almost none: it doesn't say whether tracing must be explicitly stopped to produce output, what happens if called twice, whether there is runtime overhead, or where the trace is written. Only the target scope ('active page context') is conveyed.

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?

A single front-loaded sentence with no wasted words, which is appropriate for a simple trigger. The terseness comes at the cost of the missing guidance rather than from filler, so structure is fine but content is thin.

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

Completeness2/5

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

Given four parameters with three undocumented, no annotations, and no output schema, the agent cannot learn what the boolean flags do or how the trace is retrieved. For a lifecycle tool whose value depends on the start/stop pairing, this leaves important behavior unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 25% – only pageId is documented in the schema, while sources, snapshots, and screenshots have no description anywhere. The description adds nothing about these three flags (their defaults, or which capture layers they enable), and its 'active page context' phrasing merely echoes the pageId default already stated in the schema.

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 names a specific verb and resource ('Start Playwright tracing') plus a scope ('active page context'), which is enough to distinguish it from trace_stop. It stops short of explicitly naming that sibling or its pairing, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no statement of when to use tracing, no prerequisite or when-not guidance (e.g., only one trace at a time, must call trace_stop to obtain the trace), and no reference to trace_stop as the counterpart. The only implied usage is that a page context exists.

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