Skip to main content
Glama

Scan page speed & estimate revenue lost to slowness

scan_speed_and_revenue
Read-only

Measure Core Web Vitals and page weight on key pages, identify speed bottlenecks, and estimate monthly revenue lost to slow pages from traffic and order value.

Instructions

Measures Core Web Vitals (LCP, INP, CLS, TTFB) and page weight on key pages, finds the biggest speed bottlenecks (images, render-blocking scripts, third-party tags) and, if you give traffic and order value, estimates monthly revenue lost to slow pages. Returns a score, metrics, prioritised fixes and a full-report link. Runs on the caller's own Apify account (APIFY_TOKEN) and is billed by Apify pay-per-event; nothing is charged by this server.

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

Input Schema

NameRequiredDescriptionDefault
urlYesPublic website URL, e.g. "https://example.com" (https:// is added if missing). Private/internal addresses are rejected.
deviceNoEmulated device; Google ranks on mobile.mobile
currencyNoISO currency code for money figures.USD
maxPagesNoPages to test (home page + discovered key pages).
waitSecsNoHow long to wait for results before returning status "running" with a runId (the scan keeps going; use get_audit_results). Default 240.
maxCostUsdNoSpend cap for this run on YOUR Apify account (forwarded to Apify as maxTotalChargeUsd). Default from server config ($2).
monthlyVisitorsNoOptional, for the revenue-loss estimate.
averageOrderValueNoOptional average order / lead value, for the revenue estimate.
conversionRatePctNoOptional current conversion rate in %, for the revenue estimate.

Output Schema

NameRequiredDescriptionDefault
runYes
checkYes
gradeYes
scoreYes
dryRunYestrue = sample data from the built-in mock, NOT a real scan
statusYes"running" = the Actor is still working; call get_audit_results with run.runId later
targetYes
metricsYes
summaryYes
findingsYes
reportUrlNoFull report (HTML/JSON) in the Apify key-value store
datasetUrlNo
findingsTotalYes
severityCountsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-idempotent/non-destructive, and the description adds genuinely non-redundant context: it runs on the caller's own Apify account via APIFY_TOKEN, is billed pay-per-event by Apify with nothing charged by this server, and returns a score, metrics, prioritised fixes and a full-report link. That cost and auth disclosure is exactly the kind of behavior an agent can't get from the structured fields.

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?

Three sentences, front-loaded with what is measured, then the conditional revenue feature, then the operational/cost caveat. Dense but every clause carries weight; the enumeration of metrics and bottleneck types is slightly list-heavy but justified by the tool's scope.

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?

With 9 parameters, an output schema and annotations present, the description covers the remaining gaps an agent needs: billing/account model, auth token requirement, the conditional revenue-estimate inputs, and a summary of return contents. Nothing material for correct invocation appears missing.

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 the schema itself documents url, device, currency, maxPages, waitSecs, maxCostUsd and the three revenue inputs. The description only loosely links monthlyVisitors/averageOrderValue (and implicitly conversionRatePct) to the revenue estimate, adding little beyond what the schema already states — baseline 3.

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 specific resource and metrics (Core Web Vitals — LCP, INP, CLS, TTFB — page weight, bottleneck categories) and the revenue-loss estimate, which clearly separates it from sibling audits like audit_accessibility_wcag, audit_tracking_consent and detect_tech_stack. It stops short of naming any sibling explicitly, so 4 rather than 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 explains the conditional enrichment path ('if you give traffic and order value, estimates monthly revenue lost'), which is genuine usage guidance, and the schema covers the async 'running'/runId fallback to get_audit_results. But there is no explicit statement of when to pick this over full_website_audit or the other audit siblings, so an agent must infer the choice from scope alone.

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