Skip to main content
Glama

browser_performance_metrics

Capture live Chromium DevTools performance metrics—JS heap, DOM nodes, layout/recalc counts, script duration, and navigation/paint timings—without reloading.

Instructions

Capture live Chromium DevTools performance metrics (JS heap usage, DOM nodes, layout/recalc counts, script duration) and current navigation/paint timings without reloading.

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_performance_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A3.5/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 behavioral burden. "Live" and "without reloading" signal a non-destructive snapshot, which is helpful, but it does not say whether a target page must already be loaded, whether it auto-launches a browser (only the schema mentions this), or anything about return shape or cost.

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?

One dense sentence with the key differentiator ("without reloading") placed at the end for emphasis, and the metric list front-loaded. Nothing is redundant, though the parenthetical list makes the sentence long.

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?

For a zero-required-parameter read-only snapshot tool, the description names the categories of data returned, which partially compensates for the absent output schema. It stops short of describing the response structure or any caveats about metrics unavailable before load.

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 single sessionId parameter is already fully documented in the schema. The description adds no information about it; baseline 3 applies since the structured field does the work.

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?

Uses a specific verb ("Capture") and resource ("live Chromium DevTools performance metrics") and enumerates the metrics returned (JS heap, DOM nodes, layout/recalc counts, script duration) plus navigation/paint timings. It does not distinguish itself from browser_performance_score or the trace tools, so an agent still has to infer the boundary.

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 "without reloading" implies this is for inspecting the current page state, which is useful implied usage. But there is no explicit when-to-use or when-not-to-use guidance versus browser_performance_score or browser_trace_start/stop, and no prerequisites (e.g., that a page must be loaded) are stated.

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