PoloPan Fashion MCP Server

v1.8.0
io.github.rofoso-com/polopan-fashion-mcp Checked 4 days ago Published 16 days ago

Fashion & 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.

ParameterTypeDescription
country *stringTarget country name, alias, city, currency, or ISO-2 code (e.g. 'United States', 'US', 'UK', 'London', 'Dubai', 'UAE', 'Canada', 'India', 'Germany', 'AED', 'EUR')
modestringCatalog 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.

ParameterTypeDescription
limitintegerMax number of countries to return (default: 20)
querystringOptional search filter by country name, ISO code, currency, or phone dialing code (e.g. 'Emirates', 'dollar', 'CAD', 'Europe')
searchstringAlias 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…

ParameterTypeDescription
countrystringOptional 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.

ParameterTypeDescription
address1 *stringStreet address, house/flat/building name
city *stringCity / Town
firstName *stringRecipient first name
zip *stringPostal code / Zip code / PIN code
address2stringApartment, suite, unit, landmark, or area
countrystringDestination country code or natural name. Defaults to active region country.
emailstringCustomer delivery notification email address
idstringOptional existing address ID to update
is_defaultbooleanSet this address as default for the country (default true)
lastNamestringRecipient last name
phonestringRecipient contact phone number with country dialing code
provincestringState, Province, or Governorate
storage_modestringStorage destination: 'local' (writes to ~/.polopan/region.json) or 'stateless' (returns for chat context without disk write). Defaults to 'stateless' in cloud-hosted environments.
typestringAddress 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.

ParameterTypeDescription
countrystringOptional 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.

ParameterTypeDescription
address_id *stringID 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.

ParameterTypeDescription
address_id *stringID 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…

ParameterTypeDescription
query *stringThe search query or style keyword to find fashion items (e.g. 'black leather jacket', 'floral summer midi dress')
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
genderstringTarget gender filter: 'men', 'women', or 'unisex'
modestringCatalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region.
pageintegerPagination page number (1-indexed, starts at 1)
page_sizeintegerNumber of items to return per page (1 to 100, default 20)
price_maxnumberMaximum price in local currency
price_minnumberMinimum price in local currency
sizearrayArray of size labels to filter by (e.g. ['S', 'M', 'L', 'XL', '32'])
sort_bystringSorting criteria for search results: 'relevance', 'price', or 'title'
sort_orderstringSort order: 'asc' for ascending, 'desc' for descending
vendorarrayList 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…

ParameterTypeDescription
image_url *stringPublicly accessible HTTP(S) URL of the fashion image to search for visual matches
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
genderstringTarget gender filter: 'men', 'women', or 'unisex'
modestringCatalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region.
pageintegerPage number for pagination (1-indexed)
page_sizeintegerNumber of items to return per page (1 to 100, default 20)
personalizebooleanWhether to apply personalized ranking based on user style profile
price_maxnumberMaximum price in local currency
price_minnumberMinimum price in local currency
sizearrayArray of sizes to filter by (e.g. ['S', 'M', 'L'])
sort_bystringSorting criteria for search results: 'relevance', 'price', or 'title'
sort_orderstringSort order: 'asc' for ascending, 'desc' for descending
vendorarrayList 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…

ParameterTypeDescription
content_typestringMIME type of the image, e.g. 'image/jpeg', 'image/png', 'image/webp'
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
expiry_hoursintegerTemporary upload URL lifetime in hours before expiration (1 to 168, default 24)
genderstringTarget gender filter: 'men', 'women', or 'unisex'
image_base64stringBase64-encoded image data string (alternative to image_path)
image_pathstringLocal file system path to the image file (e.g. '/path/to/dress.jpg')
image_urlstringOptional public HTTP(S) image URL if already hosted
modestringCatalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region.
pageintegerPagination page number (1-indexed)
page_sizeintegerNumber of items to return per page (1 to 100, default 20)
personalizebooleanWhether to apply personalized ranking weights
price_maxnumberMaximum price in local currency
price_minnumberMinimum price in local currency
sizearrayArray of sizes to filter by
sort_bystringSorting criteria: 'relevance', 'price', or 'title'
sort_orderstringSort order: 'asc' or 'desc'
vendorarrayList 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…

