API and agent · Recommended
WebMCP browser tool declaration
WebMCP lets a page register tools for an in-browser agent. It is a W3C Community Group draft.
- Scored check
- Agent conventions
- Recommended
- Experimental standard
Standard status Experimental. An early convention that may still change shape. Standard: W3C WebMCP.
- Kind
- Scored check
- Part of the score
- Agent conventions: 30% of the score. A convention never holds a level.
- Module
- Every site
- Applies when
- the homepage has a form or registers a tool
- Who reads it today
- Chrome, behind an origin trial. Lighthouse audits it.
- Effect on Google Search
- None. No Google Search documentation says Google reads it.
| Property | Value |
|---|---|
| Check id | webmcp |
| Dimension | API and agent |
| Part | Agent conventions |
| Tier | Recommended. Counts its weight once. |
| Weight | 1 |
| Maturity | Experimental. An early convention that may still change shape. |
| Publishing skill | webmcp |
| Standards | W3C WebMCP |
Sources
- WebMCP draft, W3C Web Machine Learning Community Group
- Chrome: WebMCP, Chrome for Developers
- Chrome: WebMCP imperative API, Chrome for Developers
- Chrome: WebMCP declarative API, Chrome for Developers
What is measured
The scanner reads the homepage only: the WebMCP draft defines an in-page API and no manifest file. It counts registerTool() calls and forms that declare a tool with a toolname attribute; the form attributes are described in Chrome's declarative API documentation, not in the draft's text. It is present when every tool is complete: a registerTool() call that names a name, a description, and an inputSchema, and a form that carries a toolname and a tooldescription. That rule follows Chrome's documentation, which asks for an input schema; the draft marks inputSchema optional. It is partial when a declared tool lacks one of them, and not used when the homepage has forms and declares no tool. A homepage with no form and no registerTool() call offers no task to declare, so the check is out of scope, as Lighthouse marks such a page. A complete declaration earns the check's points in the agent-conventions part, a partial one half of them, and none earns nothing.
Reproduce it yourself
You do not have to take our word for any of this. Run the same measurement against your own domain:
HOMEPAGE=https://example.com/
curl -sSL -A 'AgenticWebScore/0.3 (+https://agenticwebscore.com/bot)' -H 'Accept-Language: en' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,text/plain;q=0.8,*/*;q=0.7' "$HOMEPAGE" | grep -oE 'registerTool\(|<form[^>]*toolname[^>]*>' | sort | uniq -c
Run it on your own site with the WebMCP checker. Its report opens on this check.
The fix
This is an example written for example.com. Where the scan can build the fix from your own site, the report shows that version instead.
// WebMCP (W3C Community Group draft): register a tool an in-browser agent can call.
if ('modelContext' in document) {
document.modelContext.registerTool({
name: 'search_site',
description: 'Search this site and return the matching pages.',
inputSchema: {
type: 'object',
properties: { query: { type: 'string', description: 'The words to search for' } },
required: ['query'],
},
annotations: { readOnlyHint: true },
async execute({ query }) {
// Call the site's own search here and return its results as text.
return 'Results for ' + query;
},
}).catch((error) => console.warn('WebMCP registration failed', error));
}
Standards referenced
-
W3C WebMCP
Related checks
| Check | Kind | Maturity | Same skill |
|---|---|---|---|
mcp-card — MCP server card | Unscored check | Draft | — |
mcp-server — MCP server answers and lists its tools | Scored check | Adopted | — |
openapi — OpenAPI definition | Scored check | Adopted | — |
oauth-discovery — OAuth discovery documents | Scored check | Adopted | — |
api-catalog — API catalog | Scored check | Adopted | — |
agent-skills — Agent Skills declaration | Unscored check | Draft | — |
a2a-card — A2A agent card | Unscored check | Draft | — |
a2a-signed — Cryptographically signed agent card | Unscored check | Draft | — |