Skip to main content
Glama

browser_trace_insight

Inspect metrics for a selected performance insight category from the latest recorded trace in a browser session to diagnose Web Vitals, long tasks, main-thread work, layout shifts, and CDP metrics.

Instructions

Inspect detailed metrics for a specific insight category from the most recent recorded trace in the target session.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "insight": "<insight>"
    },
    "name": "browser_trace_insight"
  }
}

Input Schema

NameRequiredDescriptionDefault
insightYesInsight category to inspect from the latest recorded trace.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; 'Inspect' implies a read-only operation but never states it outright. It does add real behavioral context by pinning the data source to the latest recorded trace rather than an arbitrary one, yet it omits what happens when no trace has been recorded and what the response looks like.

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 well-formed sentence with the resource front-loaded and no filler. It is slightly dense, stacking 'specific insight category,' 'most recent recorded trace,' and 'target session' into one clause, but nothing is wasted.

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?

For a two-parameter read tool with no output schema and no annotations, the definition covers the essentials of what is inspected and from where. It falls short on the enum's semantics—nothing explains what WebVitals, LongTasks, MainThreadBreakdown, LayoutShifts, or CdpMetrics each yield—and on the failure mode when no trace exists.

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 both parameters are already documented, including the five-value enum and the session fallback behavior. The description only restates 'insight category' and 'target session' at a high level, adding no syntax or category-specific meaning 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?

The description uses a specific verb ('Inspect') and a precise resource ('detailed metrics for a specific insight category') and scopes it to 'the most recent recorded trace in the target session.' That scope distinguishes it from a generic metrics fetch, but it never names a sibling like browser_performance_metrics or browser_trace_start/stop, so differentiation must be inferred.

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?

The phrase 'most recent recorded trace' implies a prerequisite (a trace must already have been captured), which is useful implicit guidance. However, there is no explicit statement of when to prefer this over browser_performance_metrics or browser_audit, and no when-not guidance such as what to do if no trace exists.

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