Skip to main content
Glama

Run site audit

run_site_audit
Destructive

Start a site audit: crawls the site (robots.txt-aware, same-origin), checks every page for SEO issues (broken links, duplicate/missing titles and descriptions, redirect chains, orphan pages, canonical problems, thin content, and more), and optionally runs Lighthouse on a sample of pages. Runs in the background — poll get_audit_status, then read get_audit_issues. If the site rate limits the crawler it slows down and retries; pages it still cannot read are honestly flagged as blocked or rate-limited rather than misreported.

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

Input Schema

NameRequiredDescriptionDefault
urlYesStart URL to crawl.
maxPagesNoPage budget for the crawl (default 50).
projectIdYesRequired. The NameIO project ID to scope this call to. Get one from list_projects.
runLighthouseNoRun Lighthouse on a sample of up to 10 representative pages (default false — it adds several minutes of wall-clock time). Pass true only when the user wants performance/Core Web Vitals detail.
renderJavaScriptNoRender JavaScript before auditing, for sites whose content or links load client-side or whose bot protection blocks the plain crawler. Slower, and limited to 1,000 pages. On hosted plans: Estimated $0.07 to $0.39 for up to 100 pages. Sites with aggressive bot detection need our more capable renderer and cost more. Billing counts pages actually rendered. Hosted plans hold the high end until the audit ends; an account that cannot cover it is refused. Default false.

Output Schema

NameRequiredDescriptionDefault
metaNo
auditIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: asynchronous background execution, adaptive slowdown/retry under rate limiting, and honest flagging of blocked pages rather than false positives. However, the annotations declare destructiveHint=true and the description never explains what a run overwrites or destroys (prior audit results, project state), which is the one behavior an agent most needs disclosed.

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-loads purpose, then workflow, then failure handling in three dense sentences with no filler. The long parenthetical checklist of SEO checks is slightly sprawling but each item is informative rather than redundant.

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?

For an async, open-world crawler with a full output schema, the description covers invocation, follow-up polling, and degraded-crawl semantics. The remaining gap is the unexplained destructive side effect implied by destructiveHint=true.

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 already explains projectId, maxPages, runLighthouse, and renderJavaScript including cost and page limits. The description only echoes the Lighthouse sampling behavior at a high level and adds no format or constraint detail the schema lacks — baseline 3.

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?

States a specific verb and resource ("Start a site audit") and enumerates the concrete work: robots.txt-aware same-origin crawl, SEO checks (broken links, titles/descriptions, redirect chains, orphan pages, canonicals, thin content), optional Lighthouse. This is clearly distinguishable from the sibling read tools (get_audit_status, get_audit_issues) that it names.

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

Usage Guidelines4/5

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

Gives explicit downstream workflow: "Runs in the background — poll get_audit_status, then read get_audit_issues," which tells the agent exactly what to do after calling. It does not state when not to use it (e.g. versus list_site_audits or re-running an existing audit), so it stops short of full alternative routing.

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