Skip to main content
Glama

Audit public site

audit_public_site
Read-onlyIdempotent

Use this for a bounded, sitemap-first audit of a public website the user owns or is authorized to inspect. It fetches at most 8 same-origin HTML pages per call, respects robots.txt, and returns compact page summaries plus deduplicated findings, a sampled canonical/noindex graph, same-language duplicate main-content pairs, evidence-limited empty/short/repeated-boilerplate main-text review, and 16-locale hreflang/canonical clusters. Content quality results are static-text review signals, not usefulness or Google ranking verdicts. Unvisited alternate targets remain unverified; use the local site.hreflang tool with supplied HTML for up to 16 pages. It does not recursively follow HTML links, authenticate, execute JavaScript, fetch assets, or run site-wide link checks. To continue a batch, pass both the returned page offset and discovery fingerprint; changed sitemaps require restarting at offset 0.

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": {
      "site_url": "<site_url>"
    },
    "name": "audit_public_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_urlYesAuthorized public website URL. The final public origin becomes the crawl boundary.
max_pagesNoMaximum same-origin pages to audit in this call, from 1 to 8.
page_offsetNoZero-based sitemap-page offset for continuing a capped audit batch.
expected_discovery_fingerprintNoFingerprint from the first batch. Required when page_offset > 0 to reject sitemap drift.

Output Schema

