Skip to main content
Glama

Run a cloud audit

run_audit

Run a cloud audit of a website (crawl + 350+ rule analysis + report). Only for sites the user owns or is authorized to test. Credits are spent as the audit runs (pay-as-you-go). The dry run is optional: pass confirm: true on the first call to start straight away. Without confirm, an audit whose estimate is over the org's auto-run threshold comes back as status "confirmation_required" with the estimate to show the user; one at or under the threshold just starts. That response carries "sufficient": true means the organization can pay, so show the estimate and call again with confirm: true; false means it cannot, and the response then carries the cost, the balance, the credit reset date and an upgrade_url for that organization. Relay those, and do NOT retry with confirm: true, which is refused. If run_audit answers QUEUE_FULL, nothing was charged: wait retry_after_seconds, then call again, starting fewer audits at once (queued, running and max_queued show the org's counts, and whoami shows them any time). The queue holds 1 waiting audit on Free, 5 on Pro, 20 on Team, 20 on Business and 50 on Enterprise; the error carries an upgrade hint for a longer one. Pick the audit with level: quick (25 pages from the seed and sitemaps with external link checks, without the cloud checks), surface (100 pages, one per URL pattern, with the cloud checks and external link checks) or full (500 pages, every page it can reach; Pro and Team only: on the Free plan a full request crawls one page per URL pattern instead, up to the plan's page ceiling, and says so in level_notice). Without level the website's own level applies (a new website starts on surface). Every level checks external links, quick included, unless the website's external link setting or this run's external_links turns them off; each distinct external link the cloud verifies costs 1 credit (a link it cannot verify costs nothing), at most one per page of the page budget, and the estimate includes it. Use max_pages to size the crawl (max_pages: 1 audits just the entry URL, the cheapest run). A run is never raised above what you ask. When the response carries store_notice, the site's stored findings are a sample of an earlier audit: an audit smaller than the one the notice names reports findings for the pages it checks and no overall site score (health_score null with score_scope "audited_pages"), and the audit it names (the plan's best audit, or one at least as large as the sample) gives a site score again. After a deploy, pass refresh: true so the audit fetches every page from the origin instead of reusing the last crawl. Audits are asynchronous and take minutes: poll get_audit_status with the returned run_id, then fetch results with get_report. The website is registered automatically on first audit. A started run carries a schedule field describing the site's recurring audits: when state is active say so, since each of those runs costs credits, and settings_url is where the user turns them off. pending_first_audit: true means they switch on by themselves after this site's first successful audit, estimated_cost is the most they spend per run, week and month, and update_website_settings with schedule "off" turns them off. squirrelscan audits are meant to be tailored to each site through rules: rule classes that do not apply to a site (no privacy, about or contact pages on a hobby site, say) are disabled in its disable_rules, not re-reported on every audit, so the score reflects what matters for that site. Local runs read the disable list in squirrel.toml; cloud runs cannot see the repository and use the website's stored disable_rules.

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

Input Schema

