Skip to main content
Glama

Verify an accessibility fix

verify_fix
Read-onlyIdempotent

Re-scan a specific element after applying an accessibility fix and confirm the violation is gone. After you edit the code and serve it (deployed, staging, or http://localhost:3000), call this with the URL and the selector you fixed to get a machine-checked verified: true|false (DOM engines only — visual_audit findings are out of scope). Pass the WCAG criterion (e.g. "1.1.1") or axe rule id (e.g. "color-contrast") to check just that criterion; omit it to require the element be clean of ALL violations. A blocked page (bot-challenge / HTTP error) is reported as unverified, never a pass — verification fails closed. verified: true is only returned when the selector matched at least one element AND the criterion is one the DOM engines check; if the selector matches no element the result is verified: false with reason "not-found" ("selector matched no elements"), a criterion outside the coverage set returns reason "not-verifiable" ("not checked by any WebAbility tool"); a finding in scope that only the AI judge can settle, when the judge did not run or gave no verdict, also returns "not-verifiable", and shadow-DOM (>>>) / iframe selectors return "unsupported-selector" — pass the element's current selector, or re-run scan_page if your fix removed the element. Pair with scan_page → generate_ai_fix → verify_fix for a full find-fix-verify cycle. If the page is behind a login or a consent wall, pass the same cookies / interactions you sent scan_page — verifying on the sign-in screen proves nothing. NOTE: on this HOSTED server, localhost and private addresses are refused — it runs in our cloud and cannot reach your machine. Two ways to scan a local dev server: run the MCP locally (npx -y @webability/mcp, simplest — nothing leaves the machine), or open a tunnel (webability-tunnel --port 3000) and pass its URL as url together with the printed secret as tunnel_secret.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>",
      "selector": "<selector>"
    },
    "name": "verify_fix"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL now serving the fix (deployed, staging, or http://localhost:3000). Also accepted as `page` or `pageUrl`.
wcagNoOptional: WCAG criterion (e.g. "1.1.1", "1.4.3") or axe rule id (e.g. "color-contrast") to verify specifically. Omit to require the element be free of ALL violations.
contextNoExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
cookiesNoSession cookies to load before the page opens, for pages behind a login or a consent gate (at most 20). Each entry is {name, value} and optionally {url} or {domain} (default: the scanned site) plus {path}. The server sets them on the browser context for this call only and never echoes a value: results name cookies by count, never by content. Nothing is stored after the scan.
selectorYesCSS selector of the element you fixed — use the `selector` from the original scan_page issue
viewportNoViewport size (default: desktop). Use the same viewport the issue was found at.
llm_modelNoThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
interactionsNoSteps to run on the page after it loads and before the scan, in order (at most 10, 20s total). Use this to get past a cookie banner, submit a sign-in, or open the panel you want measured. Each step is exactly one of {click: "css selector"}, {fill: {selector, value}}, {waitFor: "css selector"} or {wait: milliseconds}. The scan then measures the page those steps left behind and reports every step in "setup" (a failed step stops the list; the scan still runs and says so). Unlike dismissModals this is deterministic and yours, not a guess.
tunnel_secretNoSecret printed by `webability-tunnel`. Required when `url` is a tunnel URL; the URL alone will be refused by the relay. Ignored otherwise.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "at": {
      +          "type": "string"
      +        },
      +        "kind": {
      +          "const": "verify"
      +        },
      +        "reason": {
      +          "type": "string"
      +        },
      +        "remaining": {
      +          "items": {
      +            "properties": {
      +              "impact": {
      +                "type": "string"
      +              },
      +              "message": {
      +                "type": "string"
      +              },
      +              "type": {
      +                "type": "string"
      +              },
      +              "wcag": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "remainingCount": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "selector": {
      +          "type": "string"
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "verified": {
      +          "type": "boolean"
      +        },
      +        "wcag": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "at",
      +        "url",
      +        "selector",
      +        "verified",
      +        "remainingCount",
      +        "remaining"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "error": {
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "next": {
      +              "properties": {
      +                "action": {
      +                  "type": "string"
      +                },
      +                "args": {
      +                  "type": "object"
      +                },
      +                "tool": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "tool"
      +              ],
      +              "type": "object"
      +            },
      +            "retriable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "retriable",
      +            "next"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / cookies
      Added value: +{
      +  "description": "Session cookies to load before the page opens, for pages behind a login or a consent gate (at most 20). Each entry is {name, value} and optionally {url} or {domain} (default: the scanned site) plus {path}. The server sets them on the browser context for this call only and never echoes a value: results name cookies by count, never by content. Nothing is stored after the scan.",
      +  "items": {
      +    "properties": {
      +      "domain": {
      +        "description": "Scope this cookie to a domain (e.g. .example.com). Do not combine with url.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Cookie name, e.g. session_id",
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Cookie path (default /)",
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "Scope this cookie to a URL (e.g. https://app.example.com). Default: the scanned site. Do not combine with domain.",
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Cookie value. Never echoed in the result.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "value"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / interactions
      Added value: +{
      +  "description": "Steps to run on the page after it loads and before the scan, in order (at most 10, 20s total). Use this to get past a cookie banner, submit a sign-in, or open the panel you want measured. Each step is exactly one of {click: \"css selector\"}, {fill: {selector, value}}, {waitFor: \"css selector\"} or {wait: milliseconds}. The scan then measures the page those steps left behind and reports every step in \"setup\" (a failed step stops the list; the scan still runs and says so). Unlike dismissModals this is deterministic and yours, not a guess.",
      +  "items": {
      +    "properties": {
      +      "click": {
      +        "description": "CSS selector to click, e.g. #onetrust-accept-btn-handler",
      +        "type": "string"
      +      },
      +      "fill": {
      +        "description": "Type into a field, e.g. {selector: \"#email\", value: \"qa@example.com\"}",
      +        "properties": {
      +          "selector": {
      +            "type": "string"
      +          },
      +          "value": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "selector",
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "wait": {
      +        "description": "Milliseconds to wait (0-5000)",
      +        "type": "number"
      +      },
      +      "waitFor": {
      +        "description": "CSS selector to wait for, visible, before the next step",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
  3. Changed1 schema field changed
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      -  "type": "string"
      -}
  4. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "url",
      -  "selector",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "url",
      +  "selector"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"URL now serving the fix (deployed, staging, or http://localhost:3000)"New value: +"URL now serving the fix (deployed, staging, or http://localhost:3000). Also accepted as `page` or `pageUrl`."
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantial behavior beyond them: fail-closed semantics ('a blocked page... is reported as unverified, never a pass'), the exact conditions for verified:true, and enumerated failure reasons (not-found, not-verifiable, unsupported-selector). This is exactly the rich behavioral context the dimension rewards.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core purpose in sentence one and every sentence carries operational value, but the body is dense with nested conditionals and host-specific NOTE text that makes it longer than ideal. No filler, yet slightly heavy for a single scan tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values needn't be spelled out, and the description still enumerates the meaningful result states and edge cases (not-found, not-verifiable, unsupported-selector, blocked page). For a 9-parameter verification tool, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by clarifying wcag semantics (criterion vs axe rule, omit to require clean of ALL violations) and adding practical selector guidance ('pass the element's current selector, or re-run scan_page if your fix removed the element'). It stops short of full marks because most of this overlaps the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: 'Re-scan a specific element after applying an accessibility fix and confirm the violation is gone.' It explicitly scopes out visual_audit findings ('DOM engines only') and distinguishes itself from scan_page and generate_ai_fix, so an agent can route correctly without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('after you edit the code and serve it'), names the full cycle ('scan_page → generate_ai_fix → verify_fix'), states the exclusion (visual_audit out of scope), and covers prerequisites like passing cookies/interactions for login walls and the tunnel/localhost path. Nothing is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.