Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

performance_get_core_vitals

Measure Core Web Vitals (LCP, FID, CLS) in a browser context using performance observers to diagnose real user loading and interaction issues.

Instructions

Measure Core Web Vitals (LCP, FID, CLS) using browser performance observers

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": {
      "contextId": "<contextId>"
    },
    "name": "performance_get_core_vitals"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoHow long to wait for measurements (milliseconds)
contextIdYesBrowser context ID from browser_launch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/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 behavioral burden. It mentions the mechanism ('browser performance observers') but never states that this is a non-mutating observation, that it blocks up to the timeout waiting for measurements, what happens when the timeout expires, or whether the page must already be loaded. For a tool with zero annotation coverage, these are significant gaps.

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 tight sentence with no filler, and the resource being measured is front-loaded. It is perhaps over-compressed for what it leaves unsaid, but nothing in it is wasted.

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?

There is no output schema and no annotations, so the description is the only place to explain what comes back (per-metric values? a single object? samples?) and how the timeout affects results. It supplies none of that, leaving the agent unable to anticipate the return shape or failure behavior for a two-parameter measurement tool.

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%, with both contextId and timeout documented in the schema itself. The description adds no meaning beyond that, so the baseline 3 applies when the schema does the heavy lifting.

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 (measure) and resource (Core Web Vitals) and even enumerates the metrics (LCP, FID, CLS), so the purpose is unambiguous. It does not distinguish itself from the sibling performance_get_metrics, leaving the agent to guess which of the two performance tools to call.

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 explicit when-to-use or when-not-to-use guidance. The presence of a sibling named performance_get_metrics makes the omission material: the agent is given no rule for choosing between a general metrics call and this Core Web Vitals call, and no prerequisites (e.g., a live page in the given context) are stated.

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