Skip to main content
Glama

PageSpeed Insights audit

psi_run_audit
Read-only

Run Lighthouse via PageSpeed Insights for a URL: category scores, lab metrics, field data and top opportunities. Takes 10-40 s; run one URL per call.

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": {
      "url": "<url>"
    },
    "name": "psi_run_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
strategyNomobile
categoriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, openWorld, non-destructive), so the description's value is in operational traits: an explicit 10-40 s latency expectation and a one-URL-per-call batching constraint, both of which meaningfully shape how an agent schedules calls. It adds nothing about failure modes (invalid URL, API quota) but the timing constraint is real added context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, with the core action and returned data front-loaded and the operational constraint (runtime, one URL per call) placed second. Every clause earns its place.

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 compensates for the missing output schema by listing what comes back, which is genuinely useful. But with zero parameter documentation and no guidance on selecting a sibling tool, the definition leaves an agent guessing about the two optional inputs that materially change the audit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description carries the full burden and does not meet it. It never mentions the 'strategy' parameter (mobile default vs desktop) or 'categories' (default only performance, options for accessibility, best-practices, seo), leaving the agent to infer both from the raw schema.

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?

States a specific verb+resource pair ('Run Lighthouse via PageSpeed Insights for a URL') and enumerates the outputs (category scores, lab metrics, field data, opportunities), which lets an agent distinguish it from pure field-data siblings. It stops short of naming which sibling to use instead, so it is clear but not differentiating on its own.

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?

'Run one URL per call' plus the 10-40 s runtime gives practical invocation guidance, and the output list implies this is the lab-audit route rather than a field-data route. However, it never states when to prefer this over alternatives like cwv_get_url or when a Lighthouse audit is unnecessary.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources