What does /.well-known/webmcp.json do for agent discovery?

By the Ingenious AI team · Published 14 November 2026 · Reviewed 14 November 2026

Check your own store free. AgentReady fetches your catalog, structured data, crawler rules and policies, then shows — with evidence — what AI shopping agents can and cannot read.

Scan my store free → Check one product's truth →

The short answer

It is the second doorbell for your tool surface. AgentReady's replay step for WebMCP first looks for modelContext markers on your homepage; if none appear, it fetches /.well-known/webmcp.json, and a manifest that answers successfully establishes the surface. Stores found through neither route warn on the check (5 points) — agents then have no tool contract to discover by either agreed path.

What is the webmcp.json manifest file?

The webmcp.json manifest file is a JSON document served at /.well-known/webmcp.json that describes a site's WebMCP tool surface at domain level, so agents can discover the store's callable tools before — or without — parsing a page for inline modelContext registrations.

Two routes to the same contract

Agent discovery works best with redundancy, because agents arrive with different habits. Some load a page and inspect it in context — inline markers serve them. Some orient at the domain first, fetching the well-known files (robots.txt, the ACP discovery document, the WebMCP manifest) before spending fetches on pages — the manifest file serves them. A store that publishes through both routes is discoverable by both kinds of reader; a store that publishes through neither is, at the tool layer, silent.

The replay harness encodes exactly that redundancy. Its webmcp_surface step searches the homepage body for modelContext markers; only when that search comes up empty does it spend a fetch on /.well-known/webmcp.json, recording the file's status as the step's evidence when it does. Pass by either route counts as a surface. The scan's homepage check looks for the markers directly. Between the two verifications, a store learns not just whether a surface exists, but through which door agents will find it.

Why a file, when markers already exist?

Because markers live inside pages, and pages change. A theme update that drops the registration script erases the inline route overnight; a static manifest at a well-known address survives redesigns, template swaps and most plugin churn, because nothing in the visual layer owns it. The file is also cheaper for agents to check — one small JSON fetch instead of a full page render — which matters at the orientation stage when an agent is deciding whether a store is worth deeper attention.

The trade is drift: a file can outlive the tools it describes. Markers registered by live code usually die with the code; a manifest file happily advertises retired endpoints forever unless someone owns it. That is why the manifest's best source is generation from the store's real forms — AgentReady's Pro generator drafts it from the scan's detected forms — and its best maintenance is regeneration on change. A generated file at a stable address combines the file's durability with the code's truthfulness.

What the fetch must return

The replay's fallback is forgiving about content and strict about arrival: the fetch must succeed. A 404 means no manifest. A redirect to the homepage means the routing layer swallowed the path — the same failure that afflicts the ACP discovery file when an over-broad 'unknown paths go home' rule is in force, and with the same misleading 200 if the redirect lands softly. A security rule answering 403 on .well-known paths means the doorbell is behind the fence. The step's evidence records the file's HTTP status whenever the fallback fetch happens, so the report tells you which of those worlds you live in.

Serve the file as what it is: valid JSON, a document content type, unauthenticated, at the exact path. Do not gate it behind the bot challenges that protect checkout — discovery files are public by design, read by precisely the automated visitors those challenges repel. And keep it small and current: it is a directory of tools, not a manual. If the JSON fails to parse, treat that as absence, because an agent's parser will.

Keeping the two routes in agreement

When both routes exist, they must describe the same surface. Divergence is the stale-feed disease in a new organ: markers registering tools A and B, a manifest advertising B and C, and an agent's experience depending on which door it knocked on. The prevention is single-sourcing — generate the manifest from the same form inventory the inline registration is built from, or generate both from the scan's detected forms, and regenerate whenever forms change.

Verification is similarly paired. The scan checks the markers; the replay checks markers-then-file; your own audit should fetch both after any change that touches either. A disagreement that persists is itself diagnostic: it usually means two teams (or two plugins) own the two routes and neither owns the surface. Assign the surface one owner, the way the feed needs one owner, and the routes stay in step.

The well-known directory as your agent front door

Step back and the pattern across this guide series comes into focus: /robots.txt states who may read; /llms.txt maps what matters; /.well-known/acp.json declares checkout capabilities; /.well-known/webmcp.json declares tool capabilities; /sitemap.xml enumerates the pages. Five small files, all public, all cheap, together forming the machine-facing front door of the store. Human visitors never see them. Agents judge the store by them before they judge it by anything else.

