tool · reads
Site audit tool reference
Technical crawl of a site (you choose 1–10,000 pages): about 110 checks including JavaScript-only empty pages, AI-bot access, schema hygiene, internal link score, crawl funnel, Core Web Vitals (real-user field data plus lab runs on the top pages) and classic technical SEO (certificate, www/https versions, soft 404s, near-duplicate text, broken outbound links, URL hygiene, favicon, analytics tag); returns prioritised issues, a fix pack of diffs for a coding agent and, with explain set to plain, plain-English steps for site owners. The result lists the next steps, with estimated credits.
01 · overview
What it does
Technical crawl of a site (you choose 1–10,000 pages): about 110 checks including JavaScript-only empty pages, AI-bot access, schema hygiene, internal link score, crawl funnel, Core Web Vitals (real-user field data plus lab runs on the top pages) and classic technical SEO (certificate, www/https versions, soft 404s, near-duplicate text, broken outbound links, URL hygiene, favicon, analytics tag); returns prioritised issues, a fix pack of diffs for a coding agent and, with explain set to plain, plain-English steps for site owners. The result lists the next steps, with estimated credits.
- MCP tool name
- `site_audit`
- Title
- Site audit
- Cost
- paid, quoted first
- Behaviour
- read-only, not destructive, each call is a new run, reaches the web or data vendors
02 · inputs
Inputs
| Field | Type | Required | What it is |
|---|---|---|---|
| url | http(s) URL of a public site | yes | Where the crawl starts. |
| pages | integer, 1 to 10,000, default 100 | no | Pages to crawl. |
| path_prefix | string starting with / | no | Only crawl under this path. |
| fix_pack | boolean, default true | no | Return changes for a coding agent. |
| internal_link_score | boolean, default true | no | Score how well each page is linked. |
| gsc_funnel | boolean, default false | no | Add the crawl funnel from Search Console (needs a connection). |
| speed_pages | integer, 0 to 20, default 5 | no | Top pages to run a lab speed test on (0 = real-user field data only). |
Fields every paid call accepts
| Field | What it does |
|---|---|
| project_id | The project the call belongs to (UUID). |
| quote_only | true prices the call for 0 credits and returns a quote_id instead of running it. |
| quote_id | Run exactly a quote you got before; the arguments must match. |
| max_credits | Refuse the call if its price is above this. |
| detail | "summary" (default) or "full". |
| idempotency_key | Up to 64 characters; a retry with the same key never charges twice. |
The full JSON schema is in the MCP tools/list response of https://mcp.serprankai.com/mcp and in the OpenAPI document.
03 · output
What it returns
Prioritised issues from about 110 checks (JavaScript-only empty pages, AI-bot access, schema hygiene, internal links, crawl funnel, Core Web Vitals from real users plus lab runs on the top pages, certificate, www/https versions, soft 404s, near-duplicate text, broken outbound links, URL hygiene, favicon) and a fix pack of diffs a coding agent can apply, plus a plain-English guide for site owners.
Every result comes in the same envelope: status, a short summary, the data, provenance (source, method, time observed), confidence, coverage, changes since the last run and suggested next calls. Calls slower than about 45 seconds return a job_id to check with the job tool.
04 · price
Price
Per page crawled.
| Price item | Price | Size limits |
|---|---|---|
| Site audit + fix pack (per page) | $0.0015 (0.15 credits) per page | 1 to 10,000 pages |
The exact price of a call comes from a quote: send the same arguments with quote_only: true (0 credits). The charge is never more than the quote, and a failed check costs 0 credits.
05 · example
Example call
First price it (quote_only: true, 0 credits), then repeat the call with the quote_id that comes back.
{
"name": "site_audit",
"arguments": {
"url": "https://example.com",
"pages": 200,
"fix_pack": true,
"quote_only": true
}
}06 · errors
Errors and what to do
| Code | Meaning | What to do next |
|---|---|---|
| invalid_argument | An argument is missing, has the wrong type or is out of range. data.error.detail.field names it. | Fix the named argument and call again. Nothing was charged. |
| insufficient_credits | The wallet does not hold enough credits for this call. | Tell the user how many credits are needed and that they can top up in the dashboard, or make the call smaller. |
| cap_reached | A spending limit the account owner set (day, week, conversation or client budget) is used up. | Tell the user which limit was reached. Only the owner can raise it, in the dashboard wallet; otherwise wait for the next period. |
| over_max_credits | The price is above the max_credits you passed. | Raise max_credits if the user agrees with the price, or make the call smaller. |
| quote_expired | The quote_id is older than its 30-minute validity. | Quote again (quote_only: true) and run with the new quote_id. |
| quote_mismatch | The quote_id was already used, or the arguments differ from the quoted ones. | Repeat the call with exactly the quoted arguments, or quote again. |
| vendor_unavailable | A data source did not answer. Nothing was charged. | Wait a minute and call again. If detail.retryable is false, try later or a smaller call. |
| rate_limited | Too many calls in a short time from this account or connection. | Wait for the Retry-After seconds, then call again. |
| internal_error | Something failed on our side. Any hold was released, so nothing was charged. | Call again once. If it fails again, tell the user and include result_id. |