# folio.shop

> Folio's shared catalog for shopping agents. Search the priced products of every Folio store at once, then continue on the seller's own shop for product details, questions and checkout. No payment happens over these endpoints: the buyer pays on the store's own page.

Folio (https://folioai.com) is where the sellers build their stores. Every store has its own host (`{store}.folio.shop` or the seller's own domain) and speaks the Universal Commerce Protocol, UCP 2026-08-25 (https://ucp.dev/2026-08-25/specification/overview/).

## Addresses

- `GET https://folio.shop/search?q={query}`: search every store at once. `q` needs a word of at least 3 letters; shorter words are not searched. Optional parameters: `limit` (at most 10), `cursor` (the previous answer's `pagination.cursor`), `language` (a BCP 47 tag). The answer is a UCP catalog search answer: `products`, most relevant first, from many sellers, and `pagination`. A product a seller sells in several of its stores is returned once per store, each with that store's `id`, `url` and price, and its name when it has one (`metadata.store_name`): pick the store that fits the buyer.
- `POST https://folio.shop/mcp`: the same catalog as MCP tools (JSON-RPC 2.0 over streamable HTTP, one JSON answer per request, no session).
- `GET https://folio.shop/.well-known/ucp`: this catalog's UCP profile.

## Tools at https://folio.shop/mcp

- `search_catalog`: `catalog.query` (required, a word of at least 3 letters), `catalog.pagination.limit`, `catalog.pagination.cursor`, `catalog.context.language`. Filters are not supported and are ignored.
- `lookup_catalog`: `catalog.ids` (required), up to 20 product or variant ids.
- `get_product`: `catalog.id` (required), a product or variant id.

Each tool call may carry `meta["ucp-agent"].profile`, the https URL of your UCP agent profile; it raises your limit.

## The flow

1. Search here.
2. Each product's ids and `url` belong to its seller. Take the seller's host from the product's or a variant's `url` and read `https://{host}/.well-known/ucp` for its endpoint and capabilities.
3. Continue on the seller's endpoint (`https://{host}/api/ucp/mcp`): `get_product` for the product, `ask_business` for a question when its profile lists Ask, and `create_checkout` for a checkout session. On a seller's endpoint every call carries `meta["ucp-agent"].profile`.
4. Give the buyer the checkout's `continue_url`. The buyer enters their details and pays on the store's page.

## Example calls

Search:

```
curl -sS "https://folio.shop/search?q=oak+side+table"
```

Read a product on its seller's endpoint (the id comes from the search answer):

```
curl -sS https://{store}.folio.shop/api/ucp/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_product","arguments":{"meta":{"ucp-agent":{"profile":"https://your-agent.example/.well-known/ucp"}},"catalog":{"id":"{product id}"}}}}'
```

Hand off: a checkout session for one variant (the id comes from the product's `variants`); its answer carries `continue_url`:

```
curl -sS https://{store}.folio.shop/api/ucp/mcp \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_checkout","arguments":{"meta":{"ucp-agent":{"profile":"https://your-agent.example/.well-known/ucp"}},"checkout":{"line_items":[{"item":{"id":"{variant id}"},"quantity":1}]}}}}'
```

## Limits

Search and the tools at https://folio.shop share one budget per address: 60 calls a minute without an agent profile, 300 a minute for tool calls that carry one (`GET /search` counts as a call without one). A refused call answers 429 with `Retry-After`. One query reaches at most 50 results (a product in two stores counts twice), most relevant first; for others, narrow the query. A seller's endpoint has its own limits.

## Rules

- Use search. Do not crawl every store or export the catalog in bulk.
- Quote prices as listed: `amount` is in the currency's minor units, at the price the store shows its buyers.
- Ask before you pay: checkout returns a link, and the buyer confirms the payment on the store's page.
- Say who you are: send your UCP agent profile with every call.
