{
  "ruleset": "2026-11-10.2",
  "securityRules": {
    "WMCP-SEC-001": {
      "severity": "critical",
      "title": "Tool description injection",
      "owasp": [
        "ASI01",
        "ASI02"
      ],
      "codes": [
        "text-agent-directive",
        "text-usage-instruction",
        "text-hidden-characters",
        "text-mixed-scripts",
        "text-encoded-blob",
        "text-markup",
        "text-embedded-address",
        "text-active-payload"
      ],
      "precision": "medium",
      "description": "Model-facing tool text carries an instruction that overrides earlier instructions, hides an action from the user, redirects data or another tool, or tells the agent when and in what order to call tools; or it contains invisible or direction-changing characters, look-alike scripts, encoded blobs, markup or addresses.",
      "help": "Describe only the action, its inputs and its result. Remove agent-directed instructions and invisible characters; keep links and markup out of model-facing text."
    },
    "WMCP-SEC-002": {
      "severity": "high",
      "title": "Mutating tool annotations",
      "owasp": [
        "ASI02",
        "ASI09"
      ],
      "codes": [
        "consequential-without-hint",
        "state-change-without-hint",
        "readonly-claim-on-mutating-verb",
        "mutation-hints-incomplete"
      ],
      "precision": "medium",
      "description": "A tool whose name or description indicates a state change does not declare readOnlyHint and consequentialHint consistently.",
      "help": "Declare readOnlyHint: false and consequentialHint: true for consequential actions. Never declare readOnlyHint on a tool that changes state."
    },
    "WMCP-SEC-003": {
      "severity": "high",
      "title": "Input schema constraints",
      "owasp": [
        "ASI02",
        "ASI05"
      ],
      "codes": [
        "unbounded-string",
        "permissive-object"
      ],
      "precision": "high",
      "description": "String parameters have no maxLength, enum, pattern or format, or object schemas accept properties that were not declared.",
      "help": "Bound strings, close objects with additionalProperties: false, and validate inputs again in the tool implementation."
    },
    "WMCP-SEC-004": {
      "severity": "high",
      "title": "Authentication and confirmation boundary",
      "owasp": [
        "ASI03",
        "ASI09"
      ],
      "codes": [
        "mutating-auto-submit"
      ],
      "precision": "medium",
      "description": "A declarative form whose action changes state is submitted automatically (toolautosubmit) when an agent invokes it.",
      "help": "Remove toolautosubmit from forms that change state. Keep human confirmation and server-side authorization bound to the exact request."
    },
    "WMCP-SEC-005": {
      "severity": "medium",
      "title": "Legacy WebMCP registration",
      "owasp": [
        "ASI04"
      ],
      "codes": [
        "legacy-host",
        "legacy-registration"
      ],
      "precision": "high",
      "description": "The tool is registered on the legacy navigator.modelContext or provideContext surface.",
      "help": "Register tools with document.modelContext.registerTool() and remove them by aborting their AbortSignal."
    },
    "WMCP-SEC-006": {
      "severity": "medium",
      "title": "Origin discovery and headers",
      "owasp": [
        "ASI04"
      ],
      "codes": [
        "convention-manifest-present",
        "convention-manifest-invalid",
        "convention-llms-txt-present",
        "convention-permissions-policy",
        "convention-permissions-policy-absent",
        "convention-csp",
        "convention-cors",
        "convention-unavailable"
      ],
      "precision": "high",
      "description": "Response headers and optional discovery conventions observed for the origin.",
      "help": "Review Permissions-Policy tools, Content-Security-Policy and CORS for this origin. Discovery files are optional conventions, not requirements."
    },
    "WMCP-SEC-007": {
      "severity": "low",
      "title": "Description budget and ambiguity",
      "owasp": [
        "ASI02"
      ],
      "codes": [
        "text-over-budget",
        "token-estimate-over-budget",
        "ambiguous-description"
      ],
      "precision": "high",
      "description": "Model-facing text exceeds Chrome character budgets or the estimated token budget, or overlaps another tool description.",
      "help": "Keep names within 30, descriptions within 500 and parameter descriptions within 150 characters; make each tool purpose distinct."
    },
    "WMCP-SEC-008": {
      "severity": "high",
      "title": "Declarative form contract integrity",
      "owasp": [
        "ASI02",
        "ASI03",
        "ASI09"
      ],
      "codes": [
        "declarative-hidden-parameter",
        "declarative-credential-field",
        "declarative-param-orphan",
        "declarative-post-auto-submit"
      ],
      "precision": "medium",
      "description": "A declarative tool form submits hidden business values the agent cannot see, asks the agent for credential or card fields, describes parameters that never reach the schema, or auto-submits a POST form.",
      "help": "Keep business values on the server, leave credential and payment fields out of agent forms, name every described control, and remove toolautosubmit from forms that change state."
    },
    "WMCP-SEC-009": {
      "severity": "high",
      "title": "Read-only contract contradicted by callback source",
      "owasp": [
        "ASI02",
        "ASI09"
      ],
      "codes": [
        "readonly-callback-mutation"
      ],
      "precision": "medium",
      "description": "A tool declared readOnlyHint: true contains request or form-submission code using a method that is not safe in its callback source text.",
      "help": "Declare the tool as state-changing (readOnlyHint: false, and consequentialHint: true for consequential actions) or move the write out of the tool. The indicator does not prove behavior: review the callback."
    },
    "WMCP-SEC-010": {
      "severity": "medium",
      "title": "Untrusted content labelling",
      "owasp": [
        "ASI01",
        "ASI06"
      ],
      "codes": [
        "ugc-without-untrusted-hint",
        "output-reflects-input"
      ],
      "precision": "medium",
      "description": "A tool that returns content written by other people or fetched elsewhere does not declare untrustedContentHint, or echoes caller input into its output.",
      "help": "Set untrustedContentHint: true on tools that return user-generated or third-party content, and do not echo caller input into model-facing output."
    },
    "WMCP-SEC-011": {
      "severity": "medium",
      "title": "Cross-origin exposure and frame surface",
      "owasp": [
        "ASI03",
        "ASI04"
      ],
      "codes": [
        "exposed-to-cross-origin",
        "third-party-registration",
        "cross-origin-frame-tools",
        "delegated-tools-policy",
        "opaque-origin-tool"
      ],
      "precision": "high",
      "description": "The tool is exposed to other origins through exposedTo, was registered by a script or frame from another origin, or the page delegates the tools feature to embedded frames.",
      "help": "Expose tools only to origins trusted to act for the user and keep state-changing tools same-origin. Review third-party scripts and allow=\"tools\" delegations."
    },
    "WMCP-SEC-012": {
      "severity": "medium",
      "title": "Oversized model-facing text",
      "owasp": [
        "ASI01"
      ],
      "codes": [
        "text-far-over-budget"
      ],
      "precision": "high",
      "description": "A model-facing field is more than twice the Chrome character budget; invisible characters or encoded blobs inside it suggest concealment.",
      "help": "Bring the field below its budget and remove invisible or encoded content: long text can hide instructions from human review."
    },
    "WMCP-SEC-013": {
      "severity": "critical",
      "title": "Client-side secret exposure",
      "owasp": [
        "ASI03"
      ],
      "codes": [
        "client-secret-exposed"
      ],
      "precision": "high",
      "description": "A credential in a provider secret-key format appears in script text that the page sends to every visitor.",
      "help": "Revoke and rotate the key with the provider, then move the call to your server. Only publishable keys belong in client code."
    }
  },
  "formula": {
    "start": 100,
    "weights": {
      "critical": 40,
      "high": 20,
      "medium": 10,
      "low": 5,
      "info": 0
    },
    "criticalCap": 49,
    "noTools": null,
    "grouping": "highest severity per rule/tool instance",
    "optionalConventionsScored": false
  },
  "categories": [
    {
      "id": "contract",
      "title": "Registration and contract observations",
      "max": 0
    },
    {
      "id": "transport",
      "title": "Transport and origin headers (informational)",
      "max": 0
    },
    {
      "id": "discovery",
      "title": "Origin Discovery & Agent Conventions (Informational — 0 Score Impact)",
      "max": 0
    },
    {
      "id": "I",
      "title": "Capture and callback observations",
      "max": 0
    }
  ],
  "checks": [
    {
      "id": "A1",
      "key": "A1",
      "category": "contract",
      "max": 0,
      "title": "Observed WebMCP surface"
    },
    {
      "id": "A2",
      "key": "A2",
      "category": "contract",
      "max": 0,
      "title": "Registration compatibility"
    },
    {
      "id": "A3",
      "key": "A3",
      "category": "contract",
      "max": 0,
      "title": "Declarative form contracts"
    },
    {
      "id": "B1",
      "key": "B1",
      "category": "contract",
      "max": 0,
      "title": "Tool naming"
    },
    {
      "id": "B2",
      "key": "B2",
      "category": "contract",
      "max": 0,
      "title": "Description clarity"
    },
    {
      "id": "B3",
      "key": "B3",
      "category": "contract",
      "max": 0,
      "title": "Schema completeness"
    },
    {
      "id": "C1",
      "key": "C1",
      "category": "transport",
      "max": 0,
      "title": "HTTPS"
    },
    {
      "id": "C2",
      "key": "C2",
      "category": "transport",
      "max": 0,
      "title": "Content Security Policy"
    },
    {
      "id": "C3",
      "key": "C3",
      "category": "transport",
      "max": 0,
      "title": "Mixed content references"
    },
    {
      "id": "C4",
      "key": "C4",
      "category": "transport",
      "max": 0,
      "title": "Permissions-Policy tools"
    },
    {
      "id": "C5",
      "key": "C5",
      "category": "transport",
      "max": 0,
      "title": "Strict-Transport-Security"
    },
    {
      "id": "C6",
      "key": "C6",
      "category": "transport",
      "max": 0,
      "title": "Origin-trial tokens"
    },
    {
      "id": "D1",
      "key": "D1",
      "category": "discovery",
      "max": 0,
      "title": "Schema.org (optional)"
    },
    {
      "id": "D2",
      "key": "D2",
      "category": "discovery",
      "max": 0,
      "title": "llms.txt (optional)"
    },
    {
      "id": "D5",
      "key": "D5",
      "category": "discovery",
      "max": 0,
      "title": "robots.txt policy"
    },
    {
      "id": "I3",
      "key": "I3",
      "category": "discovery",
      "max": 0,
      "title": "/.well-known/webmcp (optional)"
    },
    {
      "id": "I1",
      "key": "I1",
      "category": "I",
      "max": 0,
      "title": "Capture method and limits"
    },
    {
      "id": "I2",
      "key": "I2",
      "category": "I",
      "max": 0,
      "title": "Registration timing"
    },
    {
      "id": "I4",
      "key": "I4",
      "category": "I",
      "max": 0,
      "title": "Declared read-only callback source indicators"
    },
    {
      "id": "I5",
      "key": "I5",
      "category": "I",
      "max": 0,
      "title": "Agent-initiated request header (convention)"
    },
    {
      "id": "I6",
      "key": "I6",
      "category": "I",
      "max": 0,
      "title": "Embedded frames and tools delegation"
    }
  ]
}