NameRequiredDescriptionDefault
errorNo
pagesYes
overviewYes
site_urlYes
discoveryYes
truncatedYes
sitemap_urlNo
issue_groupsYes
pages_failedYes
pages_auditedYes
pages_partialYes
pages_selectedYes
content_qualityNo
discovery_errorNo
next_page_offsetNo
pages_discoveredYes
audit_health_scoreNo
content_duplicatesNo
indexability_graphNo
pages_skipped_robotsYes
discovery_fingerprintYes
multilingual_clustersNo
issue_groups_truncatedYes
score_coverage_percentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / content_duplicates
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "coverage_limited": {
      +      "type": "boolean"
      +    },
      +    "eligible_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "limitations": {
      +      "items": {
      +        "maxLength": 300,
      +        "type": "string"
      +      },
      +      "maxItems": 4,
      +      "type": "array"
      +    },
      +    "pairs": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "confidence": {
      +            "enum": [
      +              "observed",
      +              "potential"
      +            ],
      +            "type": "string"
      +          },
      +          "first_url": {
      +            "maxLength": 512,
      +            "type": "string"
      +          },
      +          "first_words": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "kind": {
      +            "enum": [
      +              "exact",
      +              "near"
      +            ],
      +            "type": "string"
      +          },
      +          "language": {
      +            "maxLength": 16,
      +            "type": "string"
      +          },
      +          "second_url": {
      +            "maxLength": 512,
      +            "type": "string"
      +          },
      +          "second_words": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "similarity_percent": {
      +            "maximum": 100,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "first_url",
      +          "second_url",
      +          "language",
      +          "kind",
      +          "confidence",
      +          "similarity_percent",
      +          "first_words",
      +          "second_words"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 8,
      +      "type": "array"
      +    },
      +    "pairs_truncated": {
      +      "type": "boolean"
      +    },
      +    "sampled_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "scope": {
      +      "const": "sampled_pages_only",
      +      "type": "string"
      +    },
      +    "skipped_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "total_pairs": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scope",
      +    "sampled_pages",
      +    "eligible_pages",
      +    "skipped_pages",
      +    "coverage_limited",
      +    "limitations",
      +    "total_pairs",
      +    "pairs",
      +    "pairs_truncated"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / content_quality
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "coverage_limited": {
      +      "type": "boolean"
      +    },
      +    "eligible_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "empty_main_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "families_compared": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "findings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "affected_pages": {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "code": {
      +            "maxLength": 80,
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "enum": [
      +              "observed",
      +              "potential"
      +            ],
      +            "type": "string"
      +          },
      +          "example_urls": {
      +            "items": {
      +              "maxLength": 512,
      +              "type": "string"
      +            },
      +            "maxItems": 2,
      +            "type": "array"
      +          },
      +          "message": {
      +            "maxLength": 320,
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "warning",
      +              "info"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "confidence",
      +          "message",
      +          "affected_pages",
      +          "example_urls"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 12,
      +      "type": "array"
      +    },
      +    "findings_truncated": {
      +      "type": "boolean"
      +    },
      +    "limitations": {
      +      "items": {
      +        "maxLength": 300,
      +        "type": "string"
      +      },
      +      "maxItems": 4,
      +      "type": "array"
      +    },
      +    "possible_low_value_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "repeated_boilerplate_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "sampled_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "scope": {
      +      "const": "sampled_pages_only",
      +      "type": "string"
      +    },
      +    "short_main_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "skipped_pages": {
      +      "maximum": 8,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "total_findings": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scope",
      +    "sampled_pages",
      +    "eligible_pages",
      +    "skipped_pages",
      +    "families_compared",
      +    "empty_main_pages",
      +    "short_main_pages",
      +    "repeated_boilerplate_pages",
      +    "possible_low_value_pages",
      +    "coverage_limited",
      +    "limitations",
      +    "total_findings",
      +    "findings",
      +    "findings_truncated"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / multilingual_clusters
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "coverage_limited": {
      +      "type": "boolean"
      +    },
      +    "eligible_pages": {
      +      "maximum": 16,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "findings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "maxLength": 80,
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "enum": [
      +              "observed",
      +              "potential"
      +            ],
      +            "type": "string"
      +          },
      +          "example_urls": {
      +            "items": {
      +              "maxLength": 256,
      +              "type": "string"
      +            },
      +            "maxItems": 2,
      +            "type": "array"
      +          },
      +          "message": {
      +            "maxLength": 320,
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "error",
      +              "warning"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "confidence",
      +          "message",
      +          "example_urls"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 12,
      +      "type": "array"
      +    },
      +    "findings_truncated": {
      +      "type": "boolean"
      +    },
      +    "invalid_declarations": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "limitations": {
      +      "items": {
      +        "maxLength": 320,
      +        "type": "string"
      +      },
      +      "maxItems": 4,
      +      "type": "array"
      +    },
      +    "locales_observed": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "pages_with_alternates": {
      +      "maximum": 16,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "sampled_pages": {
      +      "maximum": 16,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "scope": {
      +      "const": "sampled_pages_only",
      +      "type": "string"
      +    },
      +    "total_findings": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "unobserved_targets": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scope",
      +    "sampled_pages",
      +    "eligible_pages",
      +    "pages_with_alternates",
      +    "locales_observed",
      +    "unobserved_targets",
      +    "invalid_declarations",
      +    "coverage_limited",
      +    "limitations",
      +    "total_findings",
      +    "findings",
      +    "findings_truncated"
      +  ],
      +  "type": "object"
      +}
  2. Changed10 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"
    • addedInput schema / properties / expected_discovery_fingerprint
      Added value: +{
      +  "description": "Fingerprint from the first batch. Required when page_offset > 0 to reject sitemap drift.",
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / properties / discovery_error / enum
      Previous value: -[
      -  "robots_unavailable",
      -  "sitemap_unavailable",
      -  "sitemap_invalid"
      -]New value: +[
      +  "robots_unavailable",
      +  "sitemap_unavailable",
      +  "sitemap_invalid",
      +  "sitemap_query_unsupported"
      +]
    • addedOutput schema / properties / discovery_fingerprint
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / indexability_graph
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "coverage_limited": {
      +      "type": "boolean"
      +    },
      +    "findings": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "enum": [
      +              "observed",
      +              "potential"
      +            ],
      +            "type": "string"
      +          },
      +          "example_urls": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "severity": {
      +            "enum": [
      +              "error",
      +              "warning",
      +              "info"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "severity",
      +          "confidence",
      +          "message",
      +          "example_urls"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "findings_truncated": {
      +      "type": "boolean"
      +    },
      +    "limitations": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "sampled_pages": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "scope": {
      +      "const": "sampled_pages_only",
      +      "type": "string"
      +    },
      +    "sitemap_pages_sampled": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "scope",
      +    "sampled_pages",
      +    "sitemap_pages_sampled",
      +    "coverage_limited",
      +    "limitations",
      +    "findings",
      +    "findings_truncated"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / issue_groups / items / properties / code
      Added value: +{
      +  "description": "Stable machine-readable audit rule identifier when available.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pages / items / properties / indexability
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "canonical_state": {
      +      "enum": [
      +        "missing",
      +        "usable",
      +        "ambiguous",
      +        "unverifiable"
      +      ],
      +      "type": "string"
      +    },
      +    "canonical_url": {
      +      "type": "string"
      +    },
      +    "hreflang": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "language": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "language",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 16,
      +      "type": "array"
      +    },
      +    "hreflang_truncated": {
      +      "type": "boolean"
      +    },
      +    "noindex_observed": {
      +      "type": "boolean"
      +    },
      +    "title": {
      +      "maxLength": 150,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "canonical_state",
      +    "noindex_observed",
      +    "hreflang",
      +    "hreflang_truncated"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / pages / items / properties / top_findings / items / properties / code
      Added value: +{
      +  "description": "Stable machine-readable audit rule identifier when available.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "site_url",
      -  "discovery",
      -  "pages_discovered",
      -  "pages_selected",
      -  "pages_audited",
      -  "pages_partial",
      -  "pages_failed",
      -  "pages_skipped_robots",
      -  "truncated",
      -  "score_coverage_percent",
      -  "pages",
      -  "issue_groups",
      -  "issue_groups_truncated",
      -  "overview"
      -]New value: +[
      +  "site_url",
      +  "discovery",
      +  "pages_discovered",
      +  "pages_selected",
      +  "pages_audited",
      +  "pages_partial",
      +  "pages_failed",
      +  "pages_skipped_robots",
      +  "truncated",
      +  "discovery_fingerprint",
      +  "score_coverage_percent",
      +  "pages",
      +  "issue_groups",
      +  "issue_groups_truncated",
      +  "overview"
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent/non-destructive, and the description layers on the operational behavior an agent actually needs: page cap, robots.txt compliance, no JavaScript execution, no authentication, no asset fetching, no site-wide link checking, and the static-text-review caveat that results are not usefulness or ranking verdicts. The batch-drift rule ('changed sitemaps require restarting at offset 0') is a behavioral constraint found nowhere else.

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 'Use this for...' and every sentence carries new information; nothing is filler. It is clause-dense in places (the returned-artifact enumeration reads as a single packed run), which costs a little scannability but not accuracy.

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?

For a tool with an output schema, all return-value explanation is optional, yet the description still names the result classes (findings, canonical/noindex graph, duplicate pairs, boilerplate review, hreflang clusters) so the agent can match output to intent. Combined with pagination, safety, and failure-mode coverage, nothing an agent needs to invoke it correctly 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 the baseline is 3, but the description adds real meaning about the coupling between page_offset and discovery fingerprint ('pass both the returned page offset and discovery fingerprint') and the restart-on-drift consequence that the schema only implies via the 'Required when page_offset > 0' note.

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 ('bounded, sitemap-first audit') with the resource ('a public website') and scope ('same-origin HTML pages', sitemap-driven rather than link-followed). The negatives ('does not recursively follow HTML links') and the 'sitemap-first' framing separate it from page-level siblings like audit_public_webpage without requiring a schema read.

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 an explicit use condition ('a public website the user owns or is authorized to inspect'), concrete limits (at most 8 pages per call, robots.txt respected), and routes one case to an alternative ('use the local site.hreflang tool with supplied HTML for up to 16 pages'). It stops short of explicitly contrasting with the closest sibling audit_public_webpage, leaving that inference to the reader.

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.