Skip to main content
Glama

browser_performance_score

Measure a page's performance score, Core Web Vitals, and optimization opportunities for the current session page or a target URL to diagnose load and rendering issues.

Instructions

Measure a focused performance score (0-1), Core Web Vitals (FCP, LCP, TBT, CLS, TTFB), and optimization opportunities for the current page or a target URL.

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

Input Schema

NameRequiredDescriptionDefault
urlNoOptional HTTP(S) URL to navigate to and measure. If omitted, measures the session's current page.
modeNo'navigation' reloads/navigates to measure cold load; 'snapshot' inspects current page state.navigation
deviceNoDevice profile to emulate ('mobile' or 'desktop', default: 'mobile').mobile
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).
throttlingNoApply Slow 4G network and 4x CPU throttling during navigation audit on Chromium (default: true).

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?

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return payload shape (score plus named vitals and opportunities), which is helpful, but it omits that the default navigation mode reloads/navigates the page and can disrupt session state, and says nothing about runtime cost, throttling side effects, or whether a session is auto-launched.

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 that enumerates exactly what is measured with no filler. It is dense but readable; the vitals list is worth its length because it describes the return payload and there is no output schema.

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?

With no annotations and no output schema, the description does well to enumerate the returned metrics, but for a tool that by default reloads the page under 4x CPU throttling it should warn about that mutation-like side effect and rough latency. The core purpose is covered; the operational risk is not.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, and the description adds a bit by tying the scope explicitly to 'current page or a target URL', mirroring the optional url/sessionId fallback behavior. It does not explain navigation vs snapshot semantics or device/throttling implications, but those are already fully documented 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?

Specific verb (measure) plus a concrete set of resources (performance score 0-1, Core Web Vitals FCP/LCP/TBT/CLS/TTFB, optimization opportunities) and scope (current page or target URL). It is clear what the tool returns, but it never distinguishes itself from the sibling browser_performance_metrics, so an agent cannot tell from the description alone which of the two to pick.

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?

Usage is only implied by the purpose: an agent can infer 'use this when you want a Lighthouse-style score'. There is no explicit when-to-use vs browser_performance_metrics or browser_audit, no precondition guidance, and no statement that navigation mode reloads the page (that detail lives only in the schema).

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