Skip to main content
Glama

browser_trace_start

Start a Chrome DevTools CDP performance trace on a target browser session to measure Core Web Vitals, Long Tasks, TBT, and main-thread breakdown, with optional reload and auto-stop insights.

Instructions

Start a Chrome DevTools CDP performance trace on the target session to measure Core Web Vitals, Long Tasks, TBT, and main-thread breakdown.

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

Input Schema

NameRequiredDescriptionDefault
reloadNoClear state via about:blank and reload the current URL once tracing begins (default: true).
autoStopNoAutomatically stop tracing after waitAfterLoadMs and return the parsed insights (default: true).
filePathNoOptional path to save raw Chrome DevTools trace data (.json or .json.gz) when autoStop=true.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).
ignoreCacheNoDisable HTTP cache during reload when reload=true (default: false).
waitAfterLoadMsNoMilliseconds to wait after load/start before auto-stopping trace (default: 1500).
includeScreenshotsNoInclude DevTools timeline screenshots in trace categories (default: false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/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 burden, yet it discloses almost no behavioral traits. It does not say the trace is stateful and must be stopped, that reload clears page state via about:blank, that filePath writes artifacts to disk, or whether concurrent traces are allowed — mutation and side-effect profile are left opaque.

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?

A single front-loaded sentence with the action first and the measured metrics after — no filler, no repetition of schema content. It is appropriately sized for an initiating call.

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?

All seven parameters are optional and fully documented in the schema, and there is no output schema to explain, so the bar is moderate. However, for a stateful tracing tool the missing lifecycle story (start → stop → insight) and the disk-write implication of filePath leave the agent without key operating context.

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 coverage is 100%, so every one of the seven optional parameters already has a description, which sets the baseline at 3. The description adds only that tracing runs against a 'target session' (loosely tying to sessionId); it adds no meaning about reload, waitAfterLoadMs, or ignoreCache beyond 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?

States a specific verb ('Start') and a specific resource ('Chrome DevTools CDP performance trace'), plus the metrics it targets (Core Web Vitals, Long Tasks, TBT, main-thread breakdown). An agent can tell this initiates tracing rather than reading results or stopping, though it never names browser_trace_stop or browser_trace_insight explicitly.

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?

No when-to-use or when-not guidance is given: nothing distinguishes this from browser_performance_metrics, browser_performance_score, or browser_audit for measurement tasks. There is also no mention that with autoStop=false the agent must call browser_trace_stop, which is a decisive routing decision left entirely to inference.

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