Skip to main content
Glama

web_perf_check

Read-only

Web page performance and weight check — Fast server-side page-speed audit for any public URL: time to first byte and HTML download time (measured from a Cloudflare edge), HTML size, compression (gzip/br), cache-control and CDN, DOM size, render-blocking scripts and stylesheets in head, async/defer/module counts, inline JS/CSS weight, images (missing width/height, lazy loading, srcset, WebP/AVIF), iframes, preconnect/preload hints, viewport meta, third-party hosts, and a measured page weight (HTML plus up to 10 scripts, 6 stylesheets and 8 images) with the largest files and a rough CO2-per-view estimate. Returns a 0-100 score, A-F grade and a prioritized fix list. No JavaScript is executed, so it complements (does not replace) Lighthouse. Param: url (http/https; private hosts refused). Price: $0.005 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://www.wikipedia.org/

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already establish read-only, open-world, non-destructive behavior, and the description adds substantial context beyond them: measurements come from a Cloudflare edge, no JavaScript is executed, private hosts are refused, and the call costs $0.005 USDC via x402. It also states the return shape — a 0–100 score, A–F grade, and prioritized fix list — which is valuable because no output schema exists.

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?

The description is front-loaded with the tool's purpose and then moves through metrics, return values, limitations, and payment details. The long metric enumeration is dense but relevant to the audit's scope, though it could be trimmed slightly for readability.

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

Completeness5/5

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

For a complex audit tool with no output schema, the description explains what is measured, what is returned, the no-JavaScript limitation, URL restrictions, and payment requirements. The annotations already cover safety, so the remaining description is complete enough for an agent to call the tool correctly.

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

Parameters4/5

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

Schema coverage is 100% and the single url parameter is documented only by an example, so the baseline is 3. The description improves this by specifying that the URL must be http/https and public, and that private hosts are refused, which adds real constraints beyond the 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?

The description gives a specific verb and resource — "Fast server-side page-speed audit" — and enumerates the performance and weight metrics it measures. An agent clearly understands this is a performance/weight audit, but the description does not explicitly distinguish it from sibling checks such as web_cache_check or web_images, so it falls 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?

It says the tool works on any public URL, refuses private hosts, and executes no JavaScript, which implies usage for a quick server-side performance audit. However, it does not explicitly say when to use this instead of sibling checks or other alternatives, beyond noting that it complements Lighthouse rather than replacing it.

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