PoloPan Fashion MCP Server
v1.8.0Fashion & apparel MCP: visual outfit search, stock verification, and 1-click checkout.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
region.get_current Get Current Shopping Region & Settings
Get the currently active shopping destination country, currency code, symbol, phone code, and catalog scope mode from persistent local configuration (~/.polopan/region.json).
region.set_current Set Current Shopping Region
Set the active shopping country/region using any natural country name, city (e.g. 'Dubai', 'London', 'California', 'Paris'), 2-letter ISO code ('US', 'GB', 'IN', 'AE', 'CA'), or currency ('USD', 'AED', 'GBP', 'EUR'). Saves to persistent local JSON (~/.polopan/region.json) so the user never needs to be asked again across turns and sessions.
| Parameter | Type | Description |
|---|---|---|
country * | string | Target country name, alias, city, currency, or ISO-2 code (e.g. 'United States', 'US', 'UK', 'London', 'Dubai', 'UAE', 'Canada', 'India', 'Germany', 'AED', 'EUR') |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic store only). Defaults to 'global'. |
region.list_supported List & Search Supported Countries
Search the 240+ supported destination countries with localized currency codes, symbols, flags, phone codes, and price groups from live platform settings.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max number of countries to return (default: 20) |
query | string | Optional search filter by country name, ISO code, currency, or phone dialing code (e.g. 'Emirates', 'dollar', 'CAD', 'Europe') |
search | string | Alias for query: search filter by country name, ISO code, or currency |
address.get_current Get Current Delivery Address for Region
Get the default delivery/shipping address saved for the currently active region from local configuration (~/.polopan/region.json). WHEN TO USE (CRITICAL ANTI-SHORTCIRCUIT RULE): - ALWAYS call this BEFORE generating 1-click checkout links to check if the user already has a saved delivery address for their destination country. - If 'has_address' is false, DO NOT emit a naked checkout link. Prompt the user naturally for their shipping address (First Name, Street Address, City, Postal Code, Phone & Email) and save it using 'address.save'. - If 'has_address' is true, inform the user you are prefil…
| Parameter | Type | Description |
|---|---|---|
country | string | Optional country code (e.g. 'US', 'AE', 'GB', 'IN') to inspect addresses for. Defaults to active region country. |
address.save Save or Update Delivery Address
Save a customer delivery shipping address mapped to the active region in ~/.polopan/region.json. Matches Flutter app (newapp) address schema: firstName, lastName, address1, address2, city, province, zip, country, phone, email, type.
| Parameter | Type | Description |
|---|---|---|
address1 * | string | Street address, house/flat/building name |
city * | string | City / Town |
firstName * | string | Recipient first name |
zip * | string | Postal code / Zip code / PIN code |
address2 | string | Apartment, suite, unit, landmark, or area |
country | string | Destination country code or natural name. Defaults to active region country. |
email | string | Customer delivery notification email address |
id | string | Optional existing address ID to update |
is_default | boolean | Set this address as default for the country (default true) |
lastName | string | Recipient last name |
phone | string | Recipient contact phone number with country dialing code |
province | string | State, Province, or Governorate |
storage_mode | string | Storage destination: 'local' (writes to ~/.polopan/region.json) or 'stateless' (returns for chat context without disk write). Defaults to 'stateless' in cloud-hosted environments. |
type | string | Address label/type: 'Home', 'Work', or 'Other' |
address.list_saved List Saved Delivery Addresses
List all saved customer delivery addresses stored in ~/.polopan/region.json, optionally filtered by country.
| Parameter | Type | Description |
|---|---|---|
country | string | Optional country filter (ISO-2 code or natural country name) |
address.set_default Set Default Delivery Address
Set an existing address as the default shipping address for its country in ~/.polopan/region.json.
| Parameter | Type | Description |
|---|---|---|
address_id * | string | ID of the saved address to set as default |
address.delete Delete Saved Delivery Address
Delete a saved delivery address by ID from ~/.polopan/region.json.
| Parameter | Type | Description |
|---|---|---|
address_id * | string | ID of the saved address to delete |
products.search.text Search Products By Text
Search PoloPan catalog products using a text keyword query with optional multi-attribute filters. Returns matching fashion items with available in-stock sizes, product specifications, shipping/return policies, discounted pricing, and verified purchase URLs (https://s.polopan.com/p/{handle}). Automatically localized to active country / 240+ destination regions. PURPOSE & DISAMBIGUATION: - Primary text-based catalog search tool for fashion discovery across apparel, footwear, and accessories. - Distinct from 'products.search.image_url' / 'products.search.image_upload': Use this tool for textual…
| Parameter | Type | Description |
|---|---|---|
query * | string | The search query or style keyword to find fashion items (e.g. 'black leather jacket', 'floral summer midi dress') |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
gender | string | Target gender filter: 'men', 'women', or 'unisex' |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region. |
page | integer | Pagination page number (1-indexed, starts at 1) |
page_size | integer | Number of items to return per page (1 to 100, default 20) |
price_max | number | Maximum price in local currency |
price_min | number | Minimum price in local currency |
size | array | Array of size labels to filter by (e.g. ['S', 'M', 'L', 'XL', '32']) |
sort_by | string | Sorting criteria for search results: 'relevance', 'price', or 'title' |
sort_order | string | Sort order: 'asc' for ascending, 'desc' for descending |
vendor | array | List of brand or vendor names to filter by (e.g. ['Zara', 'H&M', 'Tandul']) |
products.search.image_url Search Products By Image URL
Search PoloPan catalog products using visual image similarity from a publicly accessible image URL with optional multi-attribute filters. Returns visually similar products with available sizes, pricing, and verified purchase URLs (https://s.polopan.com/p/{handle}). Automatically localized to active country / 240+ destination regions. PURPOSE & DISAMBIGUATION: - Performs reverse visual search using computer-vision embeddings for a remote image URL. - Distinct from 'products.search.text': Use this tool when you have an image URL, NOT for textual keyword queries. - Distinct from 'products.search…
| Parameter | Type | Description |
|---|---|---|
image_url * | string | Publicly accessible HTTP(S) URL of the fashion image to search for visual matches |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
gender | string | Target gender filter: 'men', 'women', or 'unisex' |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region. |
page | integer | Page number for pagination (1-indexed) |
page_size | integer | Number of items to return per page (1 to 100, default 20) |
personalize | boolean | Whether to apply personalized ranking based on user style profile |
price_max | number | Maximum price in local currency |
price_min | number | Minimum price in local currency |
size | array | Array of sizes to filter by (e.g. ['S', 'M', 'L']) |
sort_by | string | Sorting criteria for search results: 'relevance', 'price', or 'title' |
sort_order | string | Sort order: 'asc' for ascending, 'desc' for descending |
vendor | array | List of brand names to filter by |
products.search.image_upload Search Products By Uploaded Image
Upload a local image file (or base64 string) and search PoloPan catalog products using visual image similarity. Returns matching products with available in-stock sizes, pricing, and verified purchase URLs (https://s.polopan.com/p/{handle}). Automatically localized to active country / 240+ destination regions. PURPOSE & DISAMBIGUATION: - Performs reverse visual search by uploading a local or base64-encoded image to secure temporary storage, then querying visual embeddings. - Distinct from 'products.search.image_url': Use this tool when the image file is local on the user's machine or in base64…
| Parameter | Type | Description |
|---|---|---|
content_type | string | MIME type of the image, e.g. 'image/jpeg', 'image/png', 'image/webp' |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
expiry_hours | integer | Temporary upload URL lifetime in hours before expiration (1 to 168, default 24) |
gender | string | Target gender filter: 'men', 'women', or 'unisex' |
image_base64 | string | Base64-encoded image data string (alternative to image_path) |
image_path | string | Local file system path to the image file (e.g. '/path/to/dress.jpg') |
image_url | string | Optional public HTTP(S) image URL if already hosted |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region. |
page | integer | Pagination page number (1-indexed) |
page_size | integer | Number of items to return per page (1 to 100, default 20) |
personalize | boolean | Whether to apply personalized ranking weights |
price_max | number | Maximum price in local currency |
price_min | number | Minimum price in local currency |
size | array | Array of sizes to filter by |
sort_by | string | Sorting criteria: 'relevance', 'price', or 'title' |
sort_order | string | Sort order: 'asc' or 'desc' |
vendor | array | List of brand names to filter by |
vision.outfit.detect_pieces Detect Fashion Pieces & Bounding Boxes
Deconstruct an outfit image or influencer photo into individual fashion pieces (e.g. Upper-body garment, Lower-body garment, Dress, Footwear, Bag, Headwear) with normalized bounding box coordinates and detection confidence scores. PURPOSE & DISAMBIGUATION: - Computer-vision object detection tool designed to analyze multi-item outfit photographs and isolate individual garments with their spatial coordinates. - Distinct from 'products.search.image_url' / 'products.search.image_upload': Use this tool to segment a full outfit into pieces before querying, NOT to directly retrieve catalog search re…
| Parameter | Type | Description |
|---|---|---|
image_base64 | string | Base64-encoded image data string for outfit piece detection |
image_path | string | Local file system path to the outfit image file to deconstruct |
image_url | string | Public HTTP(S) URL of the fashion image to deconstruct |
threshold | number | Confidence threshold for object detection bounding boxes (0.05 to 0.95, default 0.22) |
looks.curation.by_occasion Get Looks By Occasion
Discover complete curated fashion looks styled for specific occasions (e.g., 'Wedding & Reception', 'Party', 'Casual', 'Cocktail', 'Date Night', 'Club Night', 'Brunch', 'Vacation', 'Formal'). All returned looks are verified 100% in-stock (any look with an out-of-stock item is automatically excluded). Automatically localized to active country / 240+ destination regions. PURPOSE & DISAMBIGUATION: - Curates multi-item aesthetic outfits tailored to specific social events, vibes, and demographics. - Distinct from 'products.search.text': Use this tool to retrieve complete harmonized outfits, NOT in…
| Parameter | Type | Description |
|---|---|---|
age | integer | Target demographic age (16 to 99, default 25) |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
gender | string | Target gender filter: 'women' or 'men' (default: 'women') |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region. |
occasion | string | Target occasion or vibe: 'Wedding & Reception', 'Party', 'Casual', 'Cocktail', 'Date Night', 'Club Night', 'Brunch', 'Vacation', 'Formal' |
page | integer | Page number for looks pagination (1-indexed) |
page_size | integer | Number of looks returned per page (1 to 100, default 10) |
vendor | array | Optional brand or vendor name filter array |
products.items.get_by_handle Get Product By Handle
Fetch the raw product document and metadata for a single item by unique product handle identifier. Returns catalog metadata, variant details, available in-stock sizes, price details, and verified purchase link (https://s.polopan.com/p/{handle}). PURPOSE & DISAMBIGUATION: - Retrieves the full catalog record for a specific product handle. - Distinct from 'products.items.check_stock': Use 'products.items.get_by_handle' to fetch general catalog metadata; use 'products.items.check_stock' to get live variant inventory availability, computed sizing, specifications table, and 1-click checkout permali…
| Parameter | Type | Description |
|---|---|---|
handle * | string | Unique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206') |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
products.items.check_stock Check Live Variant Stock, Product Details & Sizing
Verify real-time live stock availability, discounted pricing, product specifications table (Fabric, Pattern, Collar, Sleeves, Fit, Care Instructions), shipping/return policies, and available size variants for a specific fashion product handle. PURPOSE & DISAMBIGUATION: - Real-time inventory and metadata inspection tool for a single product. - Computes the full size-availability matrix, active pricing, discount percentage, specifications dictionary, and resolves the 1-click checkout permalink for a chosen size. - Distinct from 'products.items.get_by_handle': Use this tool to check live stock,…
| Parameter | Type | Description |
|---|---|---|
handle * | string | Unique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206') |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
desired_size | string | Optional size query to verify against variant inventory (e.g. 'M', 'L', 'XL', '32', '40') |
size_index | integer | Zero-based index of the specific size variant to inspect |
products.items.get_size_guide Get Product Size Guide & Fit Recommendation
Retrieve the complete size guide chart, body measurement matrix (Chest/Bust, Waist, Hip, Length, Shoulders), unit switcher (inches/cm), how-to-measure guidelines, and automatic best-fit size recommendations for a specific product handle. PURPOSE & DISAMBIGUATION: - Dedicated size guide and fit consultancy tool for apparel and footwear. - Computes dimensional measurements across sizes, supports metric (cm) <-> imperial (in) unit conversions, and maps international/brand scales. - If user body measurements are provided (e.g. chest: 40 in, waist: 32 in), computes the best matching size variant w…
| Parameter | Type | Description |
|---|---|---|
handle * | string | Unique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206') |
desired_size | string | Optional specific size label to highlight or verify (e.g. 'M', 'L', 'XL', '32') |
unit | string | Measurement unit system for the size chart ('in' for inches, 'cm' for centimeters) |
user_chest | number | Optional user body chest/bust measurement for automated fit recommendation |
user_hip | number | Optional user body hip measurement for automated fit recommendation |
user_unit | string | Unit for the user's input measurements ('in' or 'cm') |
user_waist | number | Optional user body waist measurement for automated fit recommendation |
checkout.links.get_direct_url Get Direct Checkout URL
Generate the direct 1-click checkout purchase URL for a specific product handle and size variant index (https://s.polopan.com/p/{handle}/{size_index}). PURPOSE & DISAMBIGUATION: - Produces the final, verified 1-click buy link configured with the user's selected size index, unit quantity, and pre-applied coupon code. - Distinct from browsing links: General browsing uses base link (https://s.polopan.com/p/{handle}); this tool generates size-specific purchase permalinks (https://s.polopan.com/p/{handle}/{size_index}). WHEN TO USE: - ONLY after the user has explicitly selected and confirmed thei…
| Parameter | Type | Description |
|---|---|---|
handle * | string | Unique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206') |
address | object | Optional ad-hoc address object to prefill |
address_id | string | Optional saved address ID to prefill |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
coupon | string | Optional discount coupon code to pre-apply in the checkout session |
quantity | integer | Number of units to purchase (1 to 10, default 1) |
size | string | Size label confirmed by the user (e.g. 'M', 'L', 'XL', '40') |
size_index | integer | Zero-based index of the chosen size variant |
products.search.alternatives Search Alternatives In Budget
Find visual substitute products within a designated price bracket for a given fashion item handle using visual image similarity. Automatically localized to active country / 240+ destination regions. PURPOSE & DISAMBIGUATION: - Retrieves catalog items visually similar to an existing product (e.g. finding similar shirts or jackets) constrained to a target budget tier. - Distinct from 'products.search.text': Use this tool when substituting a specific known item by handle, NOT for free-text search queries. - Distinct from 'products.search.image_url' / 'products.search.image_upload': Use this tool…
| Parameter | Type | Description |
|---|---|---|
handle * | string | The unique product handle identifier to find visual alternatives for (e.g. 'solid-cotton-shirt') |
budget_range | string | Target price bracket filter in local currency: '0-1500', '1501-3000', '3001-5000', or '5000+' |
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
limit | integer | Maximum number of filtered alternative products to return in the result (1-100) |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region. |
page | integer | Pagination page number (1-indexed) |
page_size | integer | Number of candidate items to fetch per backend page (1-100) |
personalize | boolean | Whether to apply personalized user ranking to the results |
sort_by | string | Sorting attribute for the visual matches: 'relevance', 'price', or 'title' |
sort_order | string | Sort direction: 'asc' for ascending, 'desc' for descending |
looks.curation.recommend Get Recommended Outfits
Get complete recommended outfits. Pass a product 'handle' to find complementary items styled with it, OR pass an 'occasion' (e.g. 'Wedding & Reception', 'Party', 'Cocktail', 'Date Night', 'Formal') and 'gender' to discover full occasion looks. All returned looks are verified 100% in-stock (any look with an out-of-stock item is excluded). Automatically localized to active country / 240+ destination regions. PURPOSE & DISAMBIGUATION: - Generates harmonized outfits coordinated around a seed product handle or occasion theme. - Distinct from 'products.search.alternatives': Use 'looks.curation.reco…
| Parameter | Type | Description |
|---|---|---|
country | string | Country name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region. |
gender | string | Target gender filter: 'women' or 'men' (default: 'women') |
handle | string | Product handle identifier to build coordinating outfits around (e.g. 'solid-linen-shirt') |
mode | string | Catalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region. |
occasion | string | Target occasion or aesthetic theme (e.g. 'Wedding & Reception', 'Party', 'Cocktail', 'Date Night', 'Formal') |
page | integer | Page number for pagination (1-indexed) |
page_size | integer | Number of outfit sets to return per page (1 to 100, default 20) |