Skip to main content
Glama

PerfDelta

Scan a URL (uses budget)

scan_url

Start a PageSpeed/Core Web Vitals scan for a URL. Costs one PageSpeed test per measured URL and device from your monthly budget, shared with monitoring, the web app and the REST API (devices=both counts two per URL). Measures only the given URL by default (scope=url). For a URL from one of your projects, scope=group measures it together with all sibling URLs of its project group like the scan button on the project page, which costs one test per sibling URL and device; only group scans appear in the project history. Project competitors are compared via field data at no cost. Pass project_id to add a new URL to a project so the report appears in your dashboard. Returns scan_id and cost; poll get_scan with the scan_id, then read the full report with get_report_details. From 80 percent of the monthly budget the result carries budget_warning (used_pct, upgrade_plan, upgrade_url), otherwise budget_warning is null; tell the user, because further scans fail with budget_exhausted once the budget is used up. The budget_exhausted error also carries upgrade_url. Free plan: 1 scan per rolling 24 hours, one URL per scan; if the same URL was measured within the last hour, the existing scan is returned with reused=true without using quota. Read tools such as get_report are not limited.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute URL to scan
scopeNourl (default): measure only this URL. group: measure all URLs of its project group, cost = sibling URLs x devices.
regionNoOptional measurement location for the lab test: auto (default: the project setting, otherwise derived from the domain) or us-east, us-west, eu, asia. Paid plans only; on the free plan any value other than auto fails with region_not_available. A different region starts a separate measurement series, so scores are only compared within the same region.
devicesNoboth (default), mobile or desktop
project_idNoOptional. Add the URL to this project first (counts against your URL limit), so the scan shows up in your dashboard and project history. Ignored if the URL is already in one of your projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes far beyond the annotations (readOnlyHint=false, openWorldHint=true) by disclosing the budget cost model, the 80% budget_warning payload, the budget_exhausted failure mode, free-plan quotas, and the reused=true dedupe within one hour. It also flags that only group scans appear in project history, which is behavior no annotation conveys.

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?

Front-loaded with purpose and cost, and every sentence carries operational information. However, it is one dense block mixing cost, scoping, error handling, and quota rules; breaking it into short structured segments would improve scanability for an agent.

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?

There is no output schema, yet the description states the return values (scan_id and cost plus an optional budget_warning) and the exact follow-up sequence. For a budgeted, quota-limited mutation tool, nothing an agent needs to call it safely and interpret the result is missing.

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%, so each parameter is already documented. The description still adds cross-parameter meaning the schema lacks, notably that devices=both counts two tests per URL and that region splits measurement series so scores are only comparable within a region, though it largely restates the scope and project_id semantics already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Start a PageSpeed/Core Web Vitals scan for a URL.' It also distinguishes itself from siblings by naming get_scan for polling and get_report_details for the full report, so an agent knows this is the initiating action rather than a read.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use scope=url versus scope=group, when to pass project_id, and which follow-up tools to call (get_scan, then get_report_details). It also names the read-only alternatives as not budget-limited, closing the loop on tool selection.

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