Skip to main content
Glama

Multi-Vector Website Compliance Audit

audit_site
Read-only

Executes a live HTTP/HTTPS multi-vector compliance audit against any public website URL. Inspects TLS transport, HTTP security headers (HSTS, CSP, X-Frame-Options, X-Content-Type-Options), Set-Cookie headers, client-side tracking scripts, Consent Management Platform (CMP) and Google Consent Mode v2 default 'denied' enforcement (GDPR Art. 5(3)), footer legal policy links (Privacy, Terms, Cookie Policy, CCPA Do Not Sell), and—when deep_scan is true—WCAG 2.1 AA DOM accessibility metrics and EU AI Act Article 50 chatbot disclosures.

When to use vs. related tools: Call 'audit_site' for an overall 0-100 compliance score, letter grade (A+ to F / FAILED), and cross-framework findings. Use 'scan_cookies' when you only need a categorized cookie/tracker inventory without grading; use 'audit_accessibility' when you need grading against WCAG_2.1_AAA or Section_508; use 'audit_ai_transparency' when you only need EU AI Act Art. 50 & GDPR Art. 22 findings.

Preconditions & side effects: Requires a publicly DNS-resolvable HTTP/HTTPS URL; no authentication or prior 'add_site' registration is required. Read-only operation—performs live outbound HTTP GET inspection and never mutates registered sites.

Returns: JSON object containing 'success', 'audit_id', 'target_url', 'deep_scan', 'compliance_score' (0-100), 'compliance_grade', 'status' ('COMPLETED' | 'FAILED'), 'is_https', 'timestamp', structured 'tests' sub-reports, 'findings', 'recommendations', 'cookie_inventory', and 'error' if unreachable or invalid.

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

Input Schema

NameRequiredDescriptionDefault
urlYesFull public HTTP or HTTPS URL of the website to audit.
deep_scanNoWhen true (default), runs full DOM inspection including WCAG 2.1 AA accessibility checks and EU AI Act chatbot detection. When false, executes a faster baseline check covering TLS, headers, trackers, consent mode, and legal links while skipping WCAG/AI DOM passes.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when success is false.
testsYesStructured compliance check sub-reports across connectivity, TLS, consent, headers, legal links, WCAG, and EU AI Act.
statusYesAudit execution status.
successYesTrue if target responded with HTTP < 400; false on invalid URL, DNS/network failure, or HTTP >= 400.
audit_idYesUnique audit run identifier ('aud_*').
findingsYesHuman-readable compliance findings.
is_httpsYesWhether the target URL uses HTTPS.
deep_scanYesWhether WCAG & AI Act deep DOM passes were executed.
timestampYesISO-8601 audit completion timestamp.
target_urlYesNormalized target URL scanned.
recommendationsYesPrioritized remediation actions.
compliance_gradeYesLetter grade capped by critical HTTPS or ePrivacy violations; 'FAILED' if unreachable.
compliance_scoreYesCalculated numeric compliance score (0 on failure).
cookie_inventoryYesDetailed cookies and tracking scripts discovered during the scan.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / deep_scan / description
      Previous value: -"Whether to execute deep DOM inspection and sub-resource tracker verification"New value: +"When true (default), runs full DOM inspection including WCAG 2.1 AA accessibility checks and EU AI Act chatbot detection. When false, executes a faster baseline check covering TLS, headers, trackers, consent mode, and legal links while skipping WCAG/AI DOM passes."
    • addedInput schema / properties / deep_scan / examples
      Added value: +[
      +  true,
      +  false
      +]
    • changedInput schema / properties / url / description
      Previous value: -"The full website URL to audit (e.g. 'https://example.com')"New value: +"Full public HTTP or HTTPS URL of the website to audit."
    • addedInput schema / properties / url / examples
      Added value: +[
      +  "https://paperloo.vercel.app",
      +  "https://example.com"
      +]
    • addedInput schema / properties / url / format
      Added value: +"uri"
    • addedInput schema / properties / url / minLength
      Added value: +4
    • addedInput schema / properties / url / pattern
      Added value: +"^https?://[^\\s]+$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "description": "Comprehensive multi-vector compliance audit report.",
      +  "properties": {
      +    "audit_id": {
      +      "description": "Unique audit run identifier ('aud_*').",
      +      "type": "string"
      +    },
      +    "compliance_grade": {
      +      "description": "Letter grade capped by critical HTTPS or ePrivacy violations; 'FAILED' if unreachable.",
      +      "enum": [
      +        "A+",
      +        "A",
      +        "B",
      +        "C",
      +        "D",
      +        "F",
      +        "FAILED"
      +      ],
      +      "type": "string"
      +    },
      +    "compliance_score": {
      +      "description": "Calculated numeric compliance score (0 on failure).",
      +      "maximum": 100,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "cookie_inventory": {
      +      "description": "Detailed cookies and tracking scripts discovered during the scan.",
      +      "items": {
      +        "additionalProperties": false,
      +        "description": "Single detected cookie or client-side tracker entry.",
      +        "properties": {
      +          "category": {
      +            "description": "Regulatory cookie classification.",
      +            "enum": [
      +              "Necessary",
      +              "Analytics",
      +              "Marketing",
      +              "Preferences"
      +            ],
      +            "type": "string"
      +          },
      +          "domain": {
      +            "description": "Target hostname observed during scan.",
      +            "type": "string"
      +          },
      +          "expiry": {
      +            "description": "Retention lifetime or 'Session'.",
      +            "type": "string"
      +          },
      +          "name": {
      +            "description": "Cookie name or identifier (e.g. '_ga', '_fbp').",
      +            "type": "string"
      +          },
      +          "provider": {
      +            "description": "Vendor or host domain setting the cookie.",
      +            "type": "string"
      +          },
      +          "purpose": {
      +            "description": "Human-readable functional or tracking purpose.",
      +            "type": "string"
      +          },
      +          "source": {
      +            "description": "Discovery mechanism: Set-Cookie response header or HTML script signature.",
      +            "enum": [
      +              "http_header",
      +              "detected_script",
      +              "manual"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "name",
      +          "provider",
      +          "category",
      +          "expiry",
      +          "purpose",
      +          "source"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "deep_scan": {
      +      "description": "Whether WCAG & AI Act deep DOM passes were executed.",
      +      "type": "boolean"
      +    },
      +    "error": {
      +      "description": "Present when success is false.",
      +      "type": "string"
      +    },
      +    "findings": {
      +      "description": "Human-readable compliance findings.",
      +      "items": {
      +        "description": "Single human-readable compliance check observation.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "is_https": {
      +      "description": "Whether the target URL uses HTTPS.",
      +      "type": "boolean"
      +    },
      +    "recommendations": {
      +      "description": "Prioritized remediation actions.",
      +      "items": {
      +        "description": "Actionable remediation instruction.",
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "Audit execution status.",
      +      "enum": [
      +        "COMPLETED",
      +        "FAILED"
      +      ],
      +      "type": "string"
      +    },
      +    "success": {
      +      "description": "True if target responded with HTTP < 400; false on invalid URL, DNS/network failure, or HTTP >= 400.",
      +      "type": "boolean"
      +    },
      +    "target_url": {
      +      "description": "Normalized target URL scanned.",
      +      "type": "string"
      +    },
      +    "tests": {
      +      "additionalProperties": false,
      +      "description": "Structured compliance check sub-reports across connectivity, TLS, consent, headers, legal links, WCAG, and EU AI Act.",
      +      "properties": {
      +        "detected_scripts": {
      +          "description": "List of third-party tracking scripts identified in the HTML DOM.",
      +          "items": {
      +            "description": "Detected third-party script or vendor label.",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "detected_trackers_count": {
      +          "description": "Total cookies and tracking scripts observed on initial load.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "eu_ai_act": {
      +          "additionalProperties": false,
      +          "description": "EU AI Act Article 50 chatbot and disclosure check summary (skipped when deep_scan is false).",
      +          "properties": {
      +            "ai_chatbots_detected": {
      +              "description": "AI conversational widgets discovered on the page.",
      +              "items": {
      +                "description": "Detected AI chat widget provider name.",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "status": {
      +              "description": "EU AI Act transparency posture.",
      +              "enum": [
      +                "COMPLIANT",
      +                "NEEDS_DISCLOSURE",
      +                "HIGH_RISK_REVIEW",
      +                "FAILED",
      +                "SKIPPED"
      +              ],
      +              "type": "string"
      +            },
      +            "synthetic_media_disclosures": {
      +              "description": "Whether explicit AI/synthetic interaction disclosure copy was found.",
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "status",
      +            "ai_chatbots_detected",
      +            "synthetic_media_disclosures"
      +          ],
      +          "type": "object"
      +        },
      +        "legal_disclosures": {
      +          "additionalProperties": false,
      +          "description": "Presence check for required statutory policy links in the HTML DOM.",
      +          "properties": {
      +            "ccpa_do_not_sell": {
      +              "description": "California 'Do Not Sell or Share' / 'Your Privacy Choices' link check.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            },
      +            "cookie_policy": {
      +              "description": "Cookie Policy disclosure link check.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            },
      +            "privacy_policy": {
      +              "description": "Privacy Policy link presence (GDPR Art. 13/14 & CCPA).",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            },
      +            "terms_of_service": {
      +              "description": "Terms of Service link presence.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "privacy_policy",
      +            "terms_of_service",
      +            "cookie_policy",
      +            "ccpa_do_not_sell"
      +          ],
      +          "type": "object"
      +        },
      +        "marketing_trackers": {
      +          "description": "Number of advertising/marketing trackers detected.",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "prior_consent_enforcement": {
      +          "description": "GDPR Art. 5(3) pre-consent tracker gating evaluation.",
      +          "enum": [
      +            "PASSED",
      +            "VIOLATION",
      +            "NOT_APPLICABLE"
      +          ],
      +          "type": "string"
      +        },
      +        "security_headers": {
      +          "additionalProperties": false,
      +          "description": "Evaluation of critical HTTP security response headers.",
      +          "properties": {
      +            "csp": {
      +              "description": "Content-Security-Policy header check.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            },
      +            "hsts": {
      +              "description": "Strict-Transport-Security header check.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            },
      +            "x_content_type_options": {
      +              "description": "X-Content-Type-Options MIME-sniffing header check.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            },
      +            "x_frame_options": {
      +              "description": "X-Frame-Options clickjacking header check.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hsts",
      +            "csp",
      +            "x_frame_options",
      +            "x_content_type_options"
      +          ],
      +          "type": "object"
      +        },
      +        "ssl_tls_security": {
      +          "description": "Whether the target enforces HTTPS transport security.",
      +          "enum": [
      +            "PASSED",
      +            "FAILED"
      +          ],
      +          "type": "string"
      +        },
      +        "wcag_accessibility": {
      +          "additionalProperties": false,
      +          "description": "WCAG 2.1 AA DOM accessibility pass summary (skipped when deep_scan is false).",
      +          "properties": {
      +            "landmarks_detected": {
      +              "description": "Semantic landmarks found in the document.",
      +              "items": {
      +                "description": "HTML5 or ARIA landmark tag/role name.",
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "missing_alt_images": {
      +              "description": "Count of <img> elements missing non-empty alt attributes.",
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "score": {
      +              "description": "Accessibility sub-score (0-100).",
      +              "maximum": 100,
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "status": {
      +              "description": "Accessibility check outcome.",
      +              "enum": [
      +                "PASSED",
      +                "WARNING",
      +                "FAILED",
      +                "SKIPPED"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "status",
      +            "score",
      +            "missing_alt_images",
      +            "landmarks_detected"
      +          ],
      +          "type": "object"
      +        },
      +        "website_reachable": {
      +          "description": "Whether the target responded with HTTP < 400.",
      +          "enum": [
      +            "PASSED",
      +            "FAILED"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "website_reachable",
      +        "ssl_tls_security",
      +        "prior_consent_enforcement",
      +        "detected_trackers_count",
      +        "marketing_trackers",
      +        "detected_scripts",
      +        "security_headers",
      +        "legal_disclosures",
      +        "wcag_accessibility",
      +        "eu_ai_act"
      +      ],
      +      "type": "object"
      +    },
      +    "timestamp": {
      +      "description": "ISO-8601 audit completion timestamp.",
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "success",
      +    "audit_id",
      +    "target_url",
      +    "deep_scan",
      +    "compliance_score",
      +    "compliance_grade",
      +    "status",
      +    "is_https",
      +    "timestamp",
      +    "tests",
      +    "findings",
      +    "recommendations",
      +    "cookie_inventory"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"The full website URL to audit"New value: +"The full website URL to audit (e.g. 'https://example.com')"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the supplied annotations (readOnlyHint, openWorldHint, idempotentHint=false, destructiveHint=false), the description discloses the live outbound HTTP GET nature of the operation, the DNS-resolvable public-URL precondition, the no-authentication requirement, and that registered sites are never mutated. The 'status' values COMPLETED/FAILED and the 'error' field for unreachable or invalid targets surface failure behavior that the annotations cannot express. The non-idempotent hint is consistent with a live scan whose findings may change between calls.

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?

The three labeled blocks (when-to-use, preconditions/side effects, returns) front-load the discriminating information and make the text scannable. It loses a point because the 'Returns' block enumerates fields already captured by the output schema, and the deep_scan behavior is effectively described twice. Dense but not padded with filler.

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 graded multi-vector audit tool, the definition covers the preconditions an agent must satisfy (public, DNS-resolvable URL), the alternatives that produce narrower output, the mutation profile, and the failure modes. With an output schema present, the return-value prose is optional rather than a gap. Nothing an agent needs in order to call this correctly is missing.

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 both parameters are already fully documented, which sets the baseline at 3. The description restates the deep_scan semantics (WCAG 2.1 AA DOM accessibility and EU AI Act Art. 50 chatbot disclosures when true) but adds no syntax, cost, or runtime detail beyond what the schema's own deep_scan description already says. The url parameter receives no additional treatment in the description at all.

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?

The description opens with a specific verb and resource ('Executes a live HTTP/HTTPS multi-vector compliance audit against any public website URL') and then enumerates the exact vectors inspected (TLS, security headers, Set-Cookie, trackers, CMP/Consent Mode v2, footer policy links, and deep-scan WCAG/AI Act checks). It explicitly differentiates itself from scan_cookies, audit_accessibility, and audit_ai_transparency by naming what each of those covers instead. An agent can identify this as the broad, graded audit tool without opening any schema.

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?

A dedicated 'When to use vs. related tools' paragraph names three alternatives and the precise condition selecting each ('use scan_cookies when you only need a categorized cookie/tracker inventory without grading'). The precondition paragraph adds a 'no prior add_site registration is required' exclusion that prevents an unnecessary setup step. Both when-to-use and when-not-to-use are covered explicitly.

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.