Skip to main content
Glama

页面性能摘要

browser_performance
Read-onlyIdempotent

Summarize active tab performance metrics—navigation timing, FCP, resource size, JS heap, and DOM size—to diagnose slow pages without DevTools.

Instructions

Summarize performance metrics of the active tab: navigation timing (TTFB / DOMContentLoaded / load), First Contentful Paint, resource count and transfer size, slowest resources, JS heap usage and DOM size. Read-only diagnostics for slow pages; no DevTools needed.

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab id (default: active tab)
slowestNoHow many slowest resources to list (default 5, max 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds that no DevTools session is required and that it reads the active tab by default, but says nothing about whether metrics reflect the current load or require a reload, or whether values are sampled/cached. Useful context, not rich behavioral disclosure.

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 action and scope, and the metric list is dense but each item carries information an agent would otherwise have to guess. No filler or redundant restatement of the title.

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?

With no output schema, the description correctly compensates by enumerating the returned fields, and both optional parameters are covered by the schema. The remaining gap is whether the tab must be fully loaded for timing metrics to be meaningful, which matters for a performance 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%, so both parameters (tabId, slowest) are already fully documented including defaults and the max of 20. The description only alludes to 'slowest resources' without adding format or semantics beyond the schema, so the baseline of 3 applies.

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 and scope ('Summarize performance metrics of the active tab') and enumerates exactly which metrics are returned (TTFB/DOMContentLoaded/load, FCP, resource count and transfer size, slowest resources, JS heap, DOM size). That enumeration distinguishes it from data-dump siblings like browser_network_requests or browser_har. It stops short of naming a sibling explicitly, so a 4 rather than 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?

'Read-only diagnostics for slow pages' implies the use case, but the description never states when to prefer this over browser_network_requests or browser_har, nor any precondition (e.g. page must have finished loading). Usage is implied rather than guided.

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