UCP Store Tester
Check a store the way a shopping agent meets it: fetch its Universal Commerce Protocol profile, then search its catalogue and build a cart — with every request and response on screen.
Enter a store's address and press Test store.
How it connects. A live test sends each request from CodeLint's server, because that is the only way to see what a server-side agent sees: whether the
profile redirects, and the headers it is served with. The store address, the search term and the agent profile URL pass through the
relay, in memory, and are not stored or logged. The relay only reaches public HTTPS hostnames, never follows a redirect, and will only
fetch a profile from /.well-known/ucp. The tester calls a store anonymously and stops before checkout: it
cannot place an order, and it sends no payment or buyer details.
What an agent does on first contact with a store
- 1 Discovery —The agent fetches
/.well-known/ucpfrom the store's host. The profile names the UCP release, the services the store offers, where each can be called, and which capabilities are supported. - 2 Advertising itself —Every request the agent sends names its own profile URL — in the
UCP-Agentheader over REST, or inmeta["ucp-agent"].profileover MCP. The store fetches that profile. - 3 Negotiation —The store intersects the two profiles: a capability is active when both sides declare it at the same version. Extensions whose parent capability dropped out are pruned. The store reports the active set in the
ucpobject of every response. - 4 Shopping —The agent searches the catalogue, takes a variant
idfrom the results, and puts it in a cart or a checkout asline_items[].item.id. - 5 Checkout —To finish, the agent needs a payment credential from one of the store's payment handlers and, on most stores, a signed or authenticated identity. Where it cannot finish, the response carries a
continue_urlthat hands the buyer to the store.
How a profile must be served
These rules are about the HTTP response, not the JSON. A profile that breaks one can be perfectly valid and still unusable.
| Rule | Level | Why it matters |
|---|---|---|
| Served over HTTPS | Must | Agents reject any profile URL that is not HTTPS. |
| No redirect (3xx) | Must | Agents must not follow redirects when fetching a profile, so a redirecting endpoint is the same as no profile. |
Cache-Control with public and max-age of at least 60 | Must | Profiles are cached by every party that fetches them. private, no-store and no-cache are forbidden. |
An ETag or Last-Modified header | Should | Lets an agent revalidate a cached copy without downloading it again. |
| No login or bot challenge in front of it | Must | The profile is a public document. A firewall rule that blocks unfamiliar clients blocks agents too. |
| Small | Guidance | Documented profiles are under 5 KiB. Verifiers may cap the size they will read, at no less than 128 KiB. |
Source: the "Profile Requirements" section of the UCP 2026-08-25 specification, read on 22 November 2026.
What a business profile contains
| Field | Required | Notes |
|---|---|---|
ucp.version | Yes | A dated release, YYYY-MM-DD. A pre-release name such as draft must not be published. |
ucp.services | Yes, even if empty | Keyed by reverse-domain name, e.g. dev.ucp.shopping. Each entry is one transport binding. |
| Service entry | version, spec and transport (rest, mcp, a2a or embedded). schema for rest, mcp and embedded. A business must give an endpoint for rest, mcp and a2a: an https URL, with no trailing slash. | |
ucp.capabilities | No | Keyed by name, e.g. dev.ucp.shopping.checkout. Each entry needs version and schema; an extension adds extends with its parent or parents. |
ucp.payment_handlers | Yes, even if empty | Keyed by name. Each entry needs an id and a version, and versions independently of the profile. |
ucp.supported_versions | No | Maps each older release to the URL of a complete profile for that release. |
keys | No | At the top level, beside ucp: a JWK Set of public signing keys. Each needs kid and kty. Private key members must never appear. |
Every dev.ucp.* service, capability and extension must carry the same version as ucp.version; an agent rejects an entry that does not. Names from other namespaces version on their own.
Problems the tester finds, and how to fix them
/.well-known/ucp answers with a redirect
Cause: The host redirects to www, to a bare domain, or to the commerce platform's domain before serving the profile.
Fix: Serve the profile itself, with a 200, from each host agents will be given. Exclude the path from any blanket redirect rule.
Cache-Control is missing, private or no-store
Cause: The profile is served by an application route with default no-cache headers, or sits behind a CDN rule that marks dynamic responses private.
Fix: Send Cache-Control: public, max-age=60 or longer. A longer max-age is fine if you can wait that long for a change to reach agents.
A capability fails namespace authority binding
Cause: Its schema URL is on a host that does not match its name — typically a schema copied to your own CDN, or a capability named under a domain you do not own.
Fix: Point dev.ucp.* schemas at ucp.dev. For your own capabilities, name them under a domain you control and serve the schema from that domain.
A dev.ucp entry has a different version from ucp.version
Cause: The profile was moved to a new release but some entries were left on the old one, or the reverse.
Fix: Give every dev.ucp.* entry the profile's version. To support an older release as well, publish a separate profile for it and list it under supported_versions.
An extension is declared without its parent
Cause: For example fulfilment or discount is listed, but the checkout or cart capability it extends is not.
Fix: Declare the parent capability, or remove the extension. An orphaned extension is pruned and never becomes active.
The store returns 403 or 429 to the tester
Cause: A firewall or bot-protection rule is blocking a client it does not recognise, or an anonymous rate limit was hit.
Fix: Allow agent traffic to the profile and the UCP endpoint. Do not allow-list on the User-Agent or UCP-Agent header alone, and do not hard-code a UCP version date into firewall rules.
A response has no structuredContent, or no ucp object
Cause: The MCP server returns the payload only as text, or omits the protocol envelope.
Fix: Return the UCP payload in structuredContent (a text copy in content[] is optional but recommended) and include ucp with the version used and the active capabilities in every response.
Prices are decimals or strings
Cause: Amounts were sent in major units (25.00) rather than minor units.
Fix: Send integers in the currency's minor units with an ISO 4217 code: {"amount": 2500, "currency": "USD"} is $25.00.
The same exchange by hand
What the tester sends. Replace the host with a store's, and the endpoint with the one its profile declares.
curl -si https://shop.example.com/.well-known/ucpcurl -s https://shop.example.com/api/ucp/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -s https://shop.example.com/api/ucp/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_catalog","arguments":{
"meta":{"ucp-agent":{"profile":"https://codelint.dev/.well-known/ucp-agent.json"}},
"catalog":{"query":"rain jacket","context":{"address_country":"US"},"pagination":{"limit":3}}}}}'curl -s https://shop.example.com/api/ucp/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"create_cart","arguments":{
"meta":{"ucp-agent":{"profile":"https://codelint.dev/.well-known/ucp-agent.json"}},
"cart":{"line_items":[{"item":{"id":"VARIANT_ID"},"quantity":1}]}}}}'UCP capabilities and their MCP tools
A store that declares a capability and offers MCP is expected to expose these tools. Each takes a meta object naming the agent profile.
| Capability | Tools | Tested here |
|---|---|---|
dev.ucp.shopping.catalog.search | search_catalog | Yes |
dev.ucp.shopping.catalog.lookup | lookup_catalog, get_product | Listed only |
dev.ucp.shopping.cart | create_cart, get_cart, update_cart, cancel_cart | Create and cancel |
dev.ucp.shopping.checkout | create_checkout, get_checkout, update_checkout, complete_checkout, cancel_checkout | No |
dev.ucp.shopping.order | get_order | No |
Source: the UCP 2026-08-25 MCP service description.
About
The UCP Store Tester does what a shopping agent does on first contact with a store that speaks the Universal Commerce Protocol (UCP). It fetches the store's business profile from /.well-known/ucp, checks how that file is served — no redirect, a public cache header, a validator — and checks what it declares: the protocol version, the services and their endpoints, the capabilities and the extensions that depend on them, the payment handlers, and any signing keys. If the store offers an MCP endpoint, the tester then calls it the way an anonymous agent would: it lists the tools, searches the catalogue, and builds a cart, checking each reply against the specification and showing which capabilities the store negotiated. Every request and response is on screen. It stops before checkout: it cannot place an order and sends no payment or buyer details. Live tests are sent from CodeLint's server, because hosting problems such as a redirect are only visible from outside a browser.
How to use
- 1 The page opens on a sample report for a made-up store, so you can see a complete test first. Nothing is contacted until you enter a store.
- 2 Enter a store's address — the host is enough — and press "Test store". Many stores hosted on Shopify publish one.
- 3 Read "How the profile is served" for hosting problems and "Profile checks" for problems in the profile itself. Errors are rules the specification says must be met; warnings are rules it says should be.
- 4 If the store has an MCP endpoint, search its catalogue with a term a shopper would use. The checks under the results cover the response shape and the capabilities the store negotiated.
- 5 Press "Add to a cart" on a variant to create a cart, then "Cancel this cart" when you are done. Open any row under "What was sent and received" for the exact exchange, or copy the request as curl.
- 6 To see what a store negotiates with your own agent, open "Options" and put your agent's profile URL in place of the tester's.
- What is a UCP profile, and where does a store publish it?
- It is a JSON file that tells shopping agents what a store supports: which UCP release, which services and endpoints, which capabilities such as catalogue search, cart and checkout, and which payment handlers. A store publishes it at /.well-known/ucp on its own host — with no file extension. An agent fetches it before it calls anything else.
- Does the tester buy anything or store a cart on my shop?
- It never buys anything: it has no checkout step and sends no payment or buyer details. "Add to a cart" does create a real, anonymous cart on the store, the same as an agent would, and "Cancel this cart" removes it. If you leave it, it expires on the store's own schedule.
- Why is my profile reported as redirecting when it opens fine in a browser?
- A browser follows redirects silently; an agent must not. UCP says a profile endpoint must not use a redirect and that agents must not follow one. The common cause is a redirect between the bare domain and www, or from the storefront domain to a platform domain. Test the host the redirect points to, and serve the profile directly from every host you expect agents to use.
- What is namespace authority binding?
- Every capability, service and payment handler has a reverse-domain name, and its schema URL must be served from the domain that name is under: dev.ucp.shopping.checkout from ucp.dev, com.example.loyalty from example.com. It stops anyone publishing a capability under a name they do not control. An agent must reject an entry that fails the check, so a schema hosted on a CDN domain that does not match silently disables the capability.
- The store returned profile_unreachable or profile_malformed. What does that mean?
- Those errors are about the caller's profile, not the store's. Every UCP request names an agent profile URL, and the store fetches it to negotiate. profile_unreachable means the store could not fetch it; profile_malformed means it fetched something that is not a valid profile; version_unsupported means the store does not support the release the profile declares. If you put your own profile URL under "Options", check that it is public, served over HTTPS with no redirect, and valid.
- Why does the store negotiate fewer capabilities than its profile lists?
- The active set is the intersection of the store's profile and the caller's. A capability is active only if both declare it at the same version, and an extension is dropped if none of the capabilities it extends made it through. The tester's own profile declares catalogue search, catalogue lookup and cart only, so checkout, orders and their extensions are negotiated away on purpose.
- Can it test REST or A2A stores, or signed requests?
- It checks the profile of any store, whatever transports it offers, but it makes calls over MCP only and always anonymously. It does not sign requests, so it cannot reach tools a store reserves for signed or authenticated agents, and it does not test checkout, orders or webhooks. To check a signature by hand, use the HTTP message signature debugger.
Also callable by your AI agent
This tool is available over the free CodeLint MCP server and REST API as ucp_profile_validate — no API key. Unlike this page, an API call is processed on our server.
curl -s https://codelint.dev/api/v1/tools/ucp_profile_validate \
-H 'content-type: application/json' \
-d '{"profile":"{\"ucp\":{\"version\":\"2026-08-25\",\"services\":{\"dev.ucp.shopping\":[{\"version\":\"2026-08-25\",\"spec\":\"https://ucp.dev/2026-08-25/specification/overview/\",\"transport\":\"mcp\",\"endpoint\":\"https://shop.example.com/api/ucp/mcp\",\"schema\":\"https://ucp.dev/2026-08-25/services/shopping/mcp.openrpc.json\"}]},\"capabilities\":{\"dev.ucp.shopping.cart\":[{\"version\":\"2026-08-25\",\"spec\":\"https://ucp.dev/2026-08-25/specification/shopping/cart/\",\"schema\":\"https://ucp.dev/2026-08-25/schemas/shopping/cart.json\"}]},\"payment_handlers\":{}}}"}'More in AI Tools
See all ai tools.