# WebMCP checker

Test your page's declarative WebMCP HTML forms and document.modelContext.registerTool() registrations against Google's Modern Web Guidance rules.

Run it at https://crawlwise.dev/tools/webmcp-checker: paste a public URL, no account needed. The scan runs the full CrawlWise audit and returns a private report.

## What this checker tests

- WebMCP tools are complete (`api.webmcp`)

## What this WebMCP validator checks

After rendering your URL in Chromium, CrawlWise runs `api.webmcp` against Google Chrome's
[Modern Web Guidance](https://github.com/GoogleChrome/modern-web-guidance) rules:

- **Declarative `<form>` attributes**: detects forms carrying `toolname`, `tooldescription` or
  `toolautosubmit` and warns if either required attribute is empty or missing.
- **Form parameter schema**: verifies that enabled controls (`input`, `select`, `textarea`) carry a
  `name` attribute and a parameter description in Chrome's resolution order (`toolparamdescription`
  on the field or parent `<fieldset>`, associated `<label>`, then `aria-description`).
- **Imperative JavaScript tools**: wraps `document.modelContext.registerTool()` to check `name`,
  `description`, `inputSchema` and `execute`, records optional `annotations`, `outputSchema` and
  `AbortSignal` usage, and flags calls to the deprecated `navigator.modelContext`.
- **Collisions and Secure Context**: warns on duplicate tool names across forms and scripts, and on
  WebMCP tools exposed over plain HTTP.

## Minimal valid declarative form

```html
<form action="/search" method="get"
      toolname="search-catalog"
      tooldescription="Search products by keyword."
      toolautosubmit>
  <label for="q">Keyword</label>
  <input id="q" name="q" type="search" required
         toolparamdescription="Product name, brand or SKU">
  <button type="submit">Search</button>
</form>
```

Browsers without WebMCP ignore `tool*` attributes, so the form works identically for human visitors.
Read the full [WebMCP guide](/guides/webmcp), or inspect `/.well-known` MCP and A2A discovery files
with the [WebMCP and agent discovery checker](/tools/mcp-agent-discovery-checker).

## FAQ

### What does a declarative WebMCP form need to pass?

The <form> needs a unique toolname and a concise tooldescription over HTTPS. Every enabled input, select or textarea needs a name attribute and a parameter description via toolparamdescription (on the control or enclosing fieldset), an associated label or aria-description.

### When should I use or omit toolautosubmit?

Use toolautosubmit on read-only queries (search, filters, stock checks) and reversible actions. Omit it on checkouts, payments, deletions, account settings and messages sent to other people so a human confirms the submission.

### Does CrawlWise execute my WebMCP tools during the check?

No. CrawlWise renders the page in Chromium, records tools passed to document.modelContext.registerTool() and inspects declarative form attributes in the rendered DOM without invoking any execute handler or submitting any form.

### Why did CrawlWise flag navigator.modelContext?

Chrome deprecated navigator.modelContext in favor of document.modelContext. Updating to document.modelContext.registerTool() keeps imperative tools aligned with the current WebMCP API.

## Related guides

- [WebMCP: let AI agents use your site's forms](https://crawlwise.dev/guides/webmcp.md)
- [Lighthouse Agentic Browsing: what it checks](https://crawlwise.dev/guides/lighthouse-agentic-browsing.md)
- [Is your site agent-ready? A practical checklist](https://crawlwise.dev/guides/agent-ready-website-checklist.md)

---

Last updated 25 November 2026.

HTML version: <https://crawlwise.dev/tools/webmcp-checker>

Every CrawlWise page in Markdown: <https://crawlwise.dev/llms.txt>