That is a manageable surface for a store to own deliberately. Each file has a readiness check or replay step watching it; each failure mode is mundane (absence, redirect traps, staleness, blocks) and fixable without a redesign. The stores that struggle with agent readiness rarely struggle with anything exotic — they struggle with these five files being nobody's job. The fix is organisational before it is technical: name an owner, verify from outside, regenerate on change.

If you can only publish one route today

Choose by what your stack makes durable. If your pages are stable and your file-serving is constrained by a hosted platform, inline markers may be the achievable route — the scan will pass you on them directly. If your theme changes often but you control the domain's static layer, the manifest file is the hardier choice, and the replay will find it even when a redesign strips the markers. Either route passes; neither route is a compromise that costs points.

Then record the other route as a roadmap item rather than a guilt item, and schedule its addition with the next relevant change — the manifest when you next regenerate from your forms, the markers when the registration ships with your next theme release. Readiness built in honest increments, each verified from outside, compounds. The score's design — five points here, evidence quoted, replays watching — is built to reward exactly that kind of steady, verifiable progress.

Manifest fallback check: five things to verify

Fetch the file the way the replay's fallback does — plainly, from outside, expecting JSON:

  1. Fetch /.well-known/webmcp.json logged out: it must return valid JSON with a success status — not a 404, 403, or your homepage in disguise.
  2. Validate the JSON parses; a malformed manifest is an absent manifest to every agent parser.
  3. Compare the manifest's tools against your live forms and your inline registrations — all three must describe the same surface.
  4. Regenerate the manifest from current forms after any forms change instead of editing it by hand.
  5. Re-run the scan and confirm the replay's webmcp_surface step passes — by markers, by file, or by both.

Worked example: the redesign that stripped the markers

A fictional homeware store in Belize, Casa Verde Living, launches its WebMCP surface with inline markers registered by its theme — the scan passes the WebMCP check. A seasonal redesign ships six weeks later; the new theme omits the registration script, and the markers vanish. Nobody notices, because nothing human-facing changed. But the store also serves a generated manifest at /.well-known/webmcp.json, so the daily replay's webmcp_surface step keeps passing — via the fallback, with the evidence quietly showing the file's status where the homepage status used to be.

The step never failed, so no alert fired — but the store's developer, reading the replay detail during a routine review, notices the evidence changed source and restores the registration in the theme. The fallback did its real job: not masking the loss, but bridging it — keeping the store discoverable while giving the team a visible thread to pull. Redundancy that reports itself is resilience; redundancy that hides decay would be debt.

Frequently asked questions

When does the replay fetch webmcp.json instead of reading the homepage?

Only as a fallback: the webmcp_surface step first searches the homepage for modelContext markers. If none are found, it fetches /.well-known/webmcp.json and treats a successful manifest as the surface. The step's evidence records the file's HTTP status when the fallback runs.

Does the scan's WebMCP check also accept the file?

The scan's check reads the homepage for navigator.modelContext / ModelContext markers. The replay accepts either route. Serving both therefore satisfies both verifications — and two different populations of agents, page-first readers and domain-first readers.

What should webmcp.json contain?

A valid JSON description of your tool surface — in AgentReady's generated format, webmcp_version 0.1 with a tools list: each tool's name, kind, description, endpoint, method and input schema, projected from your real forms. The graded fact is a truthful, parseable manifest at the exact path.

My manifest returns my homepage with a 200. Is that a pass?

No — that is a redirect trap: a routing rule swallowed the .well-known path and served the homepage. An agent fetching the manifest receives HTML it cannot use as a tool description. Exempt the /.well-known/ prefix from catch-all redirect rules and verify with a plain outside fetch.

If I already have inline markers, is the file redundant?

Usefully so. Markers die with theme changes; the file survives them, and it serves domain-first agents a cheap orientation fetch. The discipline is agreement: generate the file from the same real forms the markers project, and regenerate on change, so the redundancy bridges failures instead of masking drift.

AgentReady is built by Ingenious AI. Every verdict in an AgentReady scan traces to values actually fetched from the store — no live AI-agent queries are run or claimed.