Skip to main content
Glama

performance.metrics

Read-only

Retrieve runtime performance counters—heap, DOM nodes, listeners, layout and script durations—for the active or specified browser page to diagnose slowdowns.

Instructions

Runtime performance counters: heap, nodes, listeners, layout and script durations.

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
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered and the description only needs to add context. It does add value by enumerating the specific counters exposed, which is the only return-value information available given the missing output schema. It says nothing about whether the call is instantaneous, whether counters are cumulative or snapshot, or how the auto-launch behavior affects 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?

A single front-loaded clause with no filler. It is efficient, though the fragmentary style (no verb, no sentence) sacrifices a little clarity for brevity.

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?

The description plus fully documented parameters gives enough to make the call correctly, and the metric list substitutes for the absent output schema. It remains thin on what the returned values actually look like (units, per-metric shape) and on the implications of omitting browser_id, which the schema notes will auto-launch a browser.

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 both target_id and browser_id are already documented with their handle formats and omission semantics. The description adds no additional parameter meaning, which is the expected baseline when the schema carries the full load.

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?

The description names a specific resource ('Runtime performance counters') and enumerates what it covers (heap, nodes, listeners, layout, script durations), which distinguishes it from performance.processes. However, it is a bare noun phrase with no verb, so an agent must infer that the tool reads/collects these counters rather than resets or configures them.

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 guidance on when to use this tool, when not to, or how it relates to alternatives such as performance.processes or cpu.throttle. The agent is left to infer the use case entirely from the metric list.

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

Deploy Server

Other Tools