Skip to main content
Glama

performance_trace

Measure page-load performance by capturing first and largest paint, blocking time, layout shift, longest tasks, slowest requests, and a Lighthouse-style score; no page reloads or screenshots.

Instructions

How a page loads: first and largest paint, blocking time, layout shift, the longest tasks and the slowest requests, and a score on Lighthouse's curves without Speed Index. Never reloads the page and takes no screenshots.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work here: it states the tool never reloads the page and takes no screenshots, which tells an agent the measurement is non-destructive to page state and produces no visual artifacts. What it omits is cost/coverage context a trace implies (likely slow, needs an already-open page, may sample only a window). The disclosed non-effects are the most decision-relevant ones though, so this is above baseline.

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?

Two sentences, front-loaded with the core purpose and followed by the key exclusions; every clause maps to a metric or a constraint. The phrase 'a score on Lighthouse's curves without Speed Index' is jargon-heavy and slightly ambiguous, which is the only drag on an otherwise tight definition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool with no output schema and no annotations, the description covers both sides: what metrics come back and what side effects do not occur. The remaining gaps are operational (expected duration, whether a page must already be open, whether results are a snapshot or aggregate), which are minor for a read-only measurement call.

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?

The input schema defines zero parameters, which is the baseline-4 case, and there is nothing parameter-related for the description to clarify. However, the description instead spends its words on output metrics, leaving implicit the invocation model (no arguments, no options to scope which metrics are collected). A 3 reflects that it neither helps nor hurts on this dimension.

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 the resource (page load performance) and enumerates the concrete metrics delivered: first and largest paint, blocking time, layout shift, longest tasks, slowest requests, and a Lighthouse-derived score. That is specific enough to distinguish it from sibling measurement tools like measure_frames or page_report. It lacks an explicit verb and does not name a sibling it should be preferred over, so it stops short of a 5.

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: an agent can infer this is the tool for diagnosing load performance. There is no statement of when to prefer it over alternatives (e.g. measure_frames, page_report) nor any precondition such as the page needing to be loaded first. The closing sentence about not reloading is a behavioral fact rather than routing guidance.

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