Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

performance_get_metrics

Collect Core Web Vitals and performance metrics from the current page to diagnose load and rendering bottlenecks.

Instructions

Collect Core Web Vitals and performance metrics from the current page

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

Input Schema

NameRequiredDescriptionDefault
contextIdYesBrowser context ID from browser_launch
includeResourceTimingNoInclude detailed resource timing data

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does not say whether the page must be loaded/navigated first, whether the call waits for metrics to settle, whether it mutates the page or triggers a reload, or what shape of data comes back.

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 with no filler. It is efficiently written, though the brevity reflects under-specification as much as tightness.

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?

For a metrics-collection tool with no annotations and no output schema, the description should say what metrics are returned, whether navigation is required, and how it differs from the core-vitals sibling. None of that is present, leaving the agent to guess.

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% and both parameters (contextId, includeResourceTiming with its default) are documented in the schema, so the baseline of 3 applies. The description adds nothing about how includeResourceTiming changes the result or what contextId must reference beyond the schema's own note.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Collect Core Web Vitals and performance metrics from the current page" states a verb (collect) and resource (metrics), but it overlaps almost exactly with the sibling performance_get_core_vitals, and nothing in the wording tells an agent which of the two to pick. The purpose is understandable in isolation but not disambiguated.

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 when-to-use or when-not-to-use guidance, and no mention of the obvious alternative (performance_get_core_vitals). The agent must infer the split from tool names alone, which the context notes say is not a reliable signal.

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