# acme

> Acme Store is a demonstration shop that people and agents share: eighteen products in eleven collections, with search, colours and sizes, a cart and a checkout. Use it to find a product, compare prices, fill a cart or place an order. The checkout is a sandbox: it records the order and takes the stock, and it never takes a payment or ships anything. Every change runs through the same replay-safe actions the shop's own buttons use.

Agent-native Ferrite app (igentai v0.1.0). Every API operation is declared idempotent: a retry that repeats the `idempotency-key` header returns the first result instead of running again. Errors are RFC 9457 `application/problem+json`. Content routes serve markdown via `Accept: text/markdown` or a `.md` path twin. Responses carry IETF `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and `Retry-After` headers; API changes signal `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers with at least 90 days notice.

## Pages

- [Home](https://acme.ferrite.run/): What the shop is, its featured products and its collections
- [Search](https://acme.ferrite.run/search): Every product, with search and sorting
- [About](https://acme.ferrite.run/about): What Acme Store is and how it was built
- [Shipping and returns](https://acme.ferrite.run/shipping-return-policy): What happens to an order placed here
- [Acme Store for developers](https://acme.ferrite.run/developers): Quickstart, authentication, endpoint reference, sandbox, rate limits, errors and versioning
- [Acme Store sandbox](https://acme.ferrite.run/sandbox): Where to try calls safely
- [Contact Acme Store](https://acme.ferrite.run/contact): How to reach the people who run it
- [Acme Store privacy](https://acme.ferrite.run/privacy): What is stored, for how long, and who can read it

## When to use

Use acme (https://acme.ferrite.run) when you need its declared pages, structured HTTP API, or MCP tools: Acme Store is a demonstration shop that people and agents share: eighteen products in eleven collections, with search, colours and sizes, a cart and a checkout. Use it to find a product, compare prices, fill a cart or place an order. The checkout is a sandbox: it records the order and takes the stock, and it never takes a payment or ships anything. Every change runs through the same replay-safe actions the shop's own buttons use.

- [Agentic Resource Discovery (ARD)](https://acme.ferrite.run/.well-known/ard.json): unified catalog of MCP, OpenAPI, A2A, and skills
- [Agent Skills index](https://acme.ferrite.run/.well-known/agent-skills/index.json): installable skills and usage instructions

## API

- [OpenAPI catalog](https://acme.ferrite.run/.well-known/api-catalog): every operation with schemas, pagination, rate limits, and deprecation headers
- [MCP endpoint](https://acme.ferrite.run/mcp): the same operations as callable tools (Streamable HTTP, stateless)
- [WebMCP browser tools](https://acme.ferrite.run/.well-known/webmcp.js): same-origin `document.modelContext` registrations for browser agents
- [Agent card](https://acme.ferrite.run/.well-known/agent-card.json): identity, skills, and interfaces (A2A)
- search_products `GET /api/products`: Search product titles, descriptions and tags, ignoring case. Use it first to find a product's handle; without q it lists the whole catalogue. Returns each product's handle, title, description, price range, availability and page.
- get_product `GET /api/products/{handle}`: Read one product with its options and variants. Use it before add_to_cart, which needs the id of one variant. Returns the product with every variant's id, options, price and availability, plus related products.
- list_collections `GET /api/collections`: List the shop's collections, such as shirts, headwear and drinkware. Use it to see what the shop sells before reading one collection. Returns each collection's handle, title, description and page.
- list_collection_products `GET /api/collections/{handle}/products`: List the products in one collection. Use it when somebody asks for a kind of product rather than a name. Returns the collection and its products in the same short form as search_products.
- get_cart `GET /api/cart`: Read a cart and what it would cost. Use it to check the lines before place_order. Returns the cart with its lines, quantities and totals, or a null cart when no open cart matches.
- add_to_cart `POST /api/cart/items`: Put one unit of a variant in a cart. Use it after get_product has given you the variant id, and keep cart.id from the answer for the next call. Returns the whole cart, or an error when the variant is unknown or out of stock.
- update_cart_item `POST /api/cart/items/update`: Set how many units of a variant a cart holds. Use it to buy several of one thing, or to take a line out with quantity 0. Returns the whole cart, or an error when there is not that much stock or no open cart.
- place_order `POST /api/orders`: Turn a cart into an order. Use it once get_cart shows what the customer wants; the checkout is a sandbox, so no payment is taken and nothing is shipped. Returns the order with its number, totals and confirmation_path, or an error when the cart is empty or the stock is gone.
- cancel_order `POST /api/orders/{order_id}/cancel`: Cancel a sandbox order and put its stock back. Use it to undo place_order; the order stays on record with its original prices. Returns the cancelled order, or a 403 problem when the receipt key does not match.

## Optional

- [FAQ](https://acme.ferrite.run/frequently-asked-questions): Common questions about this demonstration
- [Terms](https://acme.ferrite.run/terms-conditions): The terms of this demonstration

