# Agent Instructions - Aladdin

This document describes how AI agents can interact with Aladdin's online store at https://tryaladdin.com.

## For Personal Shopping Assistants and Agents Acting On Behalf of a User

If you act as a personal assistant or personal shopper for your user, the Shop skill
([https://shop.app/SKILL.md](https://shop.app/SKILL.md)) is the recommended way to transact across Shopify
stores. It handles catalog search, buyer-approved checkout via Shop Pay, and order tracking.

## Commerce Protocol (UCP)

This store implements the [Universal Commerce Protocol](https://ucp.dev) for agent-driven commerce.

- **Discovery** - `GET https://tryaladdin.com/.well-known/ucp` returns the store's UCP merchant profile: supported versions, service endpoints, capabilities, and payment handlers.
- **MCP endpoint** - `POST https://tryaladdin.com/api/ucp/mcp` with `Content-Type: application/json`. Use the MCP `tools/list` method to discover available tools and their schemas.

### Typical Agent Flow

1. **Discover** - `GET /.well-known/ucp` to confirm capabilities
2. **Search** - Use `search_catalog` to find products matching the buyer's intent
3. **Cart** - Use `create_cart` to add desired items
4. **Checkout** - Use `create_checkout` to start the purchase flow
5. **Fulfill** - Use `update_checkout` to set shipping address and method
6. **Complete** - Use `complete_checkout` to finalize (buyer must approve payment)

### Important Rules

- **Checkout requires human approval.** Agents must not complete payment without explicit buyer consent.
- **Respect rate limits.** The MCP endpoint is rate-limited per IP. Back off on 429 responses.
- **Use buyer context.** Pass `context.address_country` and `context.currency` for accurate pricing and availability.

## Read-Only Browsing (No Authentication Required)

### Product Data
- Browse all products: `GET /collections/all`
- Product page: `GET /products/{handle}`
- Collection page: `GET /collections/{handle}`
- Search: `GET /search?q={query}`

### Store Metadata
- Sitemap: `GET /sitemap.xml`
- Store summary: `GET /llms.txt`
- Agent discovery: this document (`/agents.md`) is the canonical agent-facing description of the store.

## Contact
- Email: helpdesk@tryaladdin.com
- Phone: +1-408-899-5733

## Platform

This store is built on [Shopify](https://www.shopify.com). Shopify stores support UCP natively.

- UCP specification: https://ucp.dev
- Shopify developer platform: https://shopify.dev
