AgenticWebScore
Scan

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.
WebMCP browser tool declaration — Property, Value
Property Value
Check idwebmcp
DimensionAPI and agent
PartAgent conventions
TierRecommended. Counts its weight once.
Weight1
MaturityExperimental. An early convention that may still change shape.
Publishing skillwebmcp
StandardsW3C WebMCP

Sources

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

Related checks — Check, Kind, Maturity, Same skill
Check Kind Maturity Same skill
mcp-card — MCP server cardUnscored checkDraft—
mcp-server — MCP server answers and lists its toolsScored checkAdopted—
openapi — OpenAPI definitionScored checkAdopted—
oauth-discovery — OAuth discovery documentsScored checkAdopted—
api-catalog — API catalogScored checkAdopted—
agent-skills — Agent Skills declarationUnscored checkDraft—
a2a-card — A2A agent cardUnscored checkDraft—
a2a-signed — Cryptographically signed agent cardUnscored checkDraft—