ParameterTypeDescription
image_base64stringBase64-encoded image data string for outfit piece detection
image_pathstringLocal file system path to the outfit image file to deconstruct
image_urlstringPublic HTTP(S) URL of the fashion image to deconstruct
thresholdnumberConfidence 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…

ParameterTypeDescription
ageintegerTarget demographic age (16 to 99, default 25)
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
genderstringTarget gender filter: 'women' or 'men' (default: 'women')
modestringCatalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region.
occasionstringTarget occasion or vibe: 'Wedding & Reception', 'Party', 'Casual', 'Cocktail', 'Date Night', 'Club Night', 'Brunch', 'Vacation', 'Formal'
pageintegerPage number for looks pagination (1-indexed)
page_sizeintegerNumber of looks returned per page (1 to 100, default 10)
vendorarrayOptional 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…

ParameterTypeDescription
handle *stringUnique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206')
countrystringCountry 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,…

ParameterTypeDescription
handle *stringUnique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206')
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
desired_sizestringOptional size query to verify against variant inventory (e.g. 'M', 'L', 'XL', '32', '40')
size_indexintegerZero-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…

ParameterTypeDescription
handle *stringUnique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206')
desired_sizestringOptional specific size label to highlight or verify (e.g. 'M', 'L', 'XL', '32')
unitstringMeasurement unit system for the size chart ('in' for inches, 'cm' for centimeters)
user_chestnumberOptional user body chest/bust measurement for automated fit recommendation
user_hipnumberOptional user body hip measurement for automated fit recommendation
user_unitstringUnit for the user's input measurements ('in' or 'cm')
user_waistnumberOptional 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…

ParameterTypeDescription
handle *stringUnique product handle identifier (e.g. 'solid-linen-shirt', 'shopify_11206')
addressobjectOptional ad-hoc address object to prefill
address_idstringOptional saved address ID to prefill
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
couponstringOptional discount coupon code to pre-apply in the checkout session
quantityintegerNumber of units to purchase (1 to 10, default 1)
sizestringSize label confirmed by the user (e.g. 'M', 'L', 'XL', '40')
size_indexintegerZero-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…

ParameterTypeDescription
handle *stringThe unique product handle identifier to find visual alternatives for (e.g. 'solid-cotton-shirt')
budget_rangestringTarget price bracket filter in local currency: '0-1500', '1501-3000', '3001-5000', or '5000+'
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
limitintegerMaximum number of filtered alternative products to return in the result (1-100)
modestringCatalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region.
pageintegerPagination page number (1-indexed)
page_sizeintegerNumber of candidate items to fetch per backend page (1-100)
personalizebooleanWhether to apply personalized user ranking to the results
sort_bystringSorting attribute for the visual matches: 'relevance', 'price', or 'title'
sort_orderstringSort 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…

ParameterTypeDescription
countrystringCountry name, city, currency, or 2-letter ISO code (e.g. 'US', 'United States', 'UK', 'Dubai', 'CA', 'IN'). Defaults to active saved region.
genderstringTarget gender filter: 'women' or 'men' (default: 'women')
handlestringProduct handle identifier to build coordinating outfits around (e.g. 'solid-linen-shirt')
modestringCatalog mode: 'global' (ships to country) or 'local' (domestic only). Defaults to active saved region.
occasionstringTarget occasion or aesthetic theme (e.g. 'Wedding & Reception', 'Party', 'Cocktail', 'Date Night', 'Formal')
pageintegerPage number for pagination (1-indexed)
page_sizeintegerNumber of outfit sets to return per page (1 to 100, default 20)