NameRequiredDescriptionDefault
urlYesWebsite URL to audit, e.g. https://example.com (scheme optional).
kindNoClassify the site: 'owned' for something the user runs and monitors, 'prospect' for a lead or competitor audited once. Filterable in list_websites so a prospect cleanup can never sweep up a live site. Unclassified sites read as 'owned'. Ignored when ephemeral is true (an ephemeral site never joins the list).
levelNoAudit level for this run: quick (25 pages, without the cloud checks), surface (100 pages with the cloud checks and external link checks) or full (500 pages). Default: the website's own level. Do not combine with coverage.
rulesNoRun ONLY these rules: rule ids (core/robots-meta), category globs (ax/*) or bare categories (ax), the same patterns as the CLI's --rule-include and the REST create-run's config.enabledRulePatterns. Use list_rules for ids and categories. At most 50 patterns of 100 characters. A pattern that matches no rule is refused (nothing is started or charged), never an empty run. The website's disable_rules and this call's disable_rules still apply on top, and disable wins. `ax` includes three rules that kept the legacy ai/ id prefix (ai/llm-parsability, ai/page-type-match, ai/site-metadata): they are the cloud-backed, slower ones, so leave them out with disable_rules naming those exact ids. The report covers only the selected rules, so its overall score is not comparable to a full audit's.
scopeNoWhich URLs to audit. 'discover' (the default) follows links from the pages it finds. 'sitemap' audits only the URLs the site's sitemap publishes, which is what you want when the sitemap is the list the user cares about and link discovery would spend the budget elsewhere. Overrides the website's stored setting for this run only.
renderNoRender pages in a headless browser (default true). Catches JavaScript-dependent issues.
confirmNoApprove the credit spend. Set true to start immediately. Omitting it returns an estimate first for anything over the auto-run threshold, and starts the audit anyway for anything at or under it.
refreshNoDefault false. Fetch every page from the origin instead of reusing the previous crawl. Pass true after a deploy, or the audit can grade HTML from before it. Costs the same credits.
coverageNoDeprecated, use level. The old cloud depth: fast (10 pages), surface (50), deep (250) or full (500), each with the cloud checks, keeping the website's own overrides.
ephemeralNoOne-shot check: run the audit and return the report without adding the site to the organization's website list, and without consuming a slot against the plan's website limit. Use for any 'just check this URL' audit the user is not going to monitor. The site is removed automatically once the audit finishes; get_audit_status and get_report keep working on the run_id. Ignored if the domain is already registered, in which case the audit runs against the existing tracked site (nothing is ever deleted) and the response reports ephemeral: false.
max_pagesNoCap the crawl at this many pages for this run. Overrides the coverage profile's page count, so max_pages: 1 audits just the entry URL for the cheapest possible run. A value above the plan's per-audit page ceiling is clamped to the ceiling and reported back in a notice, not rejected.
start_urlNoThe URL you were originally given, when `url` is where it redirected to (a short link or an old domain). The website is kept under `url`'s domain and this host is remembered as an alias, so a later call with the old URL finds the same website instead of making a second. http(s) only; ignored when it names the same site.
force_rulesNoRules to run for THIS run EVEN WHEN their site-type gate does not match the detected site type, added to the website's own force_rules: rule ids (ecommerce/product-schema) or category globs (ecommerce/*), with the same patterns, limits and errors as `rules` (a bare category such as ecommerce is accepted here and expanded to ecommerce/*; the stored force_rules of update_website_settings take exact ids and category globs only). Use it when site-type detection is wrong (a shop detected as a blog). It only lifts the gate: it selects nothing by itself (`rules` still decides what runs), never bypasses a plan limit or a credit charge, and disable wins over it (a rule named here and in disable_rules does not run). A pattern that matches no rule is refused. A forced rule's result says it ran because it was forced, with the detected site type.
max_creditsNoSpend guard: refuse to start if the estimate exceeds this many credits. For a site with an earlier completed audit at the same level the estimate is the expected cost (its last page and external-link counts plus a 25% margin); otherwise it is the hard upper bound for the page cap. The response states both and which the guard used. The run itself never spends past this many credits: a site that has grown stops at the limit.
bypass_cacheNoDefault false. Send Cache-Control: no-cache to the origin on page fetches, so a CDN or proxy revalidates too. Takes effect once the cloud crawler ships support (#5047); refresh works now.
disable_rulesNoRules to switch off for THIS run only, added to the website's own disable_rules: rule ids (ai/site-metadata), category globs (a11y/*) or bare categories, with the same patterns, limits and errors as `rules`. Disable wins over `rules`: a rule named in both does not run, as in a lint config. A pattern that matches no rule is refused. A rule selection that leaves nothing to run is refused before anything starts. Caution: `ai/*` is an alias of the whole ax category, so it switches off every ax rule; name the three legacy ai/ ids exactly instead (ai/llm-parsability, ai/page-type-match, ai/site-metadata).
editor_summaryNoBuild the editor's summary, an LLM-written overview that adds about 30 seconds to a run. Default: skipped when `rules` is set (a filtered run), built otherwise. Pass true to build it on a filtered run, false to skip it on any run. A skipped summary is absent from the report and says so on the run timeline; credits are unaffected (the summary has no credit charge).
external_linksNoCheck links to other sites for this run: true at any level, false to skip them (default: the website's setting). Each distinct external link the cloud verifies costs 1 credit (a link it cannot verify costs nothing), at most one per page of the run's page budget, and the estimate includes that. Skipped links are listed as not checked in the report.
internal_linksNoStatus-check internal link targets the crawl did not fetch (a HEAD request each, a one-byte GET only when the server refuses HEAD, following redirects that stay in scope; free; it never requests links that look like actions or carry a token). Default: the website's setting, on unless switched off. Pass false for a site whose links change state when requested.
follow_redirectNoConsent to follow a redirect to ANOTHER site. The server follows the URL's redirects (up to 5, never to a private address) when you gave no start_url: within one site (http to https, apex to www) it just registers the final URL; to a different registrable domain it answers status "redirected" with the destination and creates nothing until you call again with follow_redirect: true. The original host is kept as an alias. A loop, a refused hop or a timeout registers the URL as sent and says why in redirect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / bypass_cache
      Added value: +{
      +  "description": "Default false. Send Cache-Control: no-cache to the origin on page fetches, so a CDN or proxy revalidates too. Takes effect once the cloud crawler ships support (#5047); refresh works now.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / refresh
      Added value: +{
      +  "description": "Default false. Fetch every page from the origin instead of reusing the previous crawl. Pass true after a deploy, or the audit can grade HTML from before it. Costs the same credits.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / max_credits / description
      Previous value: -"Spend guard: refuse to start if the upper-bound estimate exceeds this many credits."New value: +"Spend guard: refuse to start if the estimate exceeds this many credits. For a site with an earlier completed audit at the same level the estimate is the expected cost (its last page and external-link counts plus a 25% margin); otherwise it is the hard upper bound for the page cap. The response states both and which the guard used. The run itself never spends past this many credits: a site that has grown stops at the limit."
  3. Changed1 schema field changed
    • addedInput schema / properties / follow_redirect
      Added value: +{
      +  "description": "Consent to follow a redirect to ANOTHER site. The server follows the URL's redirects (up to 5, never to a private address) when you gave no start_url: within one site (http to https, apex to www) it just registers the final URL; to a different registrable domain it answers status \"redirected\" with the destination and creates nothing until you call again with follow_redirect: true. The original host is kept as an alias. A loop, a refused hop or a timeout registers the URL as sent and says why in redirect.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / start_url
      Added value: +{
      +  "description": "The URL you were originally given, when `url` is where it redirected to (a short link or an old domain). The website is kept under `url`'s domain and this host is remembered as an alias, so a later call with the old URL finds the same website instead of making a second. http(s) only; ignored when it names the same site.",
      +  "maxLength": 2048,
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / force_rules
      Added value: +{
      +  "description": "Rules to run for THIS run EVEN WHEN their site-type gate does not match the detected site type, added to the website's own force_rules: rule ids (ecommerce/product-schema) or category globs (ecommerce/*), with the same patterns, limits and errors as `rules` (a bare category such as ecommerce is accepted here and expanded to ecommerce/*; the stored force_rules of update_website_settings take exact ids and category globs only). Use it when site-type detection is wrong (a shop detected as a blog). It only lifts the gate: it selects nothing by itself (`rules` still decides what runs), never bypasses a plan limit or a credit charge, and disable wins over it (a rule named here and in disable_rules does not run). A pattern that matches no rule is refused. A forced rule's result says it ran because it was forced, with the detected site type.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  6. Changed3 schema fields changed
    • addedInput schema / properties / disable_rules
      Added value: +{
      +  "description": "Rules to switch off for THIS run only, added to the website's own disable_rules: rule ids (ai/site-metadata), category globs (a11y/*) or bare categories, with the same patterns, limits and errors as `rules`. Disable wins over `rules`: a rule named in both does not run, as in a lint config. A pattern that matches no rule is refused. A rule selection that leaves nothing to run is refused before anything starts. Caution: `ai/*` is an alias of the whole ax category, so it switches off every ax rule; name the three legacy ai/ ids exactly instead (ai/llm-parsability, ai/page-type-match, ai/site-metadata).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / editor_summary
      Added value: +{
      +  "description": "Build the editor's summary, an LLM-written overview that adds about 30 seconds to a run. Default: skipped when `rules` is set (a filtered run), built otherwise. Pass true to build it on a filtered run, false to skip it on any run. A skipped summary is absent from the report and says so on the run timeline; credits are unaffected (the summary has no credit charge).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / rules
      Added value: +{
      +  "description": "Run ONLY these rules: rule ids (core/robots-meta), category globs (ax/*) or bare categories (ax), the same patterns as the CLI's --rule-include and the REST create-run's config.enabledRulePatterns. Use list_rules for ids and categories. At most 50 patterns of 100 characters. A pattern that matches no rule is refused (nothing is started or charged), never an empty run. The website's disable_rules and this call's disable_rules still apply on top, and disable wins. `ax` includes three rules that kept the legacy ai/ id prefix (ai/llm-parsability, ai/page-type-match, ai/site-metadata): they are the cloud-backed, slower ones, so leave them out with disable_rules naming those exact ids. The report covers only the selected rules, so its overall score is not comparable to a full audit's.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  7. Changed1 schema field changed
    • changedInput schema / properties / render / description
      Previous value: -"Render pages in a headless browser (default true). Catches JavaScript-dependent issues; costs extra credits per page."New value: +"Render pages in a headless browser (default true). Catches JavaScript-dependent issues."
  8. Changed1 schema field changed
    • changedInput schema / properties / external_links / description
      Previous value: -"Check links to other sites for this run: true at any level, false to skip them (default: the website's setting). Each distinct external link checked costs 1 credit, at most one per page of the run's page budget, and the estimate includes that. Skipped links are listed as not checked in the report."New value: +"Check links to other sites for this run: true at any level, false to skip them (default: the website's setting). Each distinct external link the cloud verifies costs 1 credit (a link it cannot verify costs nothing), at most one per page of the run's page budget, and the estimate includes that. Skipped links are listed as not checked in the report."
  9. Changed1 schema field changed
    • addedInput schema / properties / internal_links
      Added value: +{
      +  "description": "Status-check internal link targets the crawl did not fetch (a HEAD request each, a one-byte GET only when the server refuses HEAD, following redirects that stay in scope; free; it never requests links that look like actions or carry a token). Default: the website's setting, on unless switched off. Pass false for a site whose links change state when requested.",
      +  "type": "boolean"
      +}
  10. Changed1 schema field changed
    • addedInput schema / properties / external_links
      Added value: +{
      +  "description": "Check links to other sites for this run: true at any level, false to skip them (default: the website's setting). Each distinct external link checked costs 1 credit, at most one per page of the run's page budget, and the estimate includes that. Skipped links are listed as not checked in the report.",
      +  "type": "boolean"
      +}
  11. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +{}
  12. Changed2 schema fields changed
    • changedInput schema / properties / coverage / description
      Previous value: -"Crawl coverage profile (default fast, 10 pages). Deeper coverage crawls more pages and costs more credits."New value: +"Deprecated, use level. The old cloud depth: fast (10 pages), surface (50), deep (250) or full (500), each with the cloud checks, keeping the website's own overrides."
    • addedInput schema / properties / level
      Added value: +{
      +  "description": "Audit level for this run: quick (25 pages, without the cloud checks), surface (100 pages with the cloud checks and external link checks) or full (500 pages). Default: the website's own level. Do not combine with coverage.",
      +  "enum": [
      +    "quick",
      +    "surface",
      +    "full"
      +  ],
      +  "type": "string"
      +}
  13. Changed4 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / max_credits / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / max_pages / maximum
      Added value: +9007199254740991
  14. Changed1 schema field changed
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "Which URLs to audit. 'discover' (the default) follows links from the pages it finds. 'sitemap' audits only the URLs the site's sitemap publishes, which is what you want when the sitemap is the list the user cares about and link discovery would spend the budget elsewhere. Overrides the website's stored setting for this run only.",
      +  "enum": [
      +    "discover",
      +    "sitemap"
      +  ],
      +  "type": "string"
      +}
  15. Changed2 schema fields changed
    • addedInput schema / properties / ephemeral
      Added value: +{
      +  "description": "One-shot check: run the audit and return the report without adding the site to the organization's website list, and without consuming a slot against the plan's website limit. Use for any 'just check this URL' audit the user is not going to monitor. The site is removed automatically once the audit finishes; get_audit_status and get_report keep working on the run_id. Ignored if the domain is already registered, in which case the audit runs against the existing tracked site (nothing is ever deleted) and the response reports ephemeral: false.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Classify the site: 'owned' for something the user runs and monitors, 'prospect' for a lead or competitor audited once. Filterable in list_websites so a prospect cleanup can never sweep up a live site. Unclassified sites read as 'owned'. Ignored when ephemeral is true (an ephemeral site never joins the list).",
      +  "enum": [
      +    "owned",
      +    "prospect"
      +  ],
      +  "type": "string"
      +}
  16. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Approve the credit spend. Omit on the first call to see the estimate; set true to start the audit after the user approves."New value: +"Approve the credit spend. Set true to start immediately. Omitting it returns an estimate first for anything over the auto-run threshold, and starts the audit anyway for anything at or under it."
    • changedInput schema / properties / coverage / description
      Previous value: -"Crawl coverage profile (default fast). Deeper coverage crawls more pages and costs more credits."New value: +"Crawl coverage profile (default fast, 10 pages). Deeper coverage crawls more pages and costs more credits."
    • addedInput schema / properties / max_pages
      Added value: +{
      +  "description": "Cap the crawl at this many pages for this run. Overrides the coverage profile's page count, so max_pages: 1 audits just the entry URL for the cheapest possible run. A value above the plan's per-audit page ceiling is clamped to the ceiling and reported back in a notice, not rejected.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  17. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.