# PoloPan — Complete Technical, Product & B2A MCP Reference (`llms-full.txt`) > PoloPan (legal entity: Rofoso Consumer Private Limited) builds the discovery and intelligence layer for global fashion commerce. Rather than treating clothing as isolated SKUs in a keyword database, PoloPan's neurosymbolic vision and ranking models understand how garments work together as complete, wearable outfits. - **Website**: https://polopan.com - **Interactive Outfit Feed**: https://polopan.com/looks - **Developer & MCP Docs**: https://polopan.com/developers - **MCP Streamable HTTP Server**: https://mcp-server.polopan.com/mcp - **MCP npm Package**: `polopan-products-mcp` (`npx -y polopan-products-mcp`) - **MCP Official Registry**: https://registry.modelcontextprotocol.io/v0/servers/io.github.rofoso-com%2Fmcp - **GitHub Repository**: https://github.com/rofoso-com/mcp - **Contact**: hey@polopan.com | +91 8105590717 - **Founders**: Shekhar Chatterjee, Vedansh Priyadarshi --- ## 1. System Architecture & Operational Guarantees PoloPan operates a 6-layer fashion intelligence stack: 1. **Catalogue Ingestion & Normalization**: Connects to Shopify, Google Merchant feeds, or custom XML/CSV/JSON exports via read-only permissions. 2. **Computer Vision Garment Reading**: Proprietary in-house vision models extract 40+ visual attributes directly from product photography—including cut, silhouette, drape, fabric weight, weave, wash, collar/neckline, sleeve length, colour harmony, and formality—eliminating reliance on sparse or inconsistent vendor text tags. 3. **Cross-Category Compatibility (The Taste Graph)**: Evaluates how tops, bottoms, outerwear, footwear, and accessories pair together across proportion, colour temperature, texture contrast, season, and occasion. 4. **Merchant Rule Engine**: Enforces deterministic brand and marketplace merchandising rules (e.g., keep mainline and archive separate, require >= 3 core sizes in stock, cap add-on price relative to anchor item, lock stylist-pinned items first). 5. **Real-Time Inventory Guardrails**: Processes HMAC-verified stock webhooks so sold-out sizes or discontinued items are immediately swapped for the next best in-stock alternative. 6. **Sub-35ms Edge Serving (REST & MCP)**: - **P50 / P99 Latency**: 25ms / 35ms server execution - **Tenant Isolation**: Strict single-tenant catalogue & rule isolation; merchant data never trains shared generative models - **Privacy**: Zero shopper PII or tracking cookies required for storefront outfit assembly - **Encryption**: TLS 1.3 in transit, AES-256 at rest, HMAC-SHA256 webhook verification --- ## 2. Business-to-Agent (B2A) & Model Context Protocol (MCP) Server AI agents (Claude, ChatGPT, Perplexity, Cursor, custom shopping assistants) can query live fashion inventory, assemble complete outfits, verify garment measurements against size charts, and generate 1-click checkout links using the **PoloPan MCP Server**. ### 2.1 Connecting to the MCP Server **Option A — Streamable HTTP (Recommended for remote agents & Claude/Cursor):** ```json { "mcpServers": { "polopan-products": { "type": "http", "url": "https://mcp-server.polopan.com/mcp" } } } ``` **Option B — Local stdio via NPX:** ```json { "mcpServers": { "polopan-products": { "command": "npx", "args": ["-y", "polopan-products-mcp"] } } } ``` ### 2.2 Complete MCP Tool Reference (19 Tools) #### Region & Currency Management - `region.get_current`: Get the active shipping country code (ISO 3166-1 alpha-2, e.g., `IN`, `US`, `GB`, `AE`) and currency. - `region.set_current`: Set the shopper's shipping country (`country_code`) and catalog scope (`local` or `global`) to ensure all prices and deliverability checks match their destination across 240+ countries. - `region.list_supported`: List all supported shipping countries, currencies, and regional delivery modes. #### Shipping Address Management (for 1-Click Checkout Prefill) - `address.get_current`: Retrieve the active default shipping address for the current session. - `address.save`: Save or validate a shipping address (name, phone, street, city, state, postal code, country). - `address.list_saved`: List saved shipping addresses for the user. - `address.set_default`: Set a saved address as the default shipping destination. - `address.delete`: Remove a saved shipping address. #### Outfit Assembly & Curation - `looks.curation.by_occasion`: Fetch complete, multi-garment outfits filtered by occasion (e.g., `Casual Outing`, `Corporate Office`, `Startup Office`, `Date Night`, `Night Out`, `Resort & Vacation`, `Wedding & Reception`, `Small Function`, `Festivals`, `Formal Dinner`), gender (`men` or `women`), category, and price range. - `looks.curation.recommend`: Build complete outfits anchored around a specific product `handle` / `external_product_id` or free-text style prompt. - `vision.outfit.detect_pieces`: Detect every distinct garment in an outfit photo (URL or upload) and match each detected piece to in-stock catalogue items. #### Product Search & Alternatives - `products.search.text`: Semantic and attribute-aware product search by natural-language query, category, gender, color, brand, and price range. - `products.search.image_url`: Visual similarity search using an external image URL. - `products.search.image_upload`: Visual similarity search using a base64-encoded image upload. - `products.search.alternatives`: Find visually compatible substitute garments in stock within a target price bracket. #### Product Inspection, Sizing & Direct Checkout - `products.items.get_by_handle`: Retrieve full product metadata, high-resolution images, fabric/care specifications, brand info, and variant breakdown by `handle`. - `products.items.check_stock`: Check real-time variant inventory quantities, available sizes, price, and shipping eligibility. - `products.items.get_size_guide`: Fetch structured garment measurements (chest, waist, hip, shoulder, length, inseam in inches and cm) to match a shopper's body dimensions to the exact brand size. - `checkout.links.get_direct_url`: Generate a 1-click direct checkout URL (`https://s.polopan.com/p/{handle}`) for the selected variant/size and quantity. --- ## 3. Enterprise REST API Primitives Base Production Endpoint: `https://apiv2.polopan.com` ### 3.1 `POST /looks` — Outfit Assembly & Cart Completion Returns complete, multi-slot outfits (`top_wear`, `bottom_wear`, `outerwear`, `footwear`, `accessories`) built around an anchor product handle, cart SKU list, occasion, or natural-language query. - **Key Parameters**: - `handle` or `product_id`: Anchor product identifier for PDP "Complete the Look" - `query`: Natural-language occasion or style query (e.g., `"linen summer wedding outfit"`) - `occasion` / `occasions`: Target occasion filter - `categories`: Target garment category filter - `gender`: `"men"` or `"women"` - `country`: ISO country code (e.g., `"IN"`, `"US"`, `"GB"`) - `mode`: `"local"` or `"global"` - `min_price`, `max_price`: Outfit total price bounds in local currency - `page`, `page_size`: Pagination controls ### 3.2 `POST /curations/for-you` — Automated Aesthetic & Occasion Collections Returns dynamically grouped, inventory-verified collection boards with titles, subtitles, vibe tags, and in-stock product grids. ### 3.3 `POST /looks/replace-products` — Real-Time Slot Replacement & Remix Given an existing outfit and a target slot (`component_name`), returns visually compatible replacement products currently in stock that preserve the outfit's aesthetic and occasion harmony. ### 3.4 `POST /looks/share` & `GET /looks/share/{share_id}` — Shareable Outfit Links & Collage Cards - `POST /looks/share`: Creates a deterministic 10-character `share_id` (`https://polopan.com/looks/{share_id}`) for an outfit combination and stores/renders the full multi-item outfit collage image. - `GET /looks/share/{share_id}`: Resolves the shared outfit's full `outfit_components`, `handles`, and `occasion`. - `GET /looks/share/{share_id}/image.jpg` (proxied on web at `https://polopan.com/looks/share/{share_id}/image.jpg`): Returns the `800×1000` visual collage card showing all garments in the outfit. --- ## 4. Enterprise Product Modules (`https://polopan.com/products/*`) 1. **Complete the Look (`/products/complete-the-look`)**: - Placements: Below-the-fold outfit rail, compact Buy-Box pairing strip with multi-item size selector drawer, and final slide in product photo galleries. - Guardrails: Enforces Top + Bottom + Shoe + Accessory slot rules, excludes final-sale items when configured, matches season, and respects stylist-pinned looks. 2. **Automated Collections (`/products/automated-collections`)**: - Placements: Server-rendered organic SEO landing pages, paid social campaign landing pages launched in minutes, and self-stocking site navigation shops (Vacation Shop, Office Wardrobe, Weekend Casual, Eveningwear). - Guardrails: Auto-pauses collections if active stock drops below threshold (e.g. < 24 items), sorts by new arrivals + margin. 3. **Cart & Post-Purchase Completion (`/products/post-purchase`)**: - Placements: Slide-out cart drawer add-ons, order confirmation thank-you page additions before warehouse packing, and day-7 / day-14 Klaviyo or Braze outfit emails. - Guardrails: Skips garment categories already in the cart or bought in the past 90 days; caps add-on price (e.g. <= 60% of cart total). 4. **Agentic Search & B2A (`/products/agentic-search`)**: - Placements: Storefront search bar routing (3+ word or occasion queries routed to PoloPan alongside keyword search), zero-results fallback recovery, and B2A MCP server exposure for AI agents. --- ## 5. Consumer Discovery App (`newapp` / `https://polopan.com/discover`) - **Platforms**: - Android (Google Play): `https://play.google.com/store/apps/details?id=com.polopan.customer` - iOS (Apple App Store): `https://apps.apple.com/in/app/polopan/id6746693954` - **Core Capabilities**: - Swipe-based personalized outfit feed powered by the Taste Graph - One-tap slot remixing (swap any top, bottom, shoe, or accessory in an outfit) - Virtual Try-On & Wardrobe Calendar planning - Visual search from camera, gallery, or shared screenshots from Instagram/Pinterest - Full-collage outfit sharing (`https://polopan.com/looks/{share_id}`) with Universal Links / App Links handoff --- ## 6. Research Essays (`https://polopan.com/stories`) - [What Shaped PoloPan](https://polopan.com/stories/what-shaped-polopan): From Vadodara and Muzaffarpur to building the global discovery and intelligence layer for fashion commerce. - [Decision Fatigue: Why You Have "Nothing to Wear"](https://polopan.com/stories/decision-fatigue-why-you-have-nothing-to-wear): Why isolated garments create cognitive overload and how outfit-level thinking restores clarity. - [The Chaos of Cost vs. The Clarity of Style](https://polopan.com/stories/the-chaos-of-cost-vs-the-clarity-of-style): Why price tags alone distort wardrobe decisions and how cost-per-wear and versatility change how we shop. - [The Psychology of Dressing Well](https://polopan.com/stories/the-psychology-of-dressing-well-how-your-outfit-affects-your-career-and-confidence): Enclothed cognition and how cohesive outfits shape confidence and presence. - [The 75% Problem: Why You Keep Abandoning Your Shopping Cart](https://polopan.com/stories/the-75-problem-why-you-keep-abandoning-your-shopping-cart): Shoppers don't abandon carts because they dislike the item—they abandon because they can't picture what to wear it with. - [Style Intelligence for All: Why We Built PoloPan](https://polopan.com/stories/style-intelligence-for-all-why-we-built-polopan): Democratizing personal styling from an elite service into universal software infrastructure. - [The Choice Paralysis Epidemic](https://polopan.com/stories/the-choice-paralysis-epidemic-why-more-clothes-make-us-more-confused): Why 500,000-SKU catalogues hurt conversion without an outfit curation layer.