MCP-Server

Custom Blinds Shop

io.github.CustomBlinds/cb-shop
Commerce & Retail Payments & Fintech Öffentlich und erreichbar MCP 2026-07-28

Was dieses MCP kann

Supports product discovery, blind configuration, live ZAR pricing, cart and checkout management, payment links through Yoco or Ozow, order tracking, delivery estimates, and customer handoffs.

cancel_cart
Permanently delete a cart by cart_id. Use when the customer abandons the session or wants to start over. Has no effect on any checkout or paid order already created from this cart. Irreversible — create a new cart to restart.
Eingabeschema
{'type': 'object', 'required': ['cart_id'], 'properties': {'cart_id': {'type': 'string'}}}
cancel_checkout
Abort an unpaid checkout and release its checkout_id. Use if the customer changes their mind after create_checkout but before completing payment. Has no effect on orders already confirmed by webhook. To restart, create a new cart and checkout from scratch.
Eingabeschema
{'type': 'object', 'required': ['checkout_id'], 'properties': {'checkout_id': {'type': 'string'}}}
check_colour_stock
Verify whether a specific colour is available before configure_product. Returns in_stock boolean, expected_restock_date if out of stock, and up to 5 alternative in-stock colours ordered by similarity. Call this when a customer requests a named colour or when you want to prevent a configure_product failure due to an out-of-stock selection.
Eingabeschema
{'type': 'object', 'required': ['product_id', 'colour_name'], 'properties': {'product_id': {'type': 'string'}, 'colour_name': {'type': 'string'}}}
complete_checkout
Phase 2 of 2. Finalise a checkout and mint the payment link — Yoco for card payments or Ozow for instant EFT. Returns payment_url to share with the customer. Payment confirmation arrives via webhook; poll get_order afterwards to confirm paid status. Once called, the checkout is locked — use cancel_checkout to abort if the customer changes their mind before paying.
Eingabeschema
{'type': 'object', 'required': ['checkout_id'], 'properties': {'checkout_id': {'type': 'string'}, 'payment_method': {'enum': ['yoco', 'ozow'], 'type': 'string', 'description': 'Overrides any value set in create_checkout/update_checkout'}}}
configure_product
Lock in a full blind specification: product, dimensions, colour, and mount type (inside recess or outside face-fix). Validates that the colour exists and is in stock, then prices the blind. Returns a configuration summary to pass directly into create_cart. Call check_colour_stock first if availability is uncertain.
Eingabeschema
{'type': 'object', 'required': ['product_id', 'width_mm', 'height_mm', 'colour', 'mount_type'], 'properties': {'colour': {'type': 'string', 'description': 'Colour name (must match available colours)'}, 'finish': {'type': 'string', 'description': 'Optional finish for aluminium venetians'}, 'province': {'type': 'string', 'description': "Optional. Customer's South African province or city. Garden Route locations get Duncan's direct contact; other locations get the online shop contact."}, 'quantity': {'type': 'number', 'description': 'Number of blinds (default 1)'}, 'width_mm': {'type': 'number', 'description': 'Width in millimetres'}, 'height_mm': {'type': 'number', 'description': 'Height/drop in millimetres'}, 'mount_type': {'enum': ['inside', 'outside'], 'type': 'string', 'description': 'Mount type: inside (recess) or outside (face-fix)'}, 'product_id': {'type': 'string', 'description': 'Product ID from search_products'}}}
create_cart
Start the open UCP purchase flow — no auth needed. Creates a cart session and returns a cart_id (24-hour TTL). Optionally seed with pre-configured blind items and customer details. Next step: update_cart to add items, then create_checkout → complete_checkout to mint the payment link.
Eingabeschema
{'type': 'object', 'properties': {'items': {'type': 'array', 'description': 'Optional initial items (configured blinds)'}, 'customer': {'type': 'object', 'description': 'Optional customer details'}}}
create_checkout
Phase 1 of 2 in the purchase flow. Convert a cart (or inline items + customer) into a checkout. Customer name, email, and phone are required. Returns checkout_id. No payment link is minted yet — call complete_checkout for that. Use update_checkout to correct customer details before finalising.
Eingabeschema
{'type': 'object', 'properties': {'items': {'type': 'array'}, 'cart_id': {'type': 'string', 'description': 'Either cart_id or items required'}, 'customer': {'type': 'object', 'required': ['name', 'email', 'phone'], 'properties': {'city': {'type': 'string'}, 'name': {'type': 'string'}, 'email': {'type': 'string'}, 'phone': {'type': 'string'}, 'address': {'type': 'string'}}}, 'payment_method': {'enum': ['yoco', 'ozow'], 'type': 'string', 'description': "Default 'yoco'"}}}
create_order
Legacy auth-required tool — prefer the open UCP flow (create_cart → create_checkout → complete_checkout) which needs no credentials. Use create_order only if you hold a Bearer token and want a single-call path to a payment link. All item prices are re-verified server-side against the live pricing engine — agent-supplied prices are ignored. Returns a Yoco or Ozow payment_url.
Eingabeschema
{'type': 'object', 'required': ['items', 'customer_name', 'customer_email', 'customer_phone'], 'properties': {'items': {'type': 'array', 'items': {'type': 'object', 'required': ['product_id', 'width_mm', 'height_mm', 'colour', 'mount_type', 'unit_price_zar', 'total_price_zar'], 'properties': {'colour': {'type': 'string'}, 'finish': {'type': 'string'}, 'quantity': {'type': 'number'}, 'width_mm': {'type': 'number'}, 'height_mm': {'type': 'number'}, 'mount_type': {'type': 'string'}, 'product_id': {'type': 'string'}, 'product_name': {'type': 'string'}, 'unit_price_zar': {'type': 'number'}, 'total_price_zar': {'type': 'number'}}}, 'description': 'Array of configured blind items'}, 'customer_city': {'type': 'string', 'description': 'Delivery city'}, 'customer_name': {'type': 'string', 'description': 'Customer full name'}, 'customer_email': {'type': 'string', 'description': 'Customer email address'}, 'customer_phone': {'type': 'string', 'description': 'Customer phone number'}, 'customer_address': {'type': 'string', 'description': 'Delivery address'}}}
get_ar_visualizer_url
Surface the AR measurement tool or product visualizer when a customer wants to measure their window or preview a blind in their room. The AR tool uses a phone camera and an A4 page as a reference scale to measure window dimensions. The visualizer renders the selected blind in a customer-uploaded room photo. Set mode to 'measure', 'visualize', or 'both'. Optionally pre-select a product_id.
Eingabeschema
{'type': 'object', 'properties': {'mode': {'enum': ['measure', 'visualize', 'both'], 'type': 'string', 'description': 'Which tool to surface. Default: both.'}, 'product_id': {'type': 'string', 'description': 'Optional. Pre-select a product in the visualizer (e.g. roller-blockout, venetian-25mm-aluwood).'}}}
get_cart
Retrieve live cart state by cart_id: full item list, calculated totals in ZAR, and any customer details stored so far. Call after update_cart to confirm changes are correct before proceeding to create_checkout. Cart expires after 24 hours of inactivity.
Eingabeschema
{'type': 'object', 'required': ['cart_id'], 'properties': {'cart_id': {'type': 'string'}}}
get_checkout
Poll a checkout by checkout_id. Returns status (pending | paid | cancelled), full item list, customer details, and payment_url if already minted. Use to verify customer details before calling complete_checkout, or to retrieve the payment_url if complete_checkout was already called.
Eingabeschema
{'type': 'object', 'required': ['checkout_id'], 'properties': {'checkout_id': {'type': 'string'}}}
get_delivery_estimate
Explain the production lead time for a new order. Production takes 5–7 working days, excluding transit times and outside peak seasons. Returns dispatch_date, production_days, and a plain-language summary safe to share with the customer. Never quote a final delivery date. Call this when a customer asks 'when will it arrive?' to give an honest production timeline.
Eingabeschema
{'type': 'object', 'properties': {'order_date': {'type': 'string', 'description': "ISO date string of the order placement date (e.g. '2026-05-18'). Defaults to today."}}}
get_order
Retrieve a confirmed order's status, items, and payment details by order_id. customer_email is required as soft-auth and must exactly match the order record — prevents arbitrary order lookups. Returns payment status (paid | pending | failed), production status, and dispatch date once available.
Eingabeschema
{'type': 'object', 'required': ['order_id', 'customer_email'], 'properties': {'order_id': {'type': 'string'}, 'customer_email': {'type': 'string'}}}
get_payment_methods
List available payment processors and their capabilities. Returns Yoco (card, immediate) and Ozow (instant EFT via South African bank account). Call when the customer asks 'how can I pay?' or before presenting options. The result informs the payment_method field in create_checkout and complete_checkout.
Eingabeschema
{'type': 'object', 'properties': {'order_total_zar': {'type': 'number', 'description': 'Optional. For future per-handler limit filtering.'}}}
get_price
Get an exact ZAR price for a product at specific dimensions. Requires product_id (from search_products or lookup_catalog), width_mm, and height_mm. Returns unit_price_zar and total_price_zar (VAT included). Call configure_product next to lock in colour and mount type before creating a cart.
Eingabeschema
{'type': 'object', 'required': ['product_id', 'width_mm', 'height_mm'], 'properties': {'finish': {'type': 'string', 'description': 'Optional finish for aluminium products: Plain, Brushed, Woodgrain'}, 'province': {'type': 'string', 'description': "Optional. Customer's South African province or city. Garden Route locations get Duncan's direct contact; other locations get the online shop contact."}, 'quantity': {'type': 'number', 'description': 'Number of blinds (default 1)'}, 'width_mm': {'type': 'number', 'description': 'Width in millimetres (e.g. 1200)'}, 'height_mm': {'type': 'number', 'description': 'Height/drop in millimetres (e.g. 1500)'}, 'product_id': {'type': 'string', 'description': 'Product ID from search_products (e.g. roller-blockout, venetian-25mm-aluminium)'}}}
get_product
Fetch complete details for one product by id (e.g. roller-blockout, venetian-25mm-aluwood). Returns all available colours with in-stock status, materials, features, and maximum supported dimensions. Use before configure_product to confirm a colour exists and is in stock before committing.
Eingabeschema
{'type': 'object', 'required': ['product_id'], 'properties': {'product_id': {'type': 'string'}}}
get_product_recommendation
Translate a customer's primary concern into a product recommendation. primary_concern must be one of: blockout, heat, glare, moisture, privacy, security, automation. Optionally narrow by room (bedroom, lounge, etc.), location, budget, and aesthetic. Returns a recommended product_id with rationale — pass it to get_price or configure_product next. Security concern routes to brochure MCP (Garden Route customers only).
Eingabeschema
{'type': 'object', 'required': ['primary_concern'], 'properties': {'room': {'type': 'string'}, 'location': {'type': 'string'}, 'aesthetic': {'type': 'string'}, 'max_budget_zar': {'type': 'number'}, 'primary_concern': {'enum': ['blockout', 'heat', 'glare', 'moisture', 'privacy', 'security', 'automation'], 'type': 'string'}}}
get_whatsapp_handoff
Generate a pre-filled WhatsApp deep link to hand the customer off to the right contact. Garden Route locations (Knysna, Plett, George, Sedgefield, etc.) route to Duncan Kane (+27795235407) for free in-home consultation; all other South African locations route to the online shop line (+27760228410). Use when the customer prefers human assistance or when self-serve checkout isn't appropriate.
Eingabeschema
{'type': 'object', 'properties': {'message': {'type': 'string', 'description': 'Optional additional message to prefill'}, 'location': {'type': 'string', 'description': 'City/suburb. Drives Duncan vs shop routing.'}, 'customer_name': {'type': 'string'}, 'product_context': {'type': 'string', 'description': "e.g. 'roller blockout for bedroom'"}}}
lookup_catalog
Structured catalogue filter: narrow by category (roller | venetian | honeycomb | vertical | outdoor), colour name, max_width_mm, or max_height_mm. Ideal when the customer has stated a blind type. Returns matching products with id and product_url. Use search_catalog for open-ended natural language queries.
Eingabeschema
{'type': 'object', 'properties': {'colour': {'type': 'string'}, 'category': {'type': 'string', 'description': 'roller | venetian | honeycomb | vertical | outdoor'}, 'max_width_mm': {'type': 'number'}, 'max_height_mm': {'type': 'number'}}}
request_price_match
Submit a price match claim when the customer has found the same blind cheaper elsewhere. Custom Blinds matches verified South African retailer prices for identical product, dimensions, and specs. Returns a pre-filled WhatsApp link to the claims team. Not applicable to: Blinds Direct (same supplier), clearance or flash-sale prices, or out-of-stock items. Requires product_id and competitor_price_zar at minimum.
Eingabeschema
{'type': 'object', 'required': ['product_id', 'competitor_price_zar'], 'properties': {'width_mm': {'type': 'number', 'description': 'Window width in mm'}, 'height_mm': {'type': 'number', 'description': 'Window height/drop in mm'}, 'product_id': {'type': 'string', 'description': 'Product the customer wants to match (e.g. roller-blockout)'}, 'customer_name': {'type': 'string', 'description': 'Customer name'}, 'competitor_url': {'type': 'string', 'description': 'URL to competitor product page or quote'}, 'competitor_name': {'type': 'string', 'description': "Name of the competitor (e.g. 'Blind Empire')"}, 'customer_whatsapp': {'type': 'string', 'description': 'Customer WhatsApp number for follow-up'}, 'competitor_price_zar': {'type': 'number', 'description': "Competitor's price in ZAR (incl. VAT)"}}}
request_swatch
Register up to 5 colour swatches to be dispatched with the customer's order. Swatches ship at order placement only — they are NOT sent as a standalone postal sample before purchase. Capped at 5 codes per order. If the customer asks for swatches before ordering, explain they ship with the blind and guide them to place their order first.
Eingabeschema
{'type': 'object', 'required': ['customer_name', 'customer_email', 'customer_phone', 'product_interest'], 'properties': {'suburb': {'type': 'string', 'description': 'Optional delivery suburb'}, 'swatch_codes': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Optional specific colour codes (max 5)'}, 'customer_name': {'type': 'string'}, 'customer_email': {'type': 'string'}, 'customer_phone': {'type': 'string', 'description': 'Used as WhatsApp number'}, 'product_interest': {'type': 'string', 'description': "e.g. 'Roller Blockout' or 'Honeycomb'"}}}
search_catalog
Free-text search across the full catalogue — use for open queries like 'blockout for bedroom' or 'wood venetian'. Returns id, name, category, description, and product_url. For filtering by category, colour, or dimensions use lookup_catalog instead. Pass the returned id to get_product or get_price.
Eingabeschema
{'type': 'object', 'properties': {'query': {'type': 'string', 'description': "Free-text query, e.g. 'blockout' or 'venetian'"}}}
search_products
Use when the customer hasn't specified a product ID yet. Filters by blind type (roller, venetian, honeycomb, vertical, outdoor), colour name, or maximum window dimensions in mm. Returns product_id, name, description, features, and in-stock colour count. Pass the product_id to get_price or configure_product as the next step.
Eingabeschema
{'type': 'object', 'properties': {'type': {'type': 'string', 'description': 'Blind category to filter by: roller, venetian, honeycomb, vertical, outdoor'}, 'colour': {'type': 'string', 'description': 'Colour name to search for (partial match)'}, 'province': {'type': 'string', 'description': "Optional. Customer's South African province or city. Garden Route locations get Duncan's direct contact; other locations get the online shop contact."}, 'max_width_mm': {'type': 'number', 'description': 'Maximum width in millimetres the product supports'}, 'max_height_mm': {'type': 'number', 'description': 'Maximum height/drop in millimetres the product supports'}}}
submit_enquiry
Legacy auth-required tool — prefer the open UCP flow (create_cart → create_checkout → complete_checkout) for credentialless checkout. Use submit_enquiry only when the customer wants a sales team follow-up by email rather than paying online. Requires Bearer token. Pass a configure_product output plus customer name, email, and phone. Team responds within 24 hours.
Eingabeschema
{'type': 'object', 'required': ['product_config', 'customer_name', 'customer_email', 'customer_phone'], 'properties': {'message': {'type': 'string', 'description': 'Additional message or questions from the customer'}, 'customer_name': {'type': 'string', 'description': 'Customer full name'}, 'customer_email': {'type': 'string', 'description': 'Customer email address'}, 'customer_phone': {'type': 'string', 'description': 'Customer phone number'}, 'product_config': {'type': 'object', 'properties': {'colour': {'type': 'string'}, 'width_mm': {'type': 'number'}, 'height_mm': {'type': 'number'}, 'price_zar': {'type': 'number'}, 'mount_type': {'type': 'string'}, 'product_id': {'type': 'string'}, 'product_name': {'type': 'string'}}, 'description': 'Product configuration from configure_product'}}}
update_cart
Modify an open cart before checkout. op: 'add' appends items, 'remove' drops items by 0-based index, 'set' replaces the full item list, 'clear' empties the cart. Merges customer details (name, email, phone) via the customer field. Call get_cart afterwards to confirm. Cannot modify a cart that already has a checkout in progress.
Eingabeschema
{'type': 'object', 'required': ['cart_id'], 'properties': {'op': {'enum': ['add', 'remove', 'set', 'clear'], 'type': 'string'}, 'items': {'type': 'array'}, 'cart_id': {'type': 'string'}, 'indices': {'type': 'array', 'items': {'type': 'number'}, 'description': "Item indices to remove (0-based) when op='remove'"}, 'customer': {'type': 'object'}}}
update_checkout
Correct customer details (name, email, phone, address) or switch payment_method (yoco | ozow) on an unpaid checkout before calling complete_checkout. Returns the updated checkout state. Raises an error if the checkout is already paid or cancelled.
Eingabeschema
{'type': 'object', 'required': ['checkout_id'], 'properties': {'customer': {'type': 'object'}, 'checkout_id': {'type': 'string'}, 'payment_method': {'enum': ['yoco', 'ozow'], 'type': 'string'}}}
Hinzugefügt
request_price_match
17. September 2026 12:41
Hinzugefügt
get_delivery_estimate
17. September 2026 12:41
Hinzugefügt
get_ar_visualizer_url
17. September 2026 12:41
Hinzugefügt
get_product_recommendation
17. September 2026 12:41
Hinzugefügt
get_whatsapp_handoff
17. September 2026 12:41
Hinzugefügt
get_payment_methods
17. September 2026 12:41
Hinzugefügt
request_swatch
17. September 2026 12:41
Hinzugefügt
check_colour_stock
17. September 2026 12:41
Hinzugefügt
get_order
17. September 2026 12:41
Hinzugefügt
cancel_checkout
17. September 2026 12:41
Hinzugefügt
complete_checkout
17. September 2026 12:41
Hinzugefügt
update_checkout
17. September 2026 12:41
Hinzugefügt
get_checkout
17. September 2026 12:41
Hinzugefügt
create_checkout
17. September 2026 12:41
Hinzugefügt
cancel_cart
17. September 2026 12:41
Hinzugefügt
update_cart
17. September 2026 12:41
Hinzugefügt
get_cart
17. September 2026 12:41
Hinzugefügt
create_cart
17. September 2026 12:41
Hinzugefügt
get_product
17. September 2026 12:41
Hinzugefügt
lookup_catalog
17. September 2026 12:41
Hinzugefügt
search_catalog
17. September 2026 12:41
Hinzugefügt
create_order
17. September 2026 12:41
Hinzugefügt
submit_enquiry
17. September 2026 12:41
Hinzugefügt
configure_product
17. September 2026 12:41
Hinzugefügt
get_price
17. September 2026 12:41
Hinzugefügt
search_products
17. September 2026 12:41