Skip to main content
Glama

performance_metrics

Measure page load speed and weight for a Chrome tab, including TTFB, FCP, load timing, request count/bytes, DOM size, JS heap, and script/layout work to diagnose performance issues.

Instructions

Page speed and weight: time to first byte, first contentful paint, DOMContentLoaded, load, request count/bytes, DOM size, JS heap, script/layout work.

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": "performance_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab ID from tabs_list. Omit for the active tab.
profileNoChrome profile: folder ("Profile 3"), nickname, or unique display name. Omit to use the current profile.

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 provided, so the description carries the full disclosure burden, and it only lists metrics. It does not confirm this is a non-mutating read, does not say whether the tab must be loaded/foregrounded, does not address behavior for an invalid tabId, and does not state whether metrics are a fresh measurement or cached snapshot. The enumeration is useful, but it is output content rather than behavioral context.

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 compact sentence, front-loaded with the resource category ('Page speed and weight') followed by the metric list. Nothing is padded, though the fragment structure means the action is never explicitly stated.

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 output schema, the metric enumeration does real work in telling the agent what comes back, which is a meaningful compensation. However, for a browser-instrumentation read tool with zero annotations, it omits the operational context an agent needs — load-state prerequisites, missing-tab behavior, and confirmation that calling it has no side effects.

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 tabId ('Tab ID from tabs_list. Omit for the active tab.') and profile fully documented in the schema. The description says nothing about either parameter, so the baseline 3 applies — the schema does all the work here.

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 resource — page speed and weight metrics for a page — and enumerates the exact measurements (TTFB, FCP, DOMContentLoaded, load, request count/bytes, DOM size, JS heap, script/layout work). That is enough to distinguish it from neighbors like network_requests (per-request detail) and console_logs (logging). It stops short of a verb (no 'returns'/'measures'), so the action is inferred rather than stated.

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 guidance, no mention of prerequisites (e.g., the page must have finished loading for load/FCP values to exist), and no routing to alternatives when per-request detail is wanted. The agent must infer from the metric list alone when this tool is the right pick.

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