{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "paperloo.vercel.app",
    "site": "paperloo.vercel.app",
    "addresses": [
      {
        "address": "216.198.79.195",
        "endpoints": 108,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "216.198.79.0/24",
          "country": "US"
        }
      },
      {
        "address": "64.29.17.195",
        "endpoints": 108,
        "shared_infrastructure": true,
        "network": {
          "asn": 16509,
          "name": "AMAZON-02 - Amazon.com, Inc.",
          "prefix": "64.29.17.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "216.198.79.195",
          "64.29.17.195"
        ],
        "first_seen": "2026-11-22T22:07:02.609Z",
        "last_seen": "2026-11-22T22:07:02.609Z",
        "checks": 1
      },
      {
        "addresses": [
          "216.198.79.131",
          "64.29.17.131"
        ],
        "first_seen": "2026-11-21T18:39:01.192Z",
        "last_seen": "2026-11-21T18:39:01.192Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Vercel",
        "evidence": "host name ends in .vercel.app"
      }
    ],
    "software": [],
    "server_info": {
      "name": "io.github.yassinemohamedali11/paperloo",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Vercel",
      "strict-transport-security": "max-age=63072000; includeSubDomains; preload",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 107,
      "sample": [
        {
          "id": "374",
          "url": "https://b4-index.vercel.app/mcp",
          "server_name": "ai.benroberts/b4-index",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:39:01.480Z"
        },
        {
          "id": "4233",
          "url": "https://agent-shopping-tracker.vercel.app/api/mcp",
          "server_name": "app.vercel.agent-shopping-tracker/feed",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:11:04.198Z"
        },
        {
          "id": "4238",
          "url": "https://automaton-tx-explainer.vercel.app/mcp",
          "server_name": "app.vercel.automaton-tx-explainer/base-tools",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:14:01.686Z"
        },
        {
          "id": "4243",
          "url": "https://clearpage-x402.vercel.app/mcp",
          "server_name": "app.vercel.clearpage-x402/clearpage",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:18:01.707Z"
        },
        {
          "id": "4248",
          "url": "https://filingcheck-bot.vercel.app/mcp",
          "server_name": "app.vercel.filingcheck-bot/filingcheck",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:21:02.488Z"
        },
        {
          "id": "4252",
          "url": "https://groundtruth-ruby.vercel.app/api/mcp",
          "server_name": "app.vercel.groundtruth-ruby/groundtruth",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:23:02.234Z"
        },
        {
          "id": "4257",
          "url": "https://jestsprout.vercel.app/mcp",
          "server_name": "app.vercel.jestsprout/jestsprout",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:26:02.589Z"
        },
        {
          "id": "4258",
          "url": "https://krankenkasse-copilot.vercel.app/api/mcp",
          "server_name": "app.vercel.krankenkasse-copilot/krankenkasse-copilot",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:27:00.944Z"
        },
        {
          "id": "4265",
          "url": "https://polyglot-ai-board.vercel.app/api/mcp",
          "server_name": "app.vercel.polyglot-ai-board/board",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:29:03.290Z"
        },
        {
          "id": "4267",
          "url": "https://quran-reels-tau.vercel.app/api/mcp",
          "server_name": "app.vercel.quran-reels-tau/quran-reels-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:30:06.094Z"
        },
        {
          "id": "4268",
          "url": "https://renewalmatrix.vercel.app/api/mcp",
          "server_name": "app.vercel.renewalmatrix/renewalmatrix",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:31:02.052Z"
        },
        {
          "id": "4271",
          "url": "https://rv-kit.vercel.app/mcp",
          "server_name": "app.vercel.rv-kit/rv-kit",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:32:03.032Z"
        },
        {
          "id": "4275",
          "url": "https://triageshield.vercel.app/api/mcp",
          "server_name": "app.vercel.triageshield/triageshield",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:34:03.525Z"
        },
        {
          "id": "5773",
          "url": "https://tasklinkr-mcp-stub.vercel.app/mcp",
          "server_name": "co.tasklinkr/directory",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:38:01.601Z"
        },
        {
          "id": "5774",
          "url": "https://tasklinkr-mcp-stub.vercel.app/mcp/skills",
          "server_name": "co.tasklinkr/skills",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T07:39:01.057Z"
        },
        {
          "id": "13678",
          "url": "https://ghosts-food-services.vercel.app/mcp",
          "server_name": "com.onrender.ghost77-agent/ghosts-food-services",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T15:45:05.691Z"
        },
        {
          "id": "23153",
          "url": "https://tip-overtime-w2.vercel.app/mcp",
          "server_name": "io.github.2016judea/tip-overtime-w2",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T18:20:04.098Z"
        },
        {
          "id": "23391",
          "url": "https://career-workspace-ambujsystems.vercel.app/api/mcp",
          "server_name": "io.github.Ambuj123-lab/covercraft-mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T18:25:04.887Z"
        },
        {
          "id": "23997",
          "url": "https://kr-groundtruth-mcp.vercel.app/api/mcp",
          "server_name": "io.github.ChloePark85/kr-groundtruth",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T18:31:03.573Z"
        },
        {
          "id": "24969",
          "url": "https://harshith-nayaka-l-portfolio.vercel.app/mcp/docs",
          "server_name": "io.github.HarshithNayakaL/portfolio-docs",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T18:40:02.784Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.yassinemohamedali",
      "total": 0,
      "sample": []
    },
    "same_repository": {
      "repository_url": "https://github.com/yassinemohamedali/paperloo",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "40999",
    "server_name": "io.github.yassinemohamedali/paperloo",
    "url": "https://paperloo.vercel.app/api/mcp",
    "host": "paperloo.vercel.app",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T22:07:02.609Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "3a1df9bc1c8eaec94b94a8e44bb879e1d587ba875d75dac5832d78e604b1ae2f",
    "first_listed_at": "2026-11-21T18:39:01.192Z",
    "created_at": "2026-11-21T12:20:13.386Z",
    "resolved_addresses": [
      "216.198.79.195",
      "64.29.17.195"
    ]
  },
  "server": {
    "name": "io.github.yassinemohamedali/paperloo",
    "title": "Paperloo Compliance",
    "description": "Automated website compliance infrastructure and GDPR/CCPA auditing.",
    "version": "1.0.0",
    "registry_status": "active",
    "repository_url": "https://github.com/yassinemohamedali/paperloo",
    "website_url": null,
    "published_at": "2026-10-16T00:54:55.645Z",
    "updated_at": "2026-10-16T00:54:55.645Z",
    "first_seen": "2026-11-21T12:20:13.064Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T15:07:11.635Z"
  },
  "operator": {
    "key": "vercel.app",
    "name": "vercel.app",
    "platform": false,
    "marketplace": true
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 628,
    "first_check_in_window": "2026-11-21T18:39:01.192Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "3a1df9bc1c8eaec94b94a8e44bb879e1d587ba875d75dac5832d78e604b1ae2f",
    "tools": 19,
    "resources": 5,
    "prompts": 3,
    "first_seen": "2026-11-21T18:39:02.046Z",
    "tool_names": [
      "audit_site",
      "audit_accessibility",
      "audit_ai_transparency",
      "configure_cookie_banner",
      "get_cookie_banner_script",
      "get_consent_banner_code",
      "configure_gtm_integration",
      "get_gtm_container_setup",
      "scan_cookies",
      "generate_documents",
      "generate_docs_questionnaire",
      "generate_dpa",
      "verify_compliance",
      "list_sites",
      "get_site",
      "add_site",
      "delete_site",
      "get_questionnaire_schema",
      "export_documents"
    ],
    "declared": {
      "tools": [
        {
          "name": "audit_site",
          "title": "Multi-Vector Website Compliance Audit",
          "description": "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.\n\nWhen 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.\n\nPreconditions & 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.\n\nReturns: 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.",
          "inputSchema": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://paperloo.vercel.app",
                  "https://example.com"
                ],
                "minLength": 4,
                "description": "Full public HTTP or HTTPS URL of the website to audit."
              },
              "deep_scan": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true,
                  false
                ],
                "description": "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."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success",
              "audit_id",
              "target_url",
              "deep_scan",
              "compliance_score",
              "compliance_grade",
              "status",
              "is_https",
              "timestamp",
              "tests",
              "findings",
              "recommendations",
              "cookie_inventory"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Present when success is false."
              },
              "tests": {
                "type": "object",
                "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"
                ],
                "properties": {
                  "eu_ai_act": {
                    "type": "object",
                    "required": [
                      "status",
                      "ai_chatbots_detected",
                      "synthetic_media_disclosures"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "COMPLIANT",
                          "NEEDS_DISCLOSURE",
                          "HIGH_RISK_REVIEW",
                          "FAILED",
                          "SKIPPED"
                        ],
                        "type": "string",
                        "description": "EU AI Act transparency posture."
                      },
                      "ai_chatbots_detected": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "Detected AI chat widget provider name."
                        },
                        "description": "AI conversational widgets discovered on the page."
                      },
                      "synthetic_media_disclosures": {
                        "type": "boolean",
                        "description": "Whether explicit AI/synthetic interaction disclosure copy was found."
                      }
                    },
                    "description": "EU AI Act Article 50 chatbot and disclosure check summary (skipped when deep_scan is false).",
                    "additionalProperties": false
                  },
                  "detected_scripts": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Detected third-party script or vendor label."
                    },
                    "description": "List of third-party tracking scripts identified in the HTML DOM."
                  },
                  "security_headers": {
                    "type": "object",
                    "required": [
                      "hsts",
                      "csp",
                      "x_frame_options",
                      "x_content_type_options"
                    ],
                    "properties": {
                      "csp": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "Content-Security-Policy header check."
                      },
                      "hsts": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "Strict-Transport-Security header check."
                      },
                      "x_frame_options": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "X-Frame-Options clickjacking header check."
                      },
                      "x_content_type_options": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "X-Content-Type-Options MIME-sniffing header check."
                      }
                    },
                    "description": "Evaluation of critical HTTP security response headers.",
                    "additionalProperties": false
                  },
                  "ssl_tls_security": {
                    "enum": [
                      "PASSED",
                      "FAILED"
                    ],
                    "type": "string",
                    "description": "Whether the target enforces HTTPS transport security."
                  },
                  "legal_disclosures": {
                    "type": "object",
                    "required": [
                      "privacy_policy",
                      "terms_of_service",
                      "cookie_policy",
                      "ccpa_do_not_sell"
                    ],
                    "properties": {
                      "cookie_policy": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "Cookie Policy disclosure link check."
                      },
                      "privacy_policy": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "Privacy Policy link presence (GDPR Art. 13/14 & CCPA)."
                      },
                      "ccpa_do_not_sell": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "California 'Do Not Sell or Share' / 'Your Privacy Choices' link check."
                      },
                      "terms_of_service": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED"
                        ],
                        "type": "string",
                        "description": "Terms of Service link presence."
                      }
                    },
                    "description": "Presence check for required statutory policy links in the HTML DOM.",
                    "additionalProperties": false
                  },
                  "website_reachable": {
                    "enum": [
                      "PASSED",
                      "FAILED"
                    ],
                    "type": "string",
                    "description": "Whether the target responded with HTTP < 400."
                  },
                  "marketing_trackers": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Number of advertising/marketing trackers detected."
                  },
                  "wcag_accessibility": {
                    "type": "object",
                    "required": [
                      "status",
                      "score",
                      "missing_alt_images",
                      "landmarks_detected"
                    ],
                    "properties": {
                      "score": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0,
                        "description": "Accessibility sub-score (0-100)."
                      },
                      "status": {
                        "enum": [
                          "PASSED",
                          "WARNING",
                          "FAILED",
                          "SKIPPED"
                        ],
                        "type": "string",
                        "description": "Accessibility check outcome."
                      },
                      "landmarks_detected": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "HTML5 or ARIA landmark tag/role name."
                        },
                        "description": "Semantic landmarks found in the document."
                      },
                      "missing_alt_images": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Count of <img> elements missing non-empty alt attributes."
                      }
                    },
                    "description": "WCAG 2.1 AA DOM accessibility pass summary (skipped when deep_scan is false).",
                    "additionalProperties": false
                  },
                  "detected_trackers_count": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Total cookies and tracking scripts observed on initial load."
                  },
                  "prior_consent_enforcement": {
                    "enum": [
                      "PASSED",
                      "VIOLATION",
                      "NOT_APPLICABLE"
                    ],
                    "type": "string",
                    "description": "GDPR Art. 5(3) pre-consent tracker gating evaluation."
                  }
                },
                "description": "Structured compliance check sub-reports across connectivity, TLS, consent, headers, legal links, WCAG, and EU AI Act.",
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "COMPLETED",
                  "FAILED"
                ],
                "type": "string",
                "description": "Audit execution status."
              },
              "success": {
                "type": "boolean",
                "description": "True if target responded with HTTP < 400; false on invalid URL, DNS/network failure, or HTTP >= 400."
              },
              "audit_id": {
                "type": "string",
                "description": "Unique audit run identifier ('aud_*')."
              },
              "findings": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Single human-readable compliance check observation."
                },
                "description": "Human-readable compliance findings."
              },
              "is_https": {
                "type": "boolean",
                "description": "Whether the target URL uses HTTPS."
              },
              "deep_scan": {
                "type": "boolean",
                "description": "Whether WCAG & AI Act deep DOM passes were executed."
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "description": "ISO-8601 audit completion timestamp."
              },
              "target_url": {
                "type": "string",
                "description": "Normalized target URL scanned."
              },
              "recommendations": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Actionable remediation instruction."
                },
                "description": "Prioritized remediation actions."
              },
              "compliance_grade": {
                "enum": [
                  "A+",
                  "A",
                  "B",
                  "C",
                  "D",
                  "F",
                  "FAILED"
                ],
                "type": "string",
                "description": "Letter grade capped by critical HTTPS or ePrivacy violations; 'FAILED' if unreachable."
              },
              "compliance_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0,
                "description": "Calculated numeric compliance score (0 on failure)."
              },
              "cookie_inventory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "provider",
                    "category",
                    "expiry",
                    "purpose",
                    "source"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                    },
                    "domain": {
                      "type": "string",
                      "description": "Target hostname observed during scan."
                    },
                    "expiry": {
                      "type": "string",
                      "description": "Retention lifetime or 'Session'."
                    },
                    "source": {
                      "enum": [
                        "http_header",
                        "detected_script",
                        "manual"
                      ],
                      "type": "string",
                      "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                    },
                    "purpose": {
                      "type": "string",
                      "description": "Human-readable functional or tracking purpose."
                    },
                    "category": {
                      "enum": [
                        "Necessary",
                        "Analytics",
                        "Marketing",
                        "Preferences"
                      ],
                      "type": "string",
                      "description": "Regulatory cookie classification."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Vendor or host domain setting the cookie."
                    }
                  },
                  "description": "Single detected cookie or client-side tracker entry.",
                  "additionalProperties": false
                },
                "description": "Detailed cookies and tracking scripts discovered during the scan."
              }
            },
            "description": "Comprehensive multi-vector compliance audit report.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "audit_accessibility",
          "title": "WCAG 2.1 & Section 508 Accessibility Audit",
          "description": "Performs a focused HTML DOM accessibility evaluation on a target URL against WCAG 2.1 AA, WCAG 2.1 AAA, or U.S. Section 508 standards. Inspects missing image 'alt' attributes (SC 1.1.1), HTML5 semantic/ARIA landmarks (SC 1.3.1), programmatic form input labels (SC 3.3.2), document '<title>' presence (SC 2.4.2), and '<html lang>' declaration (SC 3.1.1), applying standard-specific grading thresholds.\n\nWhen to use vs. related tools: Call 'audit_accessibility' when you need granular accessibility counts, standard-specific grading (including WCAG_2.1_AAA or Section_508), and remediation items without privacy/cookie auditing. Call 'audit_site' for combined privacy + security + accessibility scoring.\n\nPreconditions & side effects: Requires a reachable public HTTP(S) URL; no registry siteId or authentication required. Read-only live HTTP inspection with zero state mutation.\n\nReturns: JSON object containing 'success', 'audit_id', 'target_url', 'standard', 'accessibility_score' (0-100), 'wcag_compliance_grade' ('AAA' | 'AA' | 'A' | 'CONFORMANT' | 'NON_COMPLIANT'), itemized 'metrics', 'violations', 'remediation_actions', 'timestamp', and optional 'error'.",
          "inputSchema": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://paperloo.vercel.app"
                ],
                "minLength": 4,
                "description": "Full public HTTP or HTTPS URL of the webpage to audit for accessibility."
              },
              "standard": {
                "enum": [
                  "WCAG_2.1_AA",
                  "WCAG_2.1_AAA",
                  "Section_508"
                ],
                "type": "string",
                "default": "WCAG_2.1_AA",
                "examples": [
                  "WCAG_2.1_AA",
                  "WCAG_2.1_AAA"
                ],
                "description": "Accessibility conformance standard and grading threshold to evaluate against."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success",
              "audit_id",
              "target_url",
              "standard",
              "accessibility_score",
              "wcag_compliance_grade",
              "metrics",
              "violations",
              "remediation_actions",
              "timestamp"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Failure reason when target is unreachable or input is invalid."
              },
              "metrics": {
                "type": "object",
                "required": [
                  "total_images",
                  "images_missing_alt",
                  "images_compliant",
                  "landmarks_detected",
                  "missing_form_labels",
                  "has_document_title",
                  "has_html_lang"
                ],
                "properties": {
                  "total_images": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Total <img> elements inspected."
                  },
                  "has_html_lang": {
                    "type": "boolean",
                    "description": "Whether the <html> tag specifies a valid lang attribute."
                  },
                  "images_compliant": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Count of <img> tags with valid alt attributes."
                  },
                  "has_document_title": {
                    "type": "boolean",
                    "description": "Whether a non-empty <title> element is present."
                  },
                  "images_missing_alt": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Count of <img> tags lacking alt text."
                  },
                  "landmarks_detected": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Detected semantic landmark name."
                    },
                    "description": "Semantic HTML5/ARIA landmarks present on the page."
                  },
                  "missing_form_labels": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Count of form controls missing programmatic labels."
                  }
                },
                "description": "Granular DOM accessibility counts and flags.",
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "description": "True if target URL was reachable and parsed; false otherwise."
              },
              "audit_id": {
                "type": "string",
                "description": "Unique accessibility audit identifier ('a11y_*')."
              },
              "standard": {
                "enum": [
                  "WCAG_2.1_AA",
                  "WCAG_2.1_AAA",
                  "Section_508"
                ],
                "type": "string",
                "description": "Accessibility standard applied during grading."
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "description": "ISO-8601 audit completion timestamp."
              },
              "target_url": {
                "type": "string",
                "description": "Target URL audited."
              },
              "violations": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Specific WCAG or Section 508 violation description."
                },
                "description": "List of detected accessibility violations."
              },
              "accessibility_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0,
                "description": "Computed DOM accessibility score (0-100)."
              },
              "remediation_actions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Recommended engineering fix for a violation."
                },
                "description": "Prioritized remediation steps mapped to detected violations."
              },
              "wcag_compliance_grade": {
                "enum": [
                  "AAA",
                  "AA",
                  "A",
                  "CONFORMANT",
                  "NON_COMPLIANT"
                ],
                "type": "string",
                "description": "Standard-specific conformance grade."
              }
            },
            "description": "Detailed accessibility inspection report.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "audit_ai_transparency",
          "title": "EU AI Act Transparency Audit",
          "description": "Evaluates a live website URL for European Union Artificial Intelligence Act (Regulation (EU) 2024/1689) Article 50 transparency compliance and GDPR Article 22 automated decision-making readiness. Scans page HTML for embedded conversational AI assistants (Intercom Fin, Crisp, Chatbase, Voiceflow, Botpress, Tidio Lyro, Zendesk AI), checks for explicit AI/synthetic-content disclosure language, and reports tracked AI crawler policy slots (GPTBot, CCBot, ClaudeBot, Anthropic-ai, Google-Extended).\n\nWhen to use vs. related tools: Call 'audit_ai_transparency' when specifically assessing EU AI Act Article 50 chatbot/synthetic disclosures and statutory mandates. Call 'audit_site' for a full GDPR/CCPA/security/WCAG/AI combined audit.\n\nPreconditions & side effects: Requires a public HTTP(S) URL; no authentication or site registration needed. Read-only live HTTP inspection.\n\nReturns: JSON object containing 'success', 'audit_id', 'target_url', 'ai_act_compliance_status' ('COMPLIANT' | 'NEEDS_DISCLOSURE' | 'HIGH_RISK_REVIEW'), 'regulatory_framework', 'findings', 'statutory_mandates', 'action_items', 'timestamp', and optional 'error'.",
          "inputSchema": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://paperloo.vercel.app"
                ],
                "minLength": 4,
                "description": "Full public HTTP or HTTPS URL of the website to evaluate for EU AI Act transparency obligations."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success",
              "audit_id",
              "target_url",
              "ai_act_compliance_status",
              "regulatory_framework",
              "findings",
              "statutory_mandates",
              "action_items",
              "timestamp"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Failure details when success is false."
              },
              "success": {
                "type": "boolean",
                "description": "True if the target URL was reachable and scanned; false otherwise."
              },
              "audit_id": {
                "type": "string",
                "description": "Unique AI transparency audit identifier ('ai_*')."
              },
              "findings": {
                "type": "object",
                "required": [
                  "ai_chatbots_detected",
                  "synthetic_media_disclosed",
                  "crawler_directives"
                ],
                "properties": {
                  "crawler_directives": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "bot",
                        "status"
                      ],
                      "properties": {
                        "bot": {
                          "type": "string",
                          "description": "AI crawler user-agent identifier (e.g. 'GPTBot')."
                        },
                        "status": {
                          "enum": [
                            "allowed",
                            "disallowed",
                            "not_specified"
                          ],
                          "type": "string",
                          "description": "Directive policy status."
                        }
                      },
                      "description": "Crawler directive status for an AI training bot.",
                      "additionalProperties": false
                    },
                    "description": "Evaluated AI crawler access directives."
                  },
                  "ai_chatbots_detected": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Detected conversational AI provider name."
                    },
                    "description": "Embedded conversational AI assistants identified in the DOM."
                  },
                  "synthetic_media_disclosed": {
                    "type": "boolean",
                    "description": "Whether explicit AI/automated interaction notice language was present."
                  }
                },
                "description": "AI widget, disclosure, and crawler directive findings.",
                "additionalProperties": false
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "description": "ISO-8601 audit completion timestamp."
              },
              "target_url": {
                "type": "string",
                "description": "Normalized target URL inspected."
              },
              "action_items": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Recommended compliance or disclosure action."
                },
                "description": "Remediation or confirmation actions."
              },
              "statutory_mandates": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Applicable EU AI Act or GDPR legal requirement citation."
                },
                "description": "Relevant statutory mandates cited for this audit."
              },
              "regulatory_framework": {
                "type": "string",
                "description": "Primary statute evaluated (EU AI Act Regulation (EU) 2024/1689)."
              },
              "ai_act_compliance_status": {
                "enum": [
                  "COMPLIANT",
                  "NEEDS_DISCLOSURE",
                  "HIGH_RISK_REVIEW"
                ],
                "type": "string",
                "description": "EU AI Act Article 50 transparency status."
              }
            },
            "description": "EU AI Act Article 50 transparency audit report.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "configure_cookie_banner",
          "title": "Configure Site Cookie Consent Banner",
          "description": "Updates and persists the cookie consent banner UI configuration, Google Consent Mode v2 synchronization, and pre-consent tracker blocking rules for an existing monitored site.\n\nWhen to use vs. related tools: Call 'configure_cookie_banner' first to customize visual theme, placement, copy, accent hex color, and GCM v2 blocking flags on a registered site; afterward, call 'get_cookie_banner_script' (for CMS/web embeds) or 'get_consent_banner_code' (for GCM v2 Basic/Advanced code). Call 'list_sites' or 'add_site' first if you do not have a valid 'siteId'.\n\nPreconditions & side effects: 'siteId' MUST match an existing site ID or registered domain in the workspace registry (no silent fallback to default sites). Mutates the target site's 'cookie_banner' configuration in-memory.\n\nReturns: On success, returns 'success: true', 'siteId', 'site_name', persisted 'banner_configuration', 'preview_url', 'embed_script', and 'message'. On invalid accent color or unknown siteId, returns 'success: false', 'error', and 'available_sites'.",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "theme": {
                "enum": [
                  "dark",
                  "light",
                  "glassmorphism",
                  "auto"
                ],
                "type": "string",
                "default": "dark",
                "examples": [
                  "dark",
                  "glassmorphism"
                ],
                "description": "Visual appearance preset for the consent banner."
              },
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox",
                  "site_demo_store"
                ],
                "minLength": 1,
                "description": "Registered site UUID (e.g. 'site_paperloo_sandbox') or exact registered domain URL."
              },
              "position": {
                "enum": [
                  "bottom",
                  "top",
                  "bottom_right",
                  "bottom_left",
                  "center_modal"
                ],
                "type": "string",
                "default": "bottom",
                "examples": [
                  "bottom",
                  "bottom_right"
                ],
                "description": "Viewport anchor position for the banner or consent modal."
              },
              "accent_color": {
                "type": "string",
                "default": "#c8f135",
                "pattern": "^#[0-9a-fA-F]{6}$",
                "examples": [
                  "#c8f135",
                  "#10b981"
                ],
                "description": "6-digit hexadecimal color code for primary accept buttons and highlights."
              },
              "banner_title": {
                "type": "string",
                "default": "Privacy & Cookie Preferences",
                "examples": [
                  "Privacy & Cookie Preferences"
                ],
                "maxLength": 120,
                "minLength": 1,
                "description": "Primary heading displayed at the top of the cookie consent notice."
              },
              "enable_gcm_v2": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Enable automatic synchronization with Google Consent Mode v2 signals."
              },
              "banner_message": {
                "type": "string",
                "examples": [
                  "We use essential and analytics cookies to measure traffic and improve your experience."
                ],
                "maxLength": 600,
                "minLength": 1,
                "description": "Explanatory consent body copy shown to visitors before choice selection."
              },
              "auto_block_trackers": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Withhold non-essential analytics and marketing tags until affirmative user opt-in."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation or lookup error when success is false."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "message": {
                "type": "string",
                "description": "Human-readable confirmation message."
              },
              "success": {
                "type": "boolean",
                "description": "True if banner settings were validated and saved; false otherwise."
              },
              "site_name": {
                "type": "string",
                "description": "Human-readable name of the updated site."
              },
              "preview_url": {
                "type": "string",
                "format": "uri",
                "description": "Interactive Paperloo preview URL for the banner."
              },
              "embed_script": {
                "type": "string",
                "description": "Ready-to-paste HTML script tag loading the configured banner."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId is not found."
              },
              "banner_configuration": {
                "type": "object",
                "required": [
                  "theme",
                  "position",
                  "banner_title",
                  "banner_message",
                  "enable_gcm_v2",
                  "auto_block_trackers",
                  "accent_color",
                  "categories",
                  "updated_at"
                ],
                "properties": {
                  "theme": {
                    "enum": [
                      "dark",
                      "light",
                      "glassmorphism",
                      "auto"
                    ],
                    "type": "string",
                    "description": "Applied banner theme preset."
                  },
                  "position": {
                    "enum": [
                      "bottom",
                      "top",
                      "bottom_right",
                      "bottom_left",
                      "center_modal"
                    ],
                    "type": "string",
                    "description": "Applied viewport anchor position."
                  },
                  "categories": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Consent category identifier."
                    },
                    "description": "Consent categories enabled on the banner."
                  },
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO-8601 timestamp of this configuration update."
                  },
                  "accent_color": {
                    "type": "string",
                    "pattern": "^#[0-9a-fA-F]{6}$",
                    "description": "6-digit hex accent color applied to primary actions."
                  },
                  "banner_title": {
                    "type": "string",
                    "description": "Heading text displayed on the banner."
                  },
                  "enable_gcm_v2": {
                    "type": "boolean",
                    "description": "Whether Google Consent Mode v2 sync is enabled."
                  },
                  "banner_message": {
                    "type": "string",
                    "description": "Explanatory consent body copy."
                  },
                  "auto_block_trackers": {
                    "type": "boolean",
                    "description": "Whether prior-consent script blocking is active."
                  }
                },
                "description": "Saved cookie consent banner configuration object.",
                "additionalProperties": false
              }
            },
            "description": "Result of updating a site's cookie consent banner configuration.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_cookie_banner_script",
          "title": "Get Framework Cookie Banner Embed Script",
          "description": "Generates a ready-to-deploy cookie consent banner embed snippet tailored to a target web framework or CMS ('html', 'react', 'nextjs', 'wordpress', 'webflow', 'shopify') with Google Consent Mode v2 default 'denied' initialization.\n\nWhen to use vs. related tools: Call 'get_cookie_banner_script' when integrating into a CMS (WordPress PHP hook, Webflow head embed, Shopify theme.liquid) or standard React/Next.js/HTML app. Call 'get_consent_banner_code' instead if you need Vue 3 support, explicit selection between 'v2_basic' (blocking) vs 'v2_advanced' (cookieless pings) GCM v2 modes, or consent update event listeners. Call 'configure_cookie_banner' beforehand to customize banner styling.\n\nPreconditions & side effects: 'siteId' must exist in the active registry. Read-only code generation—does not mutate site state.\n\nReturns: JSON object with 'success', 'siteId', 'site_name', 'framework', 'embed_code', 'gcm_default_state', and 'instructions' (or 'success: false' and 'error' if not found).",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL."
              },
              "framework": {
                "enum": [
                  "html",
                  "react",
                  "nextjs",
                  "wordpress",
                  "webflow",
                  "shopify"
                ],
                "type": "string",
                "default": "html",
                "examples": [
                  "html",
                  "nextjs",
                  "shopify",
                  "wordpress"
                ],
                "description": "Target frontend framework or CMS platform for code generation."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Error message if siteId or framework is invalid."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "success": {
                "type": "boolean",
                "description": "True if snippet generation succeeded; false otherwise."
              },
              "framework": {
                "enum": [
                  "html",
                  "react",
                  "nextjs",
                  "wordpress",
                  "webflow",
                  "shopify"
                ],
                "type": "string",
                "description": "Framework or CMS format used to render the snippet."
              },
              "site_name": {
                "type": "string",
                "description": "Display name of the target site."
              },
              "embed_code": {
                "type": "string",
                "description": "Framework-specific banner and GCM v2 initialization code."
              },
              "instructions": {
                "type": "string",
                "description": "Deployment placement instructions for the chosen framework."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              },
              "gcm_default_state": {
                "type": "object",
                "required": [
                  "ad_storage",
                  "analytics_storage",
                  "ad_user_data",
                  "ad_personalization"
                ],
                "properties": {
                  "ad_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_storage."
                  },
                  "ad_user_data": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_user_data."
                  },
                  "analytics_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for analytics_storage."
                  },
                  "ad_personalization": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_personalization."
                  }
                },
                "description": "Google Consent Mode v2 default signal values reflected in the snippet.",
                "additionalProperties": false
              }
            },
            "description": "Framework-tailored cookie banner embed snippet and default GCM v2 state.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_consent_banner_code",
          "title": "Get Google Consent Mode v2 Developer Code",
          "description": "Generates developer-oriented Google Consent Mode v2 banner integration code with configurable 'gtm_mode' ('v2_basic' strict tag-blocking vs 'v2_advanced' cookieless behavioral modeling with 'ads_data_redaction' and 'wait_for_update') and dynamic 'paperloo_consent_update' listener snippets across 'html', 'react', 'nextjs', and 'vue'.\n\nWhen to use vs. related tools: Choose 'get_consent_banner_code' over 'get_cookie_banner_script' when building custom frontend apps (including Vue 3) or when explicitly selecting Basic vs. Advanced Google Consent Mode v2 behavior. Choose 'get_cookie_banner_script' for CMS embeds (WordPress, Webflow, Shopify). Choose 'get_gtm_container_setup' for full Google Tag Manager container '<head>'/'<body>' snippets.\n\nPreconditions & side effects: 'siteId' must match a registered site in the active registry. Read-only operation.\n\nReturns: JSON object containing 'success', 'siteId', 'site_name', 'framework', 'gtm_mode', 'embed_code', 'gcm_default_state', 'consent_update_listener', and 'instructions' (or 'error' on failure).",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL."
              },
              "gtm_mode": {
                "enum": [
                  "v2_basic",
                  "v2_advanced"
                ],
                "type": "string",
                "default": "v2_advanced",
                "examples": [
                  "v2_advanced",
                  "v2_basic"
                ],
                "description": "'v2_basic' withholds tag execution until consent; 'v2_advanced' initializes denied defaults with cookieless pings, wait_for_update, and ads_data_redaction."
              },
              "framework": {
                "enum": [
                  "html",
                  "react",
                  "nextjs",
                  "vue"
                ],
                "type": "string",
                "default": "html",
                "examples": [
                  "html",
                  "nextjs",
                  "vue"
                ],
                "description": "Target JavaScript/HTML framework for generated code."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Error message if validation or site lookup fails."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "success": {
                "type": "boolean",
                "description": "True if code generation succeeded; false otherwise."
              },
              "gtm_mode": {
                "enum": [
                  "v2_basic",
                  "v2_advanced"
                ],
                "type": "string",
                "description": "Google Consent Mode v2 integration mode."
              },
              "framework": {
                "enum": [
                  "html",
                  "react",
                  "nextjs",
                  "vue"
                ],
                "type": "string",
                "description": "Target frontend framework."
              },
              "site_name": {
                "type": "string",
                "description": "Display name of the target site."
              },
              "embed_code": {
                "type": "string",
                "description": "Framework-specific GCM v2 initialization and Paperloo script snippet."
              },
              "instructions": {
                "type": "string",
                "description": "Integration guidance for the selected GCM v2 mode."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              },
              "gcm_default_state": {
                "type": "object",
                "required": [
                  "ad_storage",
                  "analytics_storage",
                  "ad_user_data",
                  "ad_personalization"
                ],
                "properties": {
                  "ad_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_storage."
                  },
                  "ad_user_data": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_user_data."
                  },
                  "analytics_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for analytics_storage."
                  },
                  "ad_personalization": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_personalization."
                  }
                },
                "description": "GCM v2 default storage flags applied before visitor interaction.",
                "additionalProperties": false
              },
              "consent_update_listener": {
                "type": "string",
                "description": "JavaScript listener snippet forwarding 'paperloo_consent_update' events to gtag('consent', 'update')."
              }
            },
            "description": "GCM v2 developer snippet with dynamic consent update listener.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "configure_gtm_integration",
          "title": "Configure Google Tag Manager & Consent Mode v2",
          "description": "Configures and saves a Google Tag Manager (GTM) container binding and initial Google Consent Mode v2 storage signal defaults ('ad_storage', 'analytics_storage', 'ad_user_data', 'ad_personalization') plus 'paperloo_consent_update' dataLayer trigger settings for a registered site.\n\nWhen to use vs. related tools: Call 'configure_gtm_integration' to store a GTM container ID and default consent states on a site; call 'get_gtm_container_setup' afterward to retrieve the rendered '<head>'/'<body>' GTM snippets reflecting those saved defaults.\n\nPreconditions & side effects: 'siteId' must match a registered site, and 'gtm_container_id' must match '^GTM-[A-Z0-9]{4,12}$'. Mutates the site's 'gtm' object in the active registry.\n\nReturns: JSON object with 'success: true', 'siteId', 'site_name', saved 'gtm_configuration', and 'message' (or 'success: false' and 'error').",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId",
              "gtm_container_id"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL."
              },
              "trigger_events": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Dispatch a custom 'paperloo_consent_update' event to window.dataLayer whenever visitor consent changes."
              },
              "gtm_container_id": {
                "type": "string",
                "pattern": "^GTM-[A-Z0-9]{4,12}$",
                "examples": [
                  "GTM-PAPERLOO",
                  "GTM-W89K2P"
                ],
                "description": "Google Tag Manager Container ID starting with 'GTM-' followed by 4-12 uppercase alphanumeric characters."
              },
              "default_ad_storage": {
                "enum": [
                  "denied",
                  "granted"
                ],
                "type": "string",
                "default": "denied",
                "examples": [
                  "denied"
                ],
                "description": "Initial GCM v2 default for advertising cookies before user interaction."
              },
              "default_ad_user_data": {
                "enum": [
                  "denied",
                  "granted"
                ],
                "type": "string",
                "default": "denied",
                "examples": [
                  "denied"
                ],
                "description": "Initial GCM v2 default for sending user data to Google for advertising."
              },
              "default_analytics_storage": {
                "enum": [
                  "denied",
                  "granted"
                ],
                "type": "string",
                "default": "denied",
                "examples": [
                  "denied"
                ],
                "description": "Initial GCM v2 default for analytics cookies before user interaction."
              },
              "default_ad_personalization": {
                "enum": [
                  "denied",
                  "granted"
                ],
                "type": "string",
                "default": "denied",
                "examples": [
                  "denied"
                ],
                "description": "Initial GCM v2 default for personalized advertising / remarketing."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation or site lookup error message."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "message": {
                "type": "string",
                "description": "Human-readable confirmation status."
              },
              "success": {
                "type": "boolean",
                "description": "True if GTM configuration was validated and persisted; false otherwise."
              },
              "site_name": {
                "type": "string",
                "description": "Display name of the updated site."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              },
              "gtm_configuration": {
                "type": "object",
                "required": [
                  "gtm_container_id",
                  "default_ad_storage",
                  "default_analytics_storage",
                  "default_ad_user_data",
                  "default_ad_personalization",
                  "trigger_events",
                  "updated_at"
                ],
                "properties": {
                  "updated_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO-8601 timestamp of the update."
                  },
                  "trigger_events": {
                    "type": "boolean",
                    "description": "Whether consent changes emit dataLayer events."
                  },
                  "gtm_container_id": {
                    "type": "string",
                    "description": "Normalized Google Tag Manager container ID."
                  },
                  "default_ad_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Persisted default for ad_storage."
                  },
                  "default_ad_user_data": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Persisted default for ad_user_data."
                  },
                  "default_analytics_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Persisted default for analytics_storage."
                  },
                  "default_ad_personalization": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Persisted default for ad_personalization."
                  }
                },
                "description": "Saved GTM container binding and consent default states.",
                "additionalProperties": false
              }
            },
            "description": "Saved Google Tag Manager and GCM v2 configuration result.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_gtm_container_setup",
          "title": "Get Google Tag Manager Installation Snippets",
          "description": "Generates ready-to-install Google Tag Manager '<head>' and '<body>' ('<noscript>') snippets pre-populated with Google Consent Mode v2 default signals and custom dataLayer consent trigger recipes for a registered site.\n\nWhen to use vs. related tools: Call 'get_gtm_container_setup' after 'configure_gtm_integration' (or with an explicit 'gtm_container_id' override) when installing GTM directly. Call 'get_cookie_banner_script' or 'get_consent_banner_code' to embed the Paperloo consent UI banner script itself.\n\nPreconditions & side effects: 'siteId' must exist in the active registry. Uses 'gtm_container_id' override if provided, otherwise reads the container ID and GCM v2 defaults stored on the site. Read-only operation.\n\nReturns: JSON object with 'success', 'siteId', 'gtm_container_id', 'head_snippet', 'body_snippet', 'consent_defaults', and 'consent_triggers' (or 'error' on failure).",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL."
              },
              "gtm_container_id": {
                "type": "string",
                "pattern": "^GTM-[A-Z0-9]{4,12}$",
                "examples": [
                  "GTM-W89K2P"
                ],
                "description": "Optional GTM Container ID override; defaults to the container ID already saved on the site."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Error message if site lookup or container override fails."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "success": {
                "type": "boolean",
                "description": "True if GTM setup snippets were generated; false otherwise."
              },
              "body_snippet": {
                "type": "string",
                "description": "Fallback <noscript> iframe snippet for <body>."
              },
              "head_snippet": {
                "type": "string",
                "description": "Script snippet for <head> initializing GCM v2 defaults and loading GTM."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              },
              "consent_defaults": {
                "type": "object",
                "required": [
                  "ad_storage",
                  "analytics_storage",
                  "ad_user_data",
                  "ad_personalization"
                ],
                "properties": {
                  "ad_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_storage."
                  },
                  "ad_user_data": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_user_data."
                  },
                  "analytics_storage": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for analytics_storage."
                  },
                  "ad_personalization": {
                    "enum": [
                      "denied",
                      "granted"
                    ],
                    "type": "string",
                    "description": "Default state for ad_personalization."
                  }
                },
                "description": "GCM v2 default storage signals embedded in the head snippet.",
                "additionalProperties": false
              },
              "consent_triggers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "event",
                    "description"
                  ],
                  "properties": {
                    "event": {
                      "type": "string",
                      "description": "Custom dataLayer event name."
                    },
                    "description": {
                      "type": "string",
                      "description": "When the custom event fires."
                    }
                  },
                  "description": "GTM custom event trigger specification.",
                  "additionalProperties": false
                },
                "description": "Custom dataLayer trigger definitions to configure inside GTM."
              },
              "gtm_container_id": {
                "type": "string",
                "description": "GTM container ID embedded in the snippets."
              }
            },
            "description": "Google Tag Manager installation snippets and consent triggers.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "scan_cookies",
          "title": "Live Website Cookie & Tracker Inventory Scan",
          "description": "Performs a live HTTP GET scan on a target website URL to inspect 'Set-Cookie' response headers and third-party tracking scripts in the HTML (such as Google Analytics 4, Google Ads, Meta Pixel, TikTok, Hotjar, Clarity, LinkedIn, Stripe, HubSpot, Intercom, Cloudflare), returning a categorized inventory grouped into Necessary, Analytics, Marketing, and Preferences.\n\nWhen to use vs. related tools: Call 'scan_cookies' when you specifically want the categorized cookie and tracker inventory to populate a Cookie Policy or inspect third-party scripts. Call 'audit_site' instead when you also want security header checks, legal link verification, accessibility, AI Act checks, and an overall compliance score.\n\nPreconditions & side effects: Requires a reachable public HTTP(S) URL; no registry siteId or authentication needed. Read-only live HTTP inspection.\n\nReturns: JSON object containing 'success', 'reachable', 'url', 'total_cookies', 'scripts_detected', 'categorized_inventory' (grouped arrays), 'all_cookies', 'cookie_inventory', 'message', and optional 'error'.",
          "inputSchema": {
            "type": "object",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://paperloo.vercel.app"
                ],
                "minLength": 4,
                "description": "Full public HTTP or HTTPS URL to scan for Set-Cookie headers and third-party tracker scripts."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success",
              "reachable",
              "url",
              "total_cookies",
              "scripts_detected",
              "categorized_inventory",
              "all_cookies",
              "cookie_inventory",
              "message"
            ],
            "properties": {
              "url": {
                "type": "string",
                "description": "Normalized target URL scanned."
              },
              "error": {
                "type": "string",
                "description": "Error message if target was unreachable or invalid."
              },
              "message": {
                "type": "string",
                "description": "Human-readable summary of scan outcome."
              },
              "success": {
                "type": "boolean",
                "description": "True if target URL was scanned successfully; false on invalid URL or network/HTTP failure."
              },
              "reachable": {
                "type": "boolean",
                "description": "Whether the target host responded to HTTP inspection."
              },
              "all_cookies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "provider",
                    "category",
                    "expiry",
                    "purpose",
                    "source"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                    },
                    "domain": {
                      "type": "string",
                      "description": "Target hostname observed during scan."
                    },
                    "expiry": {
                      "type": "string",
                      "description": "Retention lifetime or 'Session'."
                    },
                    "source": {
                      "enum": [
                        "http_header",
                        "detected_script",
                        "manual"
                      ],
                      "type": "string",
                      "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                    },
                    "purpose": {
                      "type": "string",
                      "description": "Human-readable functional or tracking purpose."
                    },
                    "category": {
                      "enum": [
                        "Necessary",
                        "Analytics",
                        "Marketing",
                        "Preferences"
                      ],
                      "type": "string",
                      "description": "Regulatory cookie classification."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Vendor or host domain setting the cookie."
                    }
                  },
                  "description": "Single detected cookie or client-side tracker entry.",
                  "additionalProperties": false
                },
                "description": "Flat array of all discovered cookie and tracker items."
              },
              "total_cookies": {
                "type": "integer",
                "minimum": 0,
                "description": "Total cookies and inferred tracker entries discovered."
              },
              "cookie_inventory": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "provider",
                    "category",
                    "expiry",
                    "purpose",
                    "source"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                    },
                    "domain": {
                      "type": "string",
                      "description": "Target hostname observed during scan."
                    },
                    "expiry": {
                      "type": "string",
                      "description": "Retention lifetime or 'Session'."
                    },
                    "source": {
                      "enum": [
                        "http_header",
                        "detected_script",
                        "manual"
                      ],
                      "type": "string",
                      "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                    },
                    "purpose": {
                      "type": "string",
                      "description": "Human-readable functional or tracking purpose."
                    },
                    "category": {
                      "enum": [
                        "Necessary",
                        "Analytics",
                        "Marketing",
                        "Preferences"
                      ],
                      "type": "string",
                      "description": "Regulatory cookie classification."
                    },
                    "provider": {
                      "type": "string",
                      "description": "Vendor or host domain setting the cookie."
                    }
                  },
                  "description": "Single detected cookie or client-side tracker entry.",
                  "additionalProperties": false
                },
                "description": "Alias of all_cookies for schema compatibility with audit_site."
              },
              "scripts_detected": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Detected third-party tracking script or vendor name."
                },
                "description": "Vendor script signatures matched in the page HTML."
              },
              "categorized_inventory": {
                "type": "object",
                "required": [
                  "necessary",
                  "analytics",
                  "marketing",
                  "preferences"
                ],
                "properties": {
                  "analytics": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "provider",
                        "category",
                        "expiry",
                        "purpose",
                        "source"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                        },
                        "domain": {
                          "type": "string",
                          "description": "Target hostname observed during scan."
                        },
                        "expiry": {
                          "type": "string",
                          "description": "Retention lifetime or 'Session'."
                        },
                        "source": {
                          "enum": [
                            "http_header",
                            "detected_script",
                            "manual"
                          ],
                          "type": "string",
                          "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                        },
                        "purpose": {
                          "type": "string",
                          "description": "Human-readable functional or tracking purpose."
                        },
                        "category": {
                          "enum": [
                            "Necessary",
                            "Analytics",
                            "Marketing",
                            "Preferences"
                          ],
                          "type": "string",
                          "description": "Regulatory cookie classification."
                        },
                        "provider": {
                          "type": "string",
                          "description": "Vendor or host domain setting the cookie."
                        }
                      },
                      "description": "Single detected cookie or client-side tracker entry.",
                      "additionalProperties": false
                    },
                    "description": "Audience measurement and analytics trackers."
                  },
                  "marketing": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "provider",
                        "category",
                        "expiry",
                        "purpose",
                        "source"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                        },
                        "domain": {
                          "type": "string",
                          "description": "Target hostname observed during scan."
                        },
                        "expiry": {
                          "type": "string",
                          "description": "Retention lifetime or 'Session'."
                        },
                        "source": {
                          "enum": [
                            "http_header",
                            "detected_script",
                            "manual"
                          ],
                          "type": "string",
                          "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                        },
                        "purpose": {
                          "type": "string",
                          "description": "Human-readable functional or tracking purpose."
                        },
                        "category": {
                          "enum": [
                            "Necessary",
                            "Analytics",
                            "Marketing",
                            "Preferences"
                          ],
                          "type": "string",
                          "description": "Regulatory cookie classification."
                        },
                        "provider": {
                          "type": "string",
                          "description": "Vendor or host domain setting the cookie."
                        }
                      },
                      "description": "Single detected cookie or client-side tracker entry.",
                      "additionalProperties": false
                    },
                    "description": "Advertising, retargeting, and conversion pixels."
                  },
                  "necessary": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "provider",
                        "category",
                        "expiry",
                        "purpose",
                        "source"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                        },
                        "domain": {
                          "type": "string",
                          "description": "Target hostname observed during scan."
                        },
                        "expiry": {
                          "type": "string",
                          "description": "Retention lifetime or 'Session'."
                        },
                        "source": {
                          "enum": [
                            "http_header",
                            "detected_script",
                            "manual"
                          ],
                          "type": "string",
                          "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                        },
                        "purpose": {
                          "type": "string",
                          "description": "Human-readable functional or tracking purpose."
                        },
                        "category": {
                          "enum": [
                            "Necessary",
                            "Analytics",
                            "Marketing",
                            "Preferences"
                          ],
                          "type": "string",
                          "description": "Regulatory cookie classification."
                        },
                        "provider": {
                          "type": "string",
                          "description": "Vendor or host domain setting the cookie."
                        }
                      },
                      "description": "Single detected cookie or client-side tracker entry.",
                      "additionalProperties": false
                    },
                    "description": "Strictly necessary cookies for security, routing, or session continuity."
                  },
                  "preferences": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "provider",
                        "category",
                        "expiry",
                        "purpose",
                        "source"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Cookie name or identifier (e.g. '_ga', '_fbp')."
                        },
                        "domain": {
                          "type": "string",
                          "description": "Target hostname observed during scan."
                        },
                        "expiry": {
                          "type": "string",
                          "description": "Retention lifetime or 'Session'."
                        },
                        "source": {
                          "enum": [
                            "http_header",
                            "detected_script",
                            "manual"
                          ],
                          "type": "string",
                          "description": "Discovery mechanism: Set-Cookie response header or HTML script signature."
                        },
                        "purpose": {
                          "type": "string",
                          "description": "Human-readable functional or tracking purpose."
                        },
                        "category": {
                          "enum": [
                            "Necessary",
                            "Analytics",
                            "Marketing",
                            "Preferences"
                          ],
                          "type": "string",
                          "description": "Regulatory cookie classification."
                        },
                        "provider": {
                          "type": "string",
                          "description": "Vendor or host domain setting the cookie."
                        }
                      },
                      "description": "Single detected cookie or client-side tracker entry.",
                      "additionalProperties": false
                    },
                    "description": "Functional preference and personalization cookies."
                  }
                },
                "description": "Cookie inventory grouped into the four standard consent categories.",
                "additionalProperties": false
              }
            },
            "description": "Categorized cookie and tracking script inventory.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_documents",
          "title": "Generate Statutory Legal Document Suite",
          "description": "Synthesizes a tailored suite of legal compliance documents (Privacy Policy, Terms of Service, Cookie Policy, EULA, Acceptable Use Policy, Disclaimer, Return & Refund Policy, WCAG Accessibility Statement) directly from company metadata, jurisdictions (GDPR, CCPA, EU_AI_ACT), data practices, and sub-processor flags.\n\nWhen to use vs. related tools: Use 'generate_documents' when you already have all company and technical parameters ready to synthesize policies immediately. Use 'get_questionnaire_schema' followed by 'generate_docs_questionnaire' when conducting an interactive user intake flow. Use 'generate_dpa' specifically for a GDPR Article 28 Data Processing Addendum contract between Controller and Processor. Use 'export_documents' afterward to convert saved documents into HTML or JSON.\n\nPreconditions & side effects: Requires 'company_name', 'website_url', and 'contact_email'. If 'siteId' is omitted, operates in 'isolated_ephemeral_client' mode with a temporary ID and zero registry side effects. If 'siteId' is provided, it MUST match a registered site—on match, persists the generated documents onto that site and updates its compliance score (>= 95) and grade ('A+'); if unknown, returns an error.\n\nReturns: JSON object with 'success', 'siteId', 'company_name', 'tenant_mode', 'documents_generated' summaries, full 'documents' Markdown array, and 'message' (or 'error').",
          "inputSchema": {
            "type": "object",
            "required": [
              "company_name",
              "website_url",
              "contact_email"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Optional registered site UUID (from 'list_sites' or 'add_site'). When provided and found, generated documents are persisted to that site's record and raise its compliance grade to A+. When omitted, documents are synthesized for an isolated ephemeral tenant ID without modifying registered sites."
              },
              "dpo_email": {
                "type": "string",
                "format": "email",
                "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
                "examples": [
                  "dpo@acme-saas.com"
                ],
                "minLength": 5,
                "description": "Optional dedicated Data Protection Officer (DPO) email address referenced in the Privacy Policy user-rights section."
              },
              "uses_hotjar": {
                "type": "boolean",
                "default": false,
                "examples": [
                  false
                ],
                "description": "Whether Hotjar session recording or heatmap telemetry is disclosed in the Privacy Policy sub-processor section."
              },
              "website_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://acme-saas.com"
                ],
                "minLength": 4,
                "description": "Canonical HTTP or HTTPS URL of the website covered by the generated legal documents."
              },
              "company_name": {
                "type": "string",
                "examples": [
                  "Acme Technologies Inc."
                ],
                "maxLength": 200,
                "minLength": 1,
                "description": "Full legal entity or registered company name inserted as the Data Controller / Contracting Party."
              },
              "contact_email": {
                "type": "string",
                "format": "email",
                "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
                "examples": [
                  "privacy@acme-saas.com"
                ],
                "minLength": 5,
                "description": "Public legal, support, and DSAR privacy contact email address printed inside the policies."
              },
              "jurisdictions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "examples": [
                    "GDPR",
                    "CCPA",
                    "UK_GDPR",
                    "PIPEDA",
                    "EU_AI_ACT"
                  ],
                  "minLength": 2,
                  "description": "Jurisdiction or regulation identifier (e.g. 'GDPR', 'CCPA', 'UK_GDPR', 'PIPEDA', 'EU_AI_ACT')."
                },
                "default": [
                  "GDPR",
                  "CCPA"
                ],
                "examples": [
                  [
                    "GDPR",
                    "CCPA",
                    "EU_AI_ACT"
                  ]
                ],
                "minItems": 1,
                "description": "Regulatory regimes to incorporate into governing law, consumer rights, and AI disclosure clauses (e.g. 'GDPR', 'CCPA', 'UK_GDPR', 'PIPEDA', 'EU_AI_ACT')."
              },
              "document_types": {
                "type": "array",
                "items": {
                  "enum": [
                    "privacy_policy",
                    "terms_of_service",
                    "cookie_policy",
                    "eula",
                    "acceptable_use",
                    "disclaimer",
                    "return_policy",
                    "accessibility_statement"
                  ],
                  "type": "string",
                  "description": "Supported statutory document type key."
                },
                "default": [
                  "privacy_policy",
                  "terms_of_service",
                  "cookie_policy",
                  "eula",
                  "acceptable_use",
                  "disclaimer"
                ],
                "examples": [
                  [
                    "privacy_policy",
                    "terms_of_service",
                    "cookie_policy"
                  ]
                ],
                "minItems": 1,
                "description": "Subset of statutory documents to synthesize. Omit to generate the default 6-document suite (privacy_policy, terms_of_service, cookie_policy, eula, acceptable_use, disclaimer).",
                "uniqueItems": true
              },
              "collects_minors": {
                "type": "boolean",
                "default": false,
                "examples": [
                  false
                ],
                "description": "Whether services are directed at or knowingly collect data from minors under 13/16 (activates COPPA & GDPR Art. 8 parental consent clauses)."
              },
              "uses_meta_pixel": {
                "type": "boolean",
                "default": false,
                "examples": [
                  false
                ],
                "description": "Whether Meta (Facebook) advertising pixels are active and must be disclosed under GDPR/CCPA."
              },
              "collects_cookies": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Whether the website stores cookies, localStorage, or similar client identifiers."
              },
              "physical_address": {
                "type": "string",
                "default": "100 Market St, San Francisco, CA 94105",
                "examples": [
                  "100 Market St, San Francisco, CA 94105"
                ],
                "minLength": 3,
                "description": "Registered corporate mailing address for statutory notices and controller identification."
              },
              "has_user_accounts": {
                "type": "boolean",
                "default": false,
                "examples": [
                  true
                ],
                "description": "Whether end-users can create authenticated accounts or user profiles."
              },
              "processes_payments": {
                "type": "boolean",
                "default": false,
                "examples": [
                  true
                ],
                "description": "Whether payments or recurring subscriptions are processed (adds billing, Stripe sub-processor, and refund sections)."
              },
              "refund_period_days": {
                "type": "integer",
                "default": 14,
                "maximum": 365,
                "minimum": 0,
                "examples": [
                  14,
                  30
                ],
                "description": "Consumer refund / withdrawal guarantee window in calendar days used in Terms of Service and Return Policy."
              },
              "data_retention_months": {
                "type": "integer",
                "default": 24,
                "maximum": 120,
                "minimum": 1,
                "examples": [
                  24
                ],
                "description": "Standard personal data retention duration in months disclosed in the Privacy Policy."
              },
              "uses_google_analytics": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Whether Google Analytics 4 or Google Tag Manager is included in the sub-processor disclosures."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation or lookup error message when success is false."
              },
              "siteId": {
                "type": "string",
                "description": "Target registered siteId or generated ephemeral 'site_temp_*' identifier."
              },
              "message": {
                "type": "string",
                "description": "Human-readable completion status."
              },
              "success": {
                "type": "boolean",
                "description": "True if document generation succeeded; false if siteId lookup or required field validation failed."
              },
              "documents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "version",
                    "word_count",
                    "markdown",
                    "updated_at"
                  ],
                  "properties": {
                    "type": {
                      "enum": [
                        "privacy_policy",
                        "terms_of_service",
                        "cookie_policy",
                        "eula",
                        "acceptable_use",
                        "disclaimer",
                        "return_policy",
                        "accessibility_statement"
                      ],
                      "type": "string",
                      "description": "Statutory document type key."
                    },
                    "title": {
                      "type": "string",
                      "description": "Human-readable document title."
                    },
                    "version": {
                      "type": "string",
                      "description": "Document version number."
                    },
                    "markdown": {
                      "type": "string",
                      "description": "Complete policy content in Markdown format."
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO-8601 generation timestamp."
                    },
                    "word_count": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Total word count of the Markdown body."
                    }
                  },
                  "description": "Full generated legal document object.",
                  "additionalProperties": false
                },
                "description": "Complete generated documents including Markdown bodies."
              },
              "tenant_mode": {
                "enum": [
                  "persistent_registered_site",
                  "isolated_ephemeral_client"
                ],
                "type": "string",
                "description": "Indicates whether generated documents were saved to a registered site or returned for an isolated ephemeral tenant."
              },
              "company_name": {
                "type": "string",
                "description": "Legal entity name used in generated clauses."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when an explicit siteId does not match."
              },
              "documents_generated": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "word_count",
                    "preview_url"
                  ],
                  "properties": {
                    "type": {
                      "enum": [
                        "privacy_policy",
                        "terms_of_service",
                        "cookie_policy",
                        "eula",
                        "acceptable_use",
                        "disclaimer",
                        "return_policy",
                        "accessibility_statement"
                      ],
                      "type": "string",
                      "description": "Statutory document type key."
                    },
                    "title": {
                      "type": "string",
                      "description": "Human-readable document title."
                    },
                    "word_count": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Total word count of the synthesized document."
                    },
                    "preview_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Direct Paperloo viewer URL for the document."
                    }
                  },
                  "description": "Summary entry for one generated legal document.",
                  "additionalProperties": false
                },
                "description": "Summary list of generated documents with preview links."
              }
            },
            "description": "Result of synthesizing statutory legal documents, including either persisted or ephemeral tenant metadata and full Markdown documents.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_docs_questionnaire",
          "title": "Synthesize Legal Docs from Questionnaire Answers",
          "description": "Synthesizes a tailored statutory legal document suite (Privacy Policy, Terms of Service, Cookie Policy, EULA, Acceptable Use Policy, Disclaimer, Return Policy, Accessibility Statement) from answers gathered against the standardized 'get_questionnaire_schema' intake form.\n\nWhen to use vs. related tools: Pair 'get_questionnaire_schema' -> 'generate_docs_questionnaire' in conversational intake workflows where you collect structured business, tracker, minor-protection, and retention answers from a user before drafting documents. For direct programmatic generation without a questionnaire UI step, 'generate_documents' accepts the exact same payload.\n\nPreconditions & side effects: Requires 'company_name', 'website_url', and 'contact_email'. If 'siteId' is omitted, creates an isolated ephemeral tenant output with no registry mutation. If 'siteId' is explicitly supplied, it must match a registered site and will persist 'documents' and upgrade the site's compliance grade to 'A+'.\n\nReturns: JSON object with 'success', 'siteId', 'company_name', 'tenant_mode', 'documents_generated', full 'documents' array, and 'message' (or 'error').",
          "inputSchema": {
            "type": "object",
            "required": [
              "company_name",
              "website_url",
              "contact_email"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Optional registered site UUID (from 'list_sites' or 'add_site'). When provided and found, generated documents are persisted to that site's record and raise its compliance grade to A+. When omitted, documents are synthesized for an isolated ephemeral tenant ID without modifying registered sites."
              },
              "dpo_email": {
                "type": "string",
                "format": "email",
                "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
                "examples": [
                  "dpo@acme-saas.com"
                ],
                "minLength": 5,
                "description": "Optional dedicated Data Protection Officer (DPO) email address referenced in the Privacy Policy user-rights section."
              },
              "uses_hotjar": {
                "type": "boolean",
                "default": false,
                "examples": [
                  false
                ],
                "description": "Whether Hotjar session recording or heatmap telemetry is disclosed in the Privacy Policy sub-processor section."
              },
              "website_url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://acme-saas.com"
                ],
                "minLength": 4,
                "description": "Canonical HTTP or HTTPS URL of the website covered by the generated legal documents."
              },
              "company_name": {
                "type": "string",
                "examples": [
                  "Acme Technologies Inc."
                ],
                "maxLength": 200,
                "minLength": 1,
                "description": "Full legal entity or registered company name inserted as the Data Controller / Contracting Party."
              },
              "contact_email": {
                "type": "string",
                "format": "email",
                "pattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
                "examples": [
                  "privacy@acme-saas.com"
                ],
                "minLength": 5,
                "description": "Public legal, support, and DSAR privacy contact email address printed inside the policies."
              },
              "jurisdictions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "examples": [
                    "GDPR",
                    "CCPA",
                    "UK_GDPR",
                    "PIPEDA",
                    "EU_AI_ACT"
                  ],
                  "minLength": 2,
                  "description": "Jurisdiction or regulation identifier (e.g. 'GDPR', 'CCPA', 'UK_GDPR', 'PIPEDA', 'EU_AI_ACT')."
                },
                "default": [
                  "GDPR",
                  "CCPA"
                ],
                "examples": [
                  [
                    "GDPR",
                    "CCPA",
                    "EU_AI_ACT"
                  ]
                ],
                "minItems": 1,
                "description": "Regulatory regimes to incorporate into governing law, consumer rights, and AI disclosure clauses (e.g. 'GDPR', 'CCPA', 'UK_GDPR', 'PIPEDA', 'EU_AI_ACT')."
              },
              "document_types": {
                "type": "array",
                "items": {
                  "enum": [
                    "privacy_policy",
                    "terms_of_service",
                    "cookie_policy",
                    "eula",
                    "acceptable_use",
                    "disclaimer",
                    "return_policy",
                    "accessibility_statement"
                  ],
                  "type": "string",
                  "description": "Supported statutory document type key."
                },
                "default": [
                  "privacy_policy",
                  "terms_of_service",
                  "cookie_policy",
                  "eula",
                  "acceptable_use",
                  "disclaimer"
                ],
                "examples": [
                  [
                    "privacy_policy",
                    "terms_of_service",
                    "cookie_policy"
                  ]
                ],
                "minItems": 1,
                "description": "Subset of statutory documents to synthesize. Omit to generate the default 6-document suite (privacy_policy, terms_of_service, cookie_policy, eula, acceptable_use, disclaimer).",
                "uniqueItems": true
              },
              "collects_minors": {
                "type": "boolean",
                "default": false,
                "examples": [
                  false
                ],
                "description": "Whether services are directed at or knowingly collect data from minors under 13/16 (activates COPPA & GDPR Art. 8 parental consent clauses)."
              },
              "uses_meta_pixel": {
                "type": "boolean",
                "default": false,
                "examples": [
                  false
                ],
                "description": "Whether Meta (Facebook) advertising pixels are active and must be disclosed under GDPR/CCPA."
              },
              "collects_cookies": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Whether the website stores cookies, localStorage, or similar client identifiers."
              },
              "physical_address": {
                "type": "string",
                "default": "100 Market St, San Francisco, CA 94105",
                "examples": [
                  "100 Market St, San Francisco, CA 94105"
                ],
                "minLength": 3,
                "description": "Registered corporate mailing address for statutory notices and controller identification."
              },
              "has_user_accounts": {
                "type": "boolean",
                "default": false,
                "examples": [
                  true
                ],
                "description": "Whether end-users can create authenticated accounts or user profiles."
              },
              "processes_payments": {
                "type": "boolean",
                "default": false,
                "examples": [
                  true
                ],
                "description": "Whether payments or recurring subscriptions are processed (adds billing, Stripe sub-processor, and refund sections)."
              },
              "refund_period_days": {
                "type": "integer",
                "default": 14,
                "maximum": 365,
                "minimum": 0,
                "examples": [
                  14,
                  30
                ],
                "description": "Consumer refund / withdrawal guarantee window in calendar days used in Terms of Service and Return Policy."
              },
              "data_retention_months": {
                "type": "integer",
                "default": 24,
                "maximum": 120,
                "minimum": 1,
                "examples": [
                  24
                ],
                "description": "Standard personal data retention duration in months disclosed in the Privacy Policy."
              },
              "uses_google_analytics": {
                "type": "boolean",
                "default": true,
                "examples": [
                  true
                ],
                "description": "Whether Google Analytics 4 or Google Tag Manager is included in the sub-processor disclosures."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation or lookup error message when success is false."
              },
              "siteId": {
                "type": "string",
                "description": "Target registered siteId or generated ephemeral 'site_temp_*' identifier."
              },
              "message": {
                "type": "string",
                "description": "Human-readable completion status."
              },
              "success": {
                "type": "boolean",
                "description": "True if document generation succeeded; false if siteId lookup or required field validation failed."
              },
              "documents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "version",
                    "word_count",
                    "markdown",
                    "updated_at"
                  ],
                  "properties": {
                    "type": {
                      "enum": [
                        "privacy_policy",
                        "terms_of_service",
                        "cookie_policy",
                        "eula",
                        "acceptable_use",
                        "disclaimer",
                        "return_policy",
                        "accessibility_statement"
                      ],
                      "type": "string",
                      "description": "Statutory document type key."
                    },
                    "title": {
                      "type": "string",
                      "description": "Human-readable document title."
                    },
                    "version": {
                      "type": "string",
                      "description": "Document version number."
                    },
                    "markdown": {
                      "type": "string",
                      "description": "Complete policy content in Markdown format."
                    },
                    "updated_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO-8601 generation timestamp."
                    },
                    "word_count": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Total word count of the Markdown body."
                    }
                  },
                  "description": "Full generated legal document object.",
                  "additionalProperties": false
                },
                "description": "Complete generated documents including Markdown bodies."
              },
              "tenant_mode": {
                "enum": [
                  "persistent_registered_site",
                  "isolated_ephemeral_client"
                ],
                "type": "string",
                "description": "Indicates whether generated documents were saved to a registered site or returned for an isolated ephemeral tenant."
              },
              "company_name": {
                "type": "string",
                "description": "Legal entity name used in generated clauses."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when an explicit siteId does not match."
              },
              "documents_generated": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "word_count",
                    "preview_url"
                  ],
                  "properties": {
                    "type": {
                      "enum": [
                        "privacy_policy",
                        "terms_of_service",
                        "cookie_policy",
                        "eula",
                        "acceptable_use",
                        "disclaimer",
                        "return_policy",
                        "accessibility_statement"
                      ],
                      "type": "string",
                      "description": "Statutory document type key."
                    },
                    "title": {
                      "type": "string",
                      "description": "Human-readable document title."
                    },
                    "word_count": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Total word count of the synthesized document."
                    },
                    "preview_url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Direct Paperloo viewer URL for the document."
                    }
                  },
                  "description": "Summary entry for one generated legal document.",
                  "additionalProperties": false
                },
                "description": "Summary list of generated documents with preview links."
              }
            },
            "description": "Result of synthesizing statutory legal documents, including either persisted or ephemeral tenant metadata and full Markdown documents.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "generate_dpa",
          "title": "Generate GDPR Article 28 DPA Contract",
          "description": "Generates a standalone GDPR Article 28 Data Processing Addendum (DPA) Markdown contract between a named Data Controller (client) and Data Processor (vendor/agency), incorporating Art. 28(3) processor obligations, Art. 32 technical security controls, governing law, and authorized sub-processors.\n\nWhen to use vs. related tools: Call 'generate_dpa' specifically for B2B vendor-client Data Processing Agreements (DPAs). Do NOT use 'generate_documents' for DPAs, as 'generate_documents' handles public website policies (Privacy, Terms, Cookies, EULA, AUP, Disclaimer, Return, Accessibility).\n\nPreconditions & side effects: Requires non-empty 'controller_name' and 'processor_name'. Stateless and read-only—does not require or mutate any registered site.\n\nReturns: JSON object with 'success', 'title', 'controller_name', 'processor_name', 'governing_law', 'sub_processors', 'markdown', 'word_count', and 'version' (or 'error').",
          "inputSchema": {
            "type": "object",
            "required": [
              "controller_name",
              "processor_name"
            ],
            "properties": {
              "governing_law": {
                "type": "string",
                "default": "Ireland",
                "examples": [
                  "Ireland",
                  "Germany",
                  "Delaware"
                ],
                "maxLength": 100,
                "minLength": 2,
                "description": "Governing jurisdiction for the DPA contract."
              },
              "processor_name": {
                "type": "string",
                "examples": [
                  "Paperloo Infrastructure Ltd."
                ],
                "maxLength": 200,
                "minLength": 1,
                "description": "Legal entity name of the Data Processor (agency or SaaS vendor)."
              },
              "sub_processors": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "description": "Authorized sub-processor organization name."
                },
                "default": [
                  "Amazon Web Services (AWS)",
                  "Stripe Payments",
                  "Supabase Database",
                  "Google Cloud Platform"
                ],
                "examples": [
                  [
                    "Amazon Web Services (AWS)",
                    "Stripe Payments",
                    "Supabase Database"
                  ]
                ],
                "description": "List of authorized sub-processors covered by Controller's general written authorization."
              },
              "controller_name": {
                "type": "string",
                "examples": [
                  "Acme Enterprise Ltd."
                ],
                "maxLength": 200,
                "minLength": 1,
                "description": "Legal entity name of the Data Controller (client organization)."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation error message when success is false."
              },
              "title": {
                "type": "string",
                "description": "Generated DPA document title."
              },
              "success": {
                "type": "boolean",
                "description": "True if DPA contract generation succeeded; false if required parties were missing."
              },
              "version": {
                "type": "string",
                "description": "DPA template version identifier."
              },
              "markdown": {
                "type": "string",
                "description": "Full GDPR Article 28 DPA agreement in Markdown format."
              },
              "word_count": {
                "type": "integer",
                "minimum": 0,
                "description": "Total word count of the DPA contract."
              },
              "governing_law": {
                "type": "string",
                "description": "Governing jurisdiction applied to the DPA."
              },
              "processor_name": {
                "type": "string",
                "description": "Legal name of the Data Processor."
              },
              "sub_processors": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Authorized sub-processor entity name."
                },
                "description": "Authorized sub-processors enumerated in the DPA."
              },
              "controller_name": {
                "type": "string",
                "description": "Legal name of the Data Controller."
              }
            },
            "description": "Generated GDPR Article 28 Data Processing Addendum contract.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "verify_compliance",
          "title": "Issue Cryptographic Compliance Verification & Trust Badge",
          "description": "Evaluates a registered site's current compliance posture (score, grade, and active consent banner status) and issues a timestamped verification attestation hash, compliance status ('VERIFIED_COMPLIANT' | 'CONDITIONALLY_COMPLIANT' | 'NON_COMPLIANT'), inline SVG trust badge markup, and HTML embed snippet.\n\nWhen to use vs. related tools: Call 'verify_compliance' when generating a trust seal or verifying status of a registered property already managed in Paperloo. Call 'audit_site' instead when you need to crawl a live external URL over HTTP.\n\nPreconditions & side effects: 'siteId' MUST match an existing site in the active registry (no fallback to default site). Read-only attestation generation.\n\nReturns: JSON object with 'success', 'siteId', 'site_name', 'compliance_score', 'compliance_grade', 'verification_status', 'verification_hash', 'verified_at', 'standards', 'badge_svg', and 'badge_embed' (or 'error' + 'available_sites').",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox",
                  "site_demo_store"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL to verify."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Error message if siteId was not found."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "success": {
                "type": "boolean",
                "description": "True if site attestation was issued; false if siteId lookup failed."
              },
              "badge_svg": {
                "type": "string",
                "description": "Inline SVG markup for the Paperloo Verified trust seal."
              },
              "site_name": {
                "type": "string",
                "description": "Display name of the verified site."
              },
              "standards": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Verified regulatory standard citation."
                },
                "description": "Regulatory frameworks covered by this verification attestation."
              },
              "badge_embed": {
                "type": "string",
                "description": "HTML anchor and image snippet linking to the public verification record."
              },
              "verified_at": {
                "type": "string",
                "format": "date-time",
                "description": "ISO-8601 timestamp when verification was issued."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              },
              "compliance_grade": {
                "type": "string",
                "description": "Site compliance letter grade at verification time."
              },
              "compliance_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0,
                "description": "Site compliance score at verification time."
              },
              "verification_hash": {
                "type": "string",
                "pattern": "^0x[0-9a-f]+$",
                "description": "Hexadecimal attestation digest."
              },
              "verification_status": {
                "enum": [
                  "VERIFIED_COMPLIANT",
                  "CONDITIONALLY_COMPLIANT",
                  "NON_COMPLIANT"
                ],
                "type": "string",
                "description": "Derived verification tier."
              }
            },
            "description": "Compliance verification attestation and trust badge payload.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "list_sites",
          "title": "List Monitored Websites",
          "description": "Lists monitored website properties in the Paperloo compliance registry with status filtering ('all', 'active', 'compliant', 'needs_audit') and offset/limit pagination, returning summary compliance grades, banner readiness, GTM state, and document counts.\n\nWhen to use vs. related tools: Call 'list_sites' to discover valid 'siteId' identifiers before calling site-specific tools ('get_site', 'configure_cookie_banner', 'configure_gtm_integration', 'export_documents', 'delete_site'). Call 'get_site' afterward if you need a site's full nested cookie_banner, gtm, and document Markdown contents.\n\nPreconditions & side effects: No required parameters. Read-only registry query.\n\nReturns: JSON object with 'success', 'total_count', 'returned_count', 'offset', 'limit', 'filter_applied', and 'sites' array (or 'error' + 'supported_filters' if invalid filter/pagination arguments are supplied).",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 100,
                "minimum": 1,
                "examples": [
                  50,
                  10
                ],
                "description": "Maximum number of site summaries returned per page (1-100)."
              },
              "filter": {
                "enum": [
                  "all",
                  "active",
                  "compliant",
                  "needs_audit"
                ],
                "type": "string",
                "default": "all",
                "examples": [
                  "all",
                  "compliant"
                ],
                "description": "Filter sites: 'all' (everything), 'active' (status === 'active'), 'compliant' (compliance_score >= 90), or 'needs_audit' (compliance_score < 90)."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "minimum": 0,
                "examples": [
                  0
                ],
                "description": "Zero-based pagination offset into the filtered list."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation error message when success is false."
              },
              "limit": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1,
                "description": "Applied page size limit."
              },
              "sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url",
                    "platform",
                    "compliance_grade",
                    "compliance_score",
                    "jurisdictions",
                    "cookie_banner_active",
                    "gtm_configured",
                    "documents_count",
                    "created_at"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Unique site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered site URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Display name of the monitored site."
                    },
                    "platform": {
                      "type": "string",
                      "description": "Detected or configured web framework/CMS."
                    },
                    "created_at": {
                      "type": "string",
                      "format": "date-time",
                      "description": "ISO-8601 registration timestamp."
                    },
                    "jurisdictions": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "Applicable privacy framework key."
                      },
                      "description": "Regulatory frameworks enforced for the site."
                    },
                    "gtm_configured": {
                      "type": "boolean",
                      "description": "Whether a non-pending GTM container ID is bound."
                    },
                    "documents_count": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Count of attached statutory documents."
                    },
                    "compliance_grade": {
                      "type": "string",
                      "description": "Current compliance letter grade."
                    },
                    "compliance_score": {
                      "type": "integer",
                      "maximum": 100,
                      "minimum": 0,
                      "description": "Current numeric compliance score."
                    },
                    "cookie_banner_active": {
                      "type": "boolean",
                      "description": "Whether a cookie consent banner configuration is attached."
                    }
                  },
                  "description": "Monitored site summary card.",
                  "additionalProperties": false
                },
                "description": "Summary entries for monitored sites matching the filter."
              },
              "offset": {
                "type": "integer",
                "minimum": 0,
                "description": "Applied zero-based pagination offset."
              },
              "success": {
                "type": "boolean",
                "description": "True if registry listing succeeded; false if filter/pagination arguments are invalid."
              },
              "total_count": {
                "type": "integer",
                "minimum": 0,
                "description": "Total matching sites prior to offset/limit slicing."
              },
              "filter_applied": {
                "enum": [
                  "all",
                  "active",
                  "compliant",
                  "needs_audit"
                ],
                "type": "string",
                "description": "Filter mode evaluated."
              },
              "returned_count": {
                "type": "integer",
                "minimum": 0,
                "description": "Number of sites included in the current page."
              },
              "supported_filters": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Supported filter key."
                },
                "description": "Valid filter values returned when an unsupported filter is supplied."
              }
            },
            "description": "Paginated list of monitored sites in the registry.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_site",
          "title": "Get Full Monitored Site Details",
          "description": "Retrieves the complete stored profile for a single monitored website—including cookie banner configuration, GTM Consent Mode v2 settings, attached legal policy Markdown documents, and ready-to-use HTML/GCM v2 embed snippets.\n\nWhen to use vs. related tools: Call 'get_site' when inspecting a single known property in full detail. Call 'list_sites' to browse or filter across all properties.\n\nPreconditions & side effects: 'siteId' must match an existing site ID or exact URL/hostname in the registry. Read-only lookup.\n\nReturns: JSON object containing 'success: true', full 'site' object, and 'embed_code' (or 'success: false', 'error', 'help', and 'available_sites' when not found).",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox",
                  "https://paperloo.vercel.app"
                ],
                "minLength": 1,
                "description": "Registered site UUID (e.g. 'site_paperloo_sandbox') or exact registered site URL."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "help": {
                "type": "string",
                "description": "Guidance hint for discovering valid siteId values."
              },
              "site": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "url",
                  "platform",
                  "jurisdictions",
                  "agency_name",
                  "compliance_grade",
                  "compliance_score",
                  "status",
                  "created_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique site identifier (e.g. 'site_paperloo_sandbox')."
                  },
                  "gtm": {
                    "type": "object",
                    "required": [
                      "gtm_container_id",
                      "default_ad_storage",
                      "default_analytics_storage",
                      "default_ad_user_data",
                      "default_ad_personalization",
                      "trigger_events",
                      "updated_at"
                    ],
                    "properties": {
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO-8601 timestamp of the last GTM configuration update."
                      },
                      "trigger_events": {
                        "type": "boolean",
                        "description": "Whether consent changes emit 'paperloo_consent_update' events to dataLayer."
                      },
                      "gtm_container_id": {
                        "type": "string",
                        "description": "Assigned GTM container ID or 'GTM-PENDING'."
                      },
                      "default_ad_storage": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for ad_storage."
                      },
                      "default_ad_user_data": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for ad_user_data."
                      },
                      "default_analytics_storage": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for analytics_storage."
                      },
                      "default_ad_personalization": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for ad_personalization."
                      }
                    },
                    "description": "Google Tag Manager container binding and GCM v2 default states.",
                    "additionalProperties": false
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Primary HTTPS/HTTP URL of the property."
                  },
                  "name": {
                    "type": "string",
                    "description": "Human-readable site or brand name."
                  },
                  "audit": {
                    "type": "object",
                    "required": [
                      "score",
                      "grade",
                      "scanned_at",
                      "findings",
                      "trackers_detected"
                    ],
                    "properties": {
                      "grade": {
                        "type": "string",
                        "description": "Compliance letter grade from the cached audit."
                      },
                      "score": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0,
                        "description": "Overall audit score from 0 to 100."
                      },
                      "findings": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "Individual audit finding summary."
                        },
                        "description": "Key compliance findings recorded during the scan."
                      },
                      "scanned_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO-8601 timestamp when the audit ran."
                      },
                      "trackers_detected": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Number of tracking cookies/scripts detected."
                      }
                    },
                    "description": "Most recent cached compliance audit summary attached to this site.",
                    "additionalProperties": false
                  },
                  "status": {
                    "enum": [
                      "active",
                      "paused"
                    ],
                    "type": "string",
                    "description": "Monitoring status."
                  },
                  "platform": {
                    "enum": [
                      "nextjs",
                      "react",
                      "wordpress",
                      "webflow",
                      "shopify",
                      "vue",
                      "custom"
                    ],
                    "type": "string",
                    "description": "Web framework or CMS."
                  },
                  "documents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "title",
                        "version",
                        "word_count",
                        "markdown",
                        "updated_at"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Document type identifier (e.g. 'privacy_policy')."
                        },
                        "title": {
                          "type": "string",
                          "description": "Human-readable document title."
                        },
                        "version": {
                          "type": "string",
                          "description": "Semantic document version string."
                        },
                        "markdown": {
                          "type": "string",
                          "description": "Full policy text formatted in Markdown."
                        },
                        "updated_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO-8601 timestamp when the document was generated or updated."
                        },
                        "word_count": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Total word count of the Markdown body."
                        }
                      },
                      "description": "Generated legal compliance document record.",
                      "additionalProperties": false
                    },
                    "description": "Legal policy documents attached to this site."
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO-8601 creation timestamp."
                  },
                  "agency_name": {
                    "type": "string",
                    "description": "Managing agency or organization."
                  },
                  "cookie_banner": {
                    "type": "object",
                    "required": [
                      "theme",
                      "position",
                      "banner_title",
                      "banner_message",
                      "enable_gcm_v2",
                      "auto_block_trackers",
                      "accent_color",
                      "categories",
                      "updated_at"
                    ],
                    "properties": {
                      "theme": {
                        "type": "string",
                        "description": "Visual theme preset applied to the banner."
                      },
                      "position": {
                        "type": "string",
                        "description": "Viewport anchor position of the consent banner."
                      },
                      "categories": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "Consent category identifier (e.g. 'necessary', 'analytics', 'marketing')."
                        },
                        "description": "Consent categories exposed in the banner preference center."
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO-8601 timestamp of the last banner update."
                      },
                      "accent_color": {
                        "type": "string",
                        "description": "Hexadecimal accent color for banner buttons and highlights."
                      },
                      "banner_title": {
                        "type": "string",
                        "description": "Primary heading displayed on the banner."
                      },
                      "enable_gcm_v2": {
                        "type": "boolean",
                        "description": "Whether Google Consent Mode v2 synchronization is enabled."
                      },
                      "banner_message": {
                        "type": "string",
                        "description": "Body copy explaining cookie usage and consent options."
                      },
                      "auto_block_trackers": {
                        "type": "boolean",
                        "description": "Whether non-essential trackers are blocked prior to consent."
                      }
                    },
                    "description": "Persisted cookie consent banner configuration for this site.",
                    "additionalProperties": false
                  },
                  "jurisdictions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Regulatory framework identifier (e.g. 'GDPR', 'CCPA')."
                    },
                    "description": "Applicable privacy frameworks."
                  },
                  "compliance_grade": {
                    "enum": [
                      "A+",
                      "A",
                      "A-",
                      "B",
                      "C",
                      "D",
                      "F"
                    ],
                    "type": "string",
                    "description": "Letter grade."
                  },
                  "compliance_score": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 0,
                    "description": "Numeric score from 0 to 100."
                  }
                },
                "description": "Full monitored site record including consent banner, GTM, and policy documents.",
                "additionalProperties": false
              },
              "error": {
                "type": "string",
                "description": "Lookup error message when success is false."
              },
              "success": {
                "type": "boolean",
                "description": "True if site was found; false if siteId did not match any registered site."
              },
              "embed_code": {
                "type": "object",
                "required": [
                  "html",
                  "gcm_v2"
                ],
                "properties": {
                  "html": {
                    "type": "string",
                    "description": "Async HTML script tag for the Paperloo consent banner."
                  },
                  "gcm_v2": {
                    "type": "string",
                    "description": "Google Consent Mode v2 default 'denied' initialization call."
                  }
                },
                "description": "Ready-to-paste HTML banner script and GCM v2 default snippet.",
                "additionalProperties": false
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              }
            },
            "description": "Full site record and embed snippets.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "add_site",
          "title": "Register New Monitored Website",
          "description": "Creates and registers a new website property in the Paperloo compliance registry, initializing default GDPR/CCPA jurisdictions, default Google Consent Mode v2 denied banner settings, a pending GTM slot, an initial compliance grade (A-, 91/100), a live API key, and an embed script tag.\n\nWhen to use vs. related tools: Call 'add_site' before configuring persistent banners ('configure_cookie_banner'), GTM ('configure_gtm_integration'), or attaching documents to a siteId. Do not call 'add_site' if you only want a one-off audit ('audit_site'), cookie scan ('scan_cookies'), or ephemeral policy generation ('generate_documents' without 'siteId').\n\nPreconditions & side effects: Requires non-empty 'name' and valid HTTP(S) 'url'. Mutates the active site registry by prepending the newly created site record.\n\nReturns: JSON object containing 'success: true', created 'site' object, generated 'apiKey', 'embed_script', and 'message' (or 'success: false' and 'error' on invalid input).",
          "inputSchema": {
            "type": "object",
            "required": [
              "name",
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "pattern": "^https?://[^\\s]+$",
                "examples": [
                  "https://acme-saas.com"
                ],
                "minLength": 4,
                "description": "Full public HTTP or HTTPS URL of the website to monitor."
              },
              "name": {
                "type": "string",
                "examples": [
                  "Acme SaaS Platform",
                  "Acme Store"
                ],
                "maxLength": 120,
                "minLength": 1,
                "description": "Human-readable brand or website display name."
              },
              "platform": {
                "enum": [
                  "nextjs",
                  "react",
                  "wordpress",
                  "webflow",
                  "shopify",
                  "vue",
                  "custom"
                ],
                "type": "string",
                "default": "custom",
                "examples": [
                  "nextjs",
                  "shopify",
                  "wordpress"
                ],
                "description": "Web framework or CMS powering the site."
              },
              "agency_name": {
                "type": "string",
                "default": "Default Agency",
                "examples": [
                  "Apex Digital Media"
                ],
                "maxLength": 120,
                "minLength": 1,
                "description": "Managing digital agency or client organization name."
              },
              "jurisdictions": {
                "type": "array",
                "items": {
                  "type": "string",
                  "examples": [
                    "GDPR",
                    "CCPA",
                    "PIPEDA",
                    "EU_AI_ACT"
                  ],
                  "minLength": 2,
                  "description": "Regulatory framework identifier (e.g. 'GDPR', 'CCPA')."
                },
                "default": [
                  "GDPR",
                  "CCPA"
                ],
                "examples": [
                  [
                    "GDPR",
                    "CCPA"
                  ]
                ],
                "minItems": 1,
                "description": "Regulatory frameworks to enforce for this property."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "site": {
                "type": "object",
                "required": [
                  "id",
                  "name",
                  "url",
                  "platform",
                  "jurisdictions",
                  "agency_name",
                  "compliance_grade",
                  "compliance_score",
                  "status",
                  "created_at"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique site identifier (e.g. 'site_paperloo_sandbox')."
                  },
                  "gtm": {
                    "type": "object",
                    "required": [
                      "gtm_container_id",
                      "default_ad_storage",
                      "default_analytics_storage",
                      "default_ad_user_data",
                      "default_ad_personalization",
                      "trigger_events",
                      "updated_at"
                    ],
                    "properties": {
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO-8601 timestamp of the last GTM configuration update."
                      },
                      "trigger_events": {
                        "type": "boolean",
                        "description": "Whether consent changes emit 'paperloo_consent_update' events to dataLayer."
                      },
                      "gtm_container_id": {
                        "type": "string",
                        "description": "Assigned GTM container ID or 'GTM-PENDING'."
                      },
                      "default_ad_storage": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for ad_storage."
                      },
                      "default_ad_user_data": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for ad_user_data."
                      },
                      "default_analytics_storage": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for analytics_storage."
                      },
                      "default_ad_personalization": {
                        "enum": [
                          "denied",
                          "granted"
                        ],
                        "type": "string",
                        "description": "Default GCM v2 state for ad_personalization."
                      }
                    },
                    "description": "Google Tag Manager container binding and GCM v2 default states.",
                    "additionalProperties": false
                  },
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Primary HTTPS/HTTP URL of the property."
                  },
                  "name": {
                    "type": "string",
                    "description": "Human-readable site or brand name."
                  },
                  "audit": {
                    "type": "object",
                    "required": [
                      "score",
                      "grade",
                      "scanned_at",
                      "findings",
                      "trackers_detected"
                    ],
                    "properties": {
                      "grade": {
                        "type": "string",
                        "description": "Compliance letter grade from the cached audit."
                      },
                      "score": {
                        "type": "integer",
                        "maximum": 100,
                        "minimum": 0,
                        "description": "Overall audit score from 0 to 100."
                      },
                      "findings": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "Individual audit finding summary."
                        },
                        "description": "Key compliance findings recorded during the scan."
                      },
                      "scanned_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO-8601 timestamp when the audit ran."
                      },
                      "trackers_detected": {
                        "type": "integer",
                        "minimum": 0,
                        "description": "Number of tracking cookies/scripts detected."
                      }
                    },
                    "description": "Most recent cached compliance audit summary attached to this site.",
                    "additionalProperties": false
                  },
                  "status": {
                    "enum": [
                      "active",
                      "paused"
                    ],
                    "type": "string",
                    "description": "Monitoring status."
                  },
                  "platform": {
                    "enum": [
                      "nextjs",
                      "react",
                      "wordpress",
                      "webflow",
                      "shopify",
                      "vue",
                      "custom"
                    ],
                    "type": "string",
                    "description": "Web framework or CMS."
                  },
                  "documents": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "title",
                        "version",
                        "word_count",
                        "markdown",
                        "updated_at"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "description": "Document type identifier (e.g. 'privacy_policy')."
                        },
                        "title": {
                          "type": "string",
                          "description": "Human-readable document title."
                        },
                        "version": {
                          "type": "string",
                          "description": "Semantic document version string."
                        },
                        "markdown": {
                          "type": "string",
                          "description": "Full policy text formatted in Markdown."
                        },
                        "updated_at": {
                          "type": "string",
                          "format": "date-time",
                          "description": "ISO-8601 timestamp when the document was generated or updated."
                        },
                        "word_count": {
                          "type": "integer",
                          "minimum": 0,
                          "description": "Total word count of the Markdown body."
                        }
                      },
                      "description": "Generated legal compliance document record.",
                      "additionalProperties": false
                    },
                    "description": "Legal policy documents attached to this site."
                  },
                  "created_at": {
                    "type": "string",
                    "format": "date-time",
                    "description": "ISO-8601 creation timestamp."
                  },
                  "agency_name": {
                    "type": "string",
                    "description": "Managing agency or organization."
                  },
                  "cookie_banner": {
                    "type": "object",
                    "required": [
                      "theme",
                      "position",
                      "banner_title",
                      "banner_message",
                      "enable_gcm_v2",
                      "auto_block_trackers",
                      "accent_color",
                      "categories",
                      "updated_at"
                    ],
                    "properties": {
                      "theme": {
                        "type": "string",
                        "description": "Visual theme preset applied to the banner."
                      },
                      "position": {
                        "type": "string",
                        "description": "Viewport anchor position of the consent banner."
                      },
                      "categories": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "description": "Consent category identifier (e.g. 'necessary', 'analytics', 'marketing')."
                        },
                        "description": "Consent categories exposed in the banner preference center."
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "ISO-8601 timestamp of the last banner update."
                      },
                      "accent_color": {
                        "type": "string",
                        "description": "Hexadecimal accent color for banner buttons and highlights."
                      },
                      "banner_title": {
                        "type": "string",
                        "description": "Primary heading displayed on the banner."
                      },
                      "enable_gcm_v2": {
                        "type": "boolean",
                        "description": "Whether Google Consent Mode v2 synchronization is enabled."
                      },
                      "banner_message": {
                        "type": "string",
                        "description": "Body copy explaining cookie usage and consent options."
                      },
                      "auto_block_trackers": {
                        "type": "boolean",
                        "description": "Whether non-essential trackers are blocked prior to consent."
                      }
                    },
                    "description": "Persisted cookie consent banner configuration for this site.",
                    "additionalProperties": false
                  },
                  "jurisdictions": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "description": "Regulatory framework identifier (e.g. 'GDPR', 'CCPA')."
                    },
                    "description": "Applicable privacy frameworks."
                  },
                  "compliance_grade": {
                    "enum": [
                      "A+",
                      "A",
                      "A-",
                      "B",
                      "C",
                      "D",
                      "F"
                    ],
                    "type": "string",
                    "description": "Letter grade."
                  },
                  "compliance_score": {
                    "type": "integer",
                    "maximum": 100,
                    "minimum": 0,
                    "description": "Numeric score from 0 to 100."
                  }
                },
                "description": "Full monitored site record including consent banner, GTM, and policy documents.",
                "additionalProperties": false
              },
              "error": {
                "type": "string",
                "description": "Validation error message when success is false."
              },
              "apiKey": {
                "type": "string",
                "pattern": "^pl_live_[a-z0-9]+$",
                "description": "Scoped Paperloo live API key generated for the new site."
              },
              "message": {
                "type": "string",
                "description": "Human-readable registration confirmation message."
              },
              "success": {
                "type": "boolean",
                "description": "True if site creation succeeded; false on validation failure."
              },
              "embed_script": {
                "type": "string",
                "description": "Ready-to-paste HTML script tag referencing the new siteId."
              }
            },
            "description": "Newly provisioned monitored site payload.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": false
          }
        },
        {
          "name": "delete_site",
          "title": "Delete Monitored Website",
          "description": "Permanently removes a monitored website property and all of its stored banner configurations, GTM bindings, audit history, and cached legal documents from the active Paperloo registry.\n\nWhen to use vs. related tools: Call 'delete_site' only when a site should be permanently decommissioned from monitoring. Use 'list_sites' or 'get_site' first to confirm the exact 'siteId'.\n\nPreconditions & side effects: 'siteId' must match an existing site ID or exact URL/hostname in the registry. Destructive mutation—immediately deletes the matching site from 'activeSites'.\n\nReturns: JSON object with 'success: true', deleted 'siteId', 'name', 'url', 'deleted_at', and 'message' (or 'success: false', 'error', and 'available_sites' if not found).",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "siteId": {
                "type": "string",
                "examples": [
                  "site_demo_store"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL of the property to delete."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Registered URL of the removed site."
              },
              "name": {
                "type": "string",
                "description": "Display name of the removed site."
              },
              "error": {
                "type": "string",
                "description": "Lookup error message when success is false."
              },
              "siteId": {
                "type": "string",
                "description": "Deleted site identifier."
              },
              "message": {
                "type": "string",
                "description": "Human-readable deletion confirmation."
              },
              "success": {
                "type": "boolean",
                "description": "True if the matching site was deleted; false if siteId was not found."
              },
              "deleted_at": {
                "type": "string",
                "format": "date-time",
                "description": "ISO-8601 timestamp when deletion completed."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              }
            },
            "description": "Confirmation of deleted site or not-found error.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": false,
            "openWorldHint": false,
            "idempotentHint": false,
            "destructiveHint": true
          }
        },
        {
          "name": "get_questionnaire_schema",
          "title": "Get Legal Intake Questionnaire Schema",
          "description": "Returns the structured compliance intake questionnaire schema (categorized sections, field keys, data types, labels, defaults, and option lists) scoped to the requested document category.\n\nWhen to use vs. related tools: Call 'get_questionnaire_schema' BEFORE 'generate_docs_questionnaire' when building dynamic intake forms or interviewing a user step-by-step to collect required legal facts. Call 'generate_documents' directly if you already hold the fields without needing question metadata.\n\nPreconditions & side effects: No required arguments; 'document_type' defaults to 'all'. Read-only metadata lookup.\n\nReturns: JSON object containing 'success: true', 'version', 'document_type', and scoped 'categories' array of question definitions (or 'success: false' and 'error' for unsupported document_type).",
          "inputSchema": {
            "type": "object",
            "required": [],
            "properties": {
              "document_type": {
                "enum": [
                  "all",
                  "privacy_policy",
                  "terms_of_service",
                  "cookie_policy",
                  "dpa",
                  "ai_governance"
                ],
                "type": "string",
                "default": "all",
                "examples": [
                  "all",
                  "privacy_policy",
                  "cookie_policy",
                  "dpa"
                ],
                "description": "Scopes returned questionnaire categories and fields to a specific compliance document type, or 'all' for the complete 4-category schema."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Validation error message when document_type is invalid."
              },
              "success": {
                "type": "boolean",
                "description": "True if schema lookup succeeded; false for unsupported document_type."
              },
              "version": {
                "type": "string",
                "description": "Questionnaire schema version identifier."
              },
              "categories": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "title",
                    "fields"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Section identifier."
                    },
                    "title": {
                      "type": "string",
                      "description": "Human-readable section heading."
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "key",
                          "type",
                          "label"
                        ],
                        "properties": {
                          "key": {
                            "type": "string",
                            "description": "Payload parameter key expected by 'generate_docs_questionnaire'."
                          },
                          "type": {
                            "enum": [
                              "string",
                              "url",
                              "email",
                              "boolean",
                              "number",
                              "multiselect"
                            ],
                            "type": "string",
                            "description": "Field input control type."
                          },
                          "label": {
                            "type": "string",
                            "description": "Human-readable field prompt label."
                          },
                          "default": {
                            "oneOf": [
                              {
                                "type": "string",
                                "description": "Default string value."
                              },
                              {
                                "type": "boolean",
                                "description": "Default boolean value."
                              },
                              {
                                "type": "number",
                                "description": "Default numeric value."
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "description": "Default option string."
                                },
                                "description": "Default list of selected values."
                              }
                            ],
                            "description": "Default answer value when omitted."
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "description": "Selectable option label."
                            },
                            "description": "Allowed choices for multiselect fields."
                          },
                          "required": {
                            "type": "boolean",
                            "description": "Whether the field is mandatory."
                          }
                        },
                        "description": "Individual intake question metadata.",
                        "additionalProperties": false
                      },
                      "description": "Form input definitions belonging to this category."
                    }
                  },
                  "description": "Single intake questionnaire section.",
                  "additionalProperties": false
                },
                "description": "Categorized intake sections containing form field definitions."
              },
              "document_type": {
                "enum": [
                  "all",
                  "privacy_policy",
                  "terms_of_service",
                  "cookie_policy",
                  "dpa",
                  "ai_governance"
                ],
                "type": "string",
                "description": "Applied document type scope."
              },
              "supported_document_types": {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "Supported document_type enum value."
                },
                "description": "Supported document_type values returned when validation fails."
              }
            },
            "description": "Structured compliance intake questionnaire schema.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "export_documents",
          "title": "Export Site Legal Documents",
          "description": "Exports all legal compliance documents currently attached to a registered website in clean Markdown ('markdown'), semantic HTML ('html'), or structured JSON ('json') format.\n\nWhen to use vs. related tools: Call 'export_documents' AFTER generating and attaching documents to a siteId via 'generate_documents' or 'generate_docs_questionnaire' (or for a pre-seeded site like 'site_paperloo_sandbox'). Note: calling 'export_documents' on a site with zero attached documents returns an empty 'documents' array—generate documents with that 'siteId' first.\n\nPreconditions & side effects: 'siteId' must exist in the active registry. Read-only transformation—does not mutate stored documents.\n\nReturns: JSON object containing 'success: true', 'siteId', 'format', 'total_documents', 'documents' (each with 'type', 'title', 'version', 'word_count', 'content'), and 'message' (or 'error' + 'available_sites').",
          "inputSchema": {
            "type": "object",
            "required": [
              "siteId"
            ],
            "properties": {
              "format": {
                "enum": [
                  "markdown",
                  "html",
                  "json"
                ],
                "type": "string",
                "default": "markdown",
                "examples": [
                  "markdown",
                  "html",
                  "json"
                ],
                "description": "Target export representation: raw 'markdown', semantic '<article>' 'html', or serialized section-parsed 'json'."
              },
              "siteId": {
                "type": "string",
                "examples": [
                  "site_paperloo_sandbox"
                ],
                "minLength": 1,
                "description": "Registered site UUID or exact registered URL whose documents should be exported."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "required": [
              "success"
            ],
            "properties": {
              "error": {
                "type": "string",
                "description": "Error message when siteId lookup or format validation fails."
              },
              "format": {
                "enum": [
                  "markdown",
                  "html",
                  "json"
                ],
                "type": "string",
                "description": "Output serialization format applied."
              },
              "siteId": {
                "type": "string",
                "description": "Resolved registered site identifier."
              },
              "message": {
                "type": "string",
                "description": "Human-readable export summary or empty-state guidance."
              },
              "success": {
                "type": "boolean",
                "description": "True if document export succeeded; false if siteId or format is invalid."
              },
              "documents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "title",
                    "version",
                    "word_count",
                    "content"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Document type key (e.g. 'privacy_policy')."
                    },
                    "title": {
                      "type": "string",
                      "description": "Human-readable document title."
                    },
                    "content": {
                      "type": "string",
                      "description": "Serialized document body in Markdown, HTML, or JSON string form."
                    },
                    "version": {
                      "type": "string",
                      "description": "Document version number."
                    },
                    "word_count": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Word count of the underlying document."
                    }
                  },
                  "description": "Exported legal document entry.",
                  "additionalProperties": false
                },
                "description": "Formatted compliance documents attached to the site."
              },
              "available_sites": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "Registered site identifier."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "Registered primary URL."
                    },
                    "name": {
                      "type": "string",
                      "description": "Human-readable property name."
                    }
                  },
                  "description": "Summary entry for a registered monitored website.",
                  "additionalProperties": false
                },
                "description": "Registered sites returned when siteId does not match."
              },
              "total_documents": {
                "type": "integer",
                "minimum": 0,
                "description": "Number of documents returned for the site."
              }
            },
            "description": "Exported site legal documents formatted as Markdown, HTML, or JSON.",
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "Paperloo Compliance Standards & Regulatory Matrix",
          "uri": "paperloo://compliance/standards",
          "mimeType": "text/markdown",
          "description": "Regulatory requirements enforced by Paperloo across GDPR, CCPA, EU AI Act, WCAG 2.1 AA, and Google Consent Mode v2"
        },
        {
          "name": "Paperloo OpenAPI 3.1 Specification",
          "uri": "paperloo://api/openapi",
          "mimeType": "application/json",
          "description": "Machine-readable OpenAPI 3.1 specification for all Paperloo APIs"
        },
        {
          "name": "Autonomous Agent Integration Manual",
          "uri": "paperloo://docs/agent-guide",
          "mimeType": "text/markdown",
          "description": "Comprehensive step-by-step guidance for LLMs and autonomous agents interacting with Paperloo infrastructure"
        },
        {
          "name": "Legal Questionnaire Schema & Question Catalog",
          "uri": "paperloo://questionnaire/schema",
          "mimeType": "application/json",
          "description": "Full JSON schema of compliance questions for automated questionnaire workflows"
        },
        {
          "name": "Paperloo Model Context Protocol Tools Catalog",
          "uri": "paperloo://mcp/tools-catalog",
          "mimeType": "text/markdown",
          "description": "Documentation and input examples for all 19 MCP compliance tools"
        }
      ],
      "prompts": [
        {
          "name": "audit-website",
          "description": "Audits a website for GDPR, CCPA, Google Consent Mode v2, WCAG 2.1 AA, and EU AI Act compliance",
          "arguments": [
            {
              "name": "url",
              "required": true,
              "description": "Website URL to audit"
            }
          ]
        },
        {
          "name": "onboard-new-client-site",
          "description": "End-to-end agent workflow: registers site, gathers questionnaire data, generates policies, and configures cookie banner with GTM",
          "arguments": [
            {
              "name": "website_url",
              "required": true,
              "description": "Website URL"
            },
            {
              "name": "company_name",
              "required": true,
              "description": "Company or Client Name"
            }
          ]
        },
        {
          "name": "generate-compliance-suite",
          "description": "Guides user through questionnaire responses and generates bulletproof legal policies",
          "arguments": [
            {
              "name": "company_name",
              "required": true,
              "description": "Legal entity name"
            },
            {
              "name": "website_url",
              "required": true,
              "description": "Website domain"
            }
          ]
        }
      ]
    },
    "instructions": null
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}