Skip to main content
Glama

Scan a multi-page user flow

flow_scan
Read-onlyIdempotent

Scan a multi-page user journey. Walks startUrl plus the autoNavigate URLs sequentially (deterministic — one page fully rendered and scanned before the next), then returns ONE consolidated report with issues deduplicated across pages, each carrying the same fix payload as scan_page. Every requested URL gets an explicit outcome in pages[] (scanned / nav_failed / scan_failed / redirected_duplicate / duplicate_request / skipped_cap / blocked — bot-challenge, not a clean page / auth_redirect — a session was given but the page is a sign-in page, session likely expired) — a page is never silently dropped. It visits URLs; it does not click links. To get past a login or a consent wall, pass cookies (both transports) or storageState (local MCP only), and interactions to click/fill once on startUrl before the journey is measured — those steps run on the first page only, and the session they create carries through the rest. Without autoNavigate it scans only startUrl, exactly like scan_page. 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": {
      "startUrl": "<startUrl>"
    },
    "name": "flow_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
wcagNoOnly these WCAG criteria. A prefix selects the whole guideline ("1.4") or principle ("2").
levelNoHighest WCAG conformance level to report. Default "AA" — Level AAA criteria are not reported. Pass "AAA" to include them (naming one AAA criterion in `wcag`, e.g. "3.2.5", also includes it).
rulesNoOnly these rule ids (WebAbility type such as "missing_alt" or axe rule id such as "image-alt"). See get_rules.
formatNo"compact" prints one line per element with rule metadata once. "json" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count. On the hosted server the default is compact.
offsetNoStart the issue list at this index of the severity-sorted entries. The response carries `nextOffset` when more remain; pass it to read the next page. Default 0. Each call scans the page again, so on a live page the list can shift between calls; treat the offset as a position, not a snapshot.
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.
maxPagesNoMax pages to scan (default 10; at most 10 on the hosted server)
startUrlYesStarting URL of the journey
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.
minImpactNoOnly findings at this severity or above (critical > serious > moderate > minor)
sourceRootNoLocal project root (local installs only) for `sourceCandidates[]` on issues without a framework `source` pointer.
autoNavigateNoThe URLs to walk after startUrl, in order (the MCP server is headless and cannot discover a journey interactively). Omit or pass [] to scan only startUrl as a single page.
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.
storageStateNoLocal MCP only. Path to a Playwright storage-state JSON file (cookies + localStorage) for pages behind a login. Make one by logging in once: `npx @webability/cli flow <login-url> --save-storage-state auth.json`. The hosted server refuses this argument.
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"
      +        },
      +        "filters": {
      +          "type": "string"
      +        },
      +        "framework": {
      +          "type": "string"
      +        },
      +        "issuesTotal": {
      +          "type": "number"
      +        },
      +        "kind": {
      +          "const": "scan"
      +        },
      +        "level": {
      +          "enum": [
      +            "A",
      +            "AA",
      +            "AAA"
      +          ],
      +          "type": "string"
      +        },
      +        "pageTotal": {
      +          "type": "number"
      +        },
      +        "reportUrl": {
      +          "type": "string"
      +        },
      +        "summary": {
      +          "properties": {
      +            "critical": {
      +              "type": "number"
      +            },
      +            "minor": {
      +              "type": "number"
      +            },
      +            "moderate": {
      +              "type": "number"
      +            },
      +            "serious": {
      +              "type": "number"
      +            },
      +            "total": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "total",
      +            "critical",
      +            "serious",
      +            "moderate",
      +            "minor"
      +          ],
      +          "type": "object"
      +        },
      +        "topIssues": {
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "url": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "at",
      +        "url",
      +        "level",
      +        "summary",
      +        "issuesTotal",
      +        "topIssues",
      +        "reportUrl"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "counts": {
      +          "type": "string"
      +        },
      +        "filters": {
      +          "type": "string"
      +        },
      +        "issueEntries": {
      +          "type": "number"
      +        },
      +        "issues": {
      +          "items": {
      +            "properties": {
      +              "count": {
      +                "type": "number"
      +              },
      +              "examples": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "expand": {
      +                "type": "string"
      +              },
      +              "fix": {
      +                "type": "object"
      +              },
      +              "fixability": {
      +                "enum": [
      +                  "mechanical",
      +                  "contextual",
      +                  "visual"
      +                ],
      +                "type": "string"
      +              },
      +              "foundOn": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "html": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "impact": {
      +                "type": "string"
      +              },
      +              "message": {
      +                "type": "string"
      +              },
      +              "rules": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "selector": {
      +                "type": "string"
      +              },
      +              "source": {
      +                "type": "object"
      +              },
      +              "sourceCandidates": {
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "type": {
      +                "type": "string"
      +              },
      +              "wcag": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "type",
      +              "wcag",
      +              "message",
      +              "selector"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "issuesTotal": {
      +          "type": "number"
      +        },
      +        "kind": {
      +          "const": "flow"
      +        },
      +        "nextOffset": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "offset": {
      +          "type": "number"
      +        },
      +        "pageSummary": {
      +          "properties": {
      +            "pagesDropped": {
      +              "type": "number"
      +            },
      +            "uniqueIssues": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "uniqueIssues",
      +            "pagesDropped"
      +          ],
      +          "type": "object"
      +        },
      +        "pages": {
      +          "items": {
      +            "properties": {
      +              "finalUrl": {
      +                "type": "string"
      +              },
      +              "issueCount": {
      +                "type": "number"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "requested": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "scanned",
      +                  "nav_failed",
      +                  "scan_failed",
      +                  "redirected_duplicate",
      +                  "duplicate_request",
      +                  "skipped_cap",
      +                  "blocked",
      +                  "auth_redirect"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "requested",
      +              "status"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "pagesRequested": {
      +          "type": "number"
      +        },
      +        "pagesScanned": {
      +          "type": "number"
      +        },
      +        "startUrl": {
      +          "type": "string"
      +        },
      +        "summary": {
      +          "properties": {
      +            "pagesDropped": {
      +              "type": "number"
      +            },
      +            "uniqueIssues": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "uniqueIssues",
      +            "pagesDropped"
      +          ],
      +          "type": "object"
      +        },
      +        "truncated": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "kind",
      +        "startUrl",
      +        "pagesRequested",
      +        "pagesScanned",
      +        "pages",
      +        "summary",
      +        "truncated",
      +        "offset",
      +        "nextOffset",
      +        "issues",
      +        "issueEntries",
      +        "issuesTotal"
      +      ]
      +    },
      +    {
      +      "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
    • addedInput schema / properties / storageState
      Added value: +{
      +  "description": "Local MCP only. Path to a Playwright storage-state JSON file (cookies + localStorage) for pages behind a login. Make one by logging in once: `npx @webability/cli flow <login-url> --save-storage-state auth.json`. The hosted server refuses this argument.",
      +  "type": "string"
      +}
  4. Changed2 schema fields changed
    • changedInput schema / properties / format / description
      Previous value: -"\"compact\" prints one line per element with rule metadata once. \"json\" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count."New value: +"\"compact\" prints one line per element with rule metadata once. \"json\" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count. On the hosted server the default is compact."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Start the issue list at this index of the severity-sorted entries. The response carries `nextOffset` when more remain; pass it to read the next page. Default 0. Each call scans the page again, so on a live page the list can shift between calls; treat the offset as a position, not a snapshot.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / maxPages / description
      Previous value: -"Max pages to scan (default 10)"New value: +"Max pages to scan (default 10; at most 10 on the hosted server)"
  6. Changed2 schema fields changed
    • changedInput schema / properties / autoNavigate / description
      Previous value: -"REQUIRED — the URLs to walk after startUrl (the MCP server is headless and cannot discover a journey interactively). For a single page, use scan_page instead."New value: +"The URLs to walk after startUrl, in order (the MCP server is headless and cannot discover a journey interactively). Omit or pass [] to scan only startUrl as a single page."
    • changedInput schema / required
      Previous value: -[
      -  "startUrl",
      -  "autoNavigate"
      -]New value: +[
      +  "startUrl"
      +]
  7. Changed1 schema field changed
    • addedInput schema / properties / level
      Added value: +{
      +  "description": "Highest WCAG conformance level to report. Default \"AA\" — Level AAA criteria are not reported. Pass \"AAA\" to include them (naming one AAA criterion in `wcag`, e.g. \"3.2.5\", also includes it).",
      +  "enum": [
      +    "A",
      +    "AA",
      +    "AAA"
      +  ],
      +  "type": "string"
      +}
  8. 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"
      -}
  9. Changed2 schema fields changed
    • changedInput schema / properties / format / description
      Previous value: -"\"compact\" prints one line per element with rule metadata once — far fewer tokens than the default JSON. Default json."New value: +"\"compact\" prints one line per element with rule metadata once. \"json\" returns every field (html, fix values, source). Default: JSON when it fits inline (under ~24k chars), otherwise compact plus a JSON summary of every count."
    • changedInput schema / required
      Previous value: -[
      -  "startUrl",
      -  "autoNavigate",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "startUrl",
      +  "autoNavigate"
      +]
  10. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover safety (readOnly, non-destructive, idempotent), but the description adds substantial behavior beyond them: deterministic one-page-at-a-time ordering, deduplication across pages, an explicit enumerated set of per-page outcomes so a page is never silently dropped, the fact that it does not click links, and that interactions run only on the first page with the session carried forward. That is exactly the extra context the annotations cannot supply.

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

Conciseness4/5

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

Front-loaded with the core behavior and ordered sensibly: what it does, per-page outcomes, limits, then the hosted-server caveat. It is dense and mostly earns its length, though the long parenthetical outcome list and the extended tunnel recipe make it a heavier read than strictly necessary.

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

Completeness5/5

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

For a 16-parameter orchestration tool with an output schema, the definition covers the decisions an agent actually has to make: multi-page vs single-page, auth strategy, interaction steps, and the hosted localhost constraint. Return shape is partially described (one consolidated deduplicated report) and the output schema carries the rest.

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% and each parameter is already well documented, so the baseline is 3. The description adds genuine cross-parameter meaning the schema does not: autoNavigate ordering, cookies working on both transports while storageState is local-only and refused on hosted, and interactions applying to startUrl only with the resulting session propagating. It stops short of covering maxPages, level, wcag, and tunnel_secret explicitly, but the schema handles those adequately.

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?

Opens with a specific verb+resource ('Scan a multi-page user journey') and immediately draws the boundary against scan_page ('Without `autoNavigate` it scans only startUrl, exactly like scan_page'). An agent can distinguish it from scan_page and diff_scan 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?

Explicitly states when to use it (walking an ordered set of URLs), when not to (no autoNavigate = just use scan_page), and how to handle the two common blockers, login/consent walls via cookies/storageState and bot challenges, plus the hosted-server localhost restriction with two named workarounds. Nothing about selection 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.