{"schema_version":"2024-11-05","name":"custom-blinds-shop","display_name":"Custom Blinds Shop","description":"Browse products, get instant pricing, configure blinds, submit enquiries and create orders for custom-made blinds in South Africa.","configSchema":{},"systemPrompt":"You are operating as the Custom Blinds Shop MCP (MCP-2), the transactional node of the CBSA dual-node commerce system. Your role is to handle product search, pricing, cart, checkout and payment for custom-made blinds in South Africa. Use search_catalog or get_product to find products, get_price for ZAR pricing (VAT included), then create_cart → create_checkout → complete_checkout for the full purchase flow. For advisory questions about which blind to choose, the brochure endpoint is https://customblinds.co.za/wp-json/cb/v1/mcp; it uses flat JSON tool requests, not this shop's JSON-RPC interface. Retain the customer's complete brief in caller context when transferring between nodes. PRODUCT TAXONOMY: Duo Roller = two independent fabric rolls and stronger room darkening, with possible edge light depending on mount and fit. Zebra Blinds (Double Roller) = single fabric with alternating stripes and allows more light through when closed, never conflate these. All prices ZAR VAT included. Production takes 5 to 7 working days, excluding transit times and outside peak seasons. Never quote delivery time. Garden Route customers (Knysna, Plett, George etc): offer Duncan Kane a free consultation on WhatsApp +27 79 523 5407. All others: WhatsApp +27 76 022 8410, WhatsApp only, never tell anyone to call it. Checkout creates real records and is not a test-mode tool. SAMPLES: Sample swatches, not off-cuts: on orders over R8,000 the customer can ask on WhatsApp for swatches in the colours they like, for the product they are ordering; if nothing suits, full refund with no fees. Never quote a sample price or courier cost.","categories":["window-coverings","home-decor","ecommerce","south-africa"],"keywords":["blinds","roller blinds","window treatments","made to measure","South Africa","shutters","awnings"],"url":"https://shop.customblinds.co.za/mcp","manifest_url":"https://shop.customblinds.co.za/mcp-manifest.json","discovery_endpoint":"https://shop.customblinds.co.za/mcp","discovery_manifest":"https://shop.customblinds.co.za/mcp-manifest.json","discovery_note":"Product education and design advice use the brochure endpoint https://customblinds.co.za/wp-json/cb/v1/mcp (flat JSON tool requests). Use this shop's JSON-RPC tools and their advertised input/output schemas for discovery, pricing, cart and checkout. Retain the brief across calls; browser prefill is not certified. Checkout requires no login but creates real records: never invoke it as a test.","cbsa_node":"MCP-2","cbsa_role":"transactional","cbsa_system_prompt_url":"https://shop.customblinds.co.za/gpt-system-prompt.txt","routing_rules":{"this_node":"SHOP MCP, handles cart, pricing, checkout, payment, order tracking. Forbidden: vague advice without product mapping.","peer_node":"BROCHURE (https://customblinds.co.za/wp-json/cb/v1/mcp, flat JSON tool requests), handles education, design, lead capture, consultation. Forbidden: checkout, payment, order confirmation.","route_to_shop":["buy","order","checkout","price now","add to cart","payment"],"route_to_brochure":["measure","advice","compare","design","options","what should I choose","inspiration"],"mixed_intent":"BROCHURE MCP first → escalate to SHOP MCP with full context transfer","uncertain_intent":"Default to BROCHURE MCP. Never guess a transaction.","context_transfer_object":{"required":["product_type","width_mm","height_mm"],"recommended":["room","budget_zar","preference","colour"],"note":"Retain the full brief in caller context. Map product_type to the shop product_id and pass width_mm, height_mm, colour, mount_type and quantity to the relevant tool according to its inputSchema. get_product_recommendation requires primary_concern. Do not ask again for supplied details; do not assume a browser context token or prefilled URL exists."},"call_sequence":["1. get_product_recommendation, concern + room → product slug","2. search_catalog / get_product, confirm slug, colours, max dimensions","3. get_price, exact ZAR (width_mm, height_mm, VAT included)","4. configure_product, colour + mount_type","5. create_cart → create_checkout → complete_checkout → Yoco / Ozow payment link"]},"capabilities":{"tools":true},"authentication":{"type":"bearer","required":false,"description":"No credentials needed to browse, price, or complete a checkout. Bearer token required only for submit_enquiry and create_order, which email the team or bypass checkout. Named partner keys available, contact sales@customblinds.co.za.","tiers":{"tier1_open":"Browse/read tools require no API key and share the 120 calls/IP/hour limit. search_catalog, lookup_catalog, get_product, get_product_recommendation, get_payment_methods, get_whatsapp_handoff, get_ar_visualizer_url, get_delivery_estimate, get_cart, get_checkout, get_order. get_order also requires the matching customer_email.","tier2_rate_gated":"Pricing tools, open but rate-limited to 25 calls/IP/hour. get_price, check_colour_stock, configure_product. Bulk pricing extraction is monitored.","tier3_validated":"Checkout flow, open but requires real customer details (valid SA phone, real email, real name). create_cart, update_cart, cancel_cart, create_checkout, update_checkout, complete_checkout, cancel_checkout. Orders from cloud/data-centre IPs are held for manual team approval. request_swatch is open but needs an existing order_ref and is limited to 3 calls per IP and 40 overall per hour.","tier4_key_required":"submit_enquiry, create_order. Bearer token required. These tools trigger direct email to our team or bypass checkout, protected against spam."}},"usage_policy":{"summary":"This API is provided for AI shopping agents serving real end customers. Browsing, pricing, and checkout are open. Systematic bulk extraction of pricing data for competitive intelligence or resale is prohibited and monitored.","rate_limits":{"calls_per_ip_per_hour":120,"pricing_calls_per_ip_per_hour":25,"checkout_completions_per_ip_per_hour":5,"named_clients":"Higher limits available, contact sales@customblinds.co.za for a named partner key."},"checkout_policy":"Orders require a real South African phone number and email address. Orders from cloud-provider IPs (GCP, AWS, Azure, etc.) are held for manual team verification before a payment link is issued, this is a fraud-prevention measure, not a block. Legitimate customer orders from cloud-hosted agents are fulfilled within a few hours.","ip_protection":"Pricing and catalogue data is proprietary. Agents may retrieve pricing for individual customer orders. Mapping the full pricing matrix across all products and dimensions is a violation of this policy.","contact":"sales@customblinds.co.za or WhatsApp +27 76 022 8410 for partner access or questions.","side_effect_limits":"Per hour without a partner key: complete_checkout 5 per IP and 60 overall, create_checkout 20 per IP and 400 overall, request_swatch 3 per IP and 40 overall.","public_access":"Tool calls without a partner Bearer key are accepted only once the shop opens this endpoint to the public; until then initialize and tools/list answer and tools/call returns an error. Contact sales@customblinds.co.za for a partner key."},"contact":{"email":"sales@customblinds.co.za","whatsapp":"+27760228410"},"tools":[{"name":"search_products","description":"Legacy discovery, retained for backward compatibility. Prefer search_catalog / lookup_catalog, then get_product. Filters by blind type, colour or maximum dimensions. Returns products with id (not product_id), name, description, features and in-stock colour count. Pass that id as product_id to get_price or configure_product.","inputSchema":{"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)"},"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"},"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."}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"products":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"colour_count_in_stock":{"type":"number"},"starting_price_zar":{"anyOf":[{"type":"number"},{"type":"null"}]},"product_url":{"type":"string"}},"required":["product_id","name","category","product_url"],"additionalProperties":true}},"total":{"type":"number"},"contact":{"type":"object","properties":{"name":{"type":"string"},"whatsapp":{"type":"string"},"email":{"type":"string"},"note":{"type":"string"}},"required":[],"additionalProperties":true},"currency":{"type":"string","const":"ZAR"}},"required":["products","total"],"additionalProperties":true}},{"name":"get_price","description":"Get an exact ZAR price using product_id from search_catalog or lookup_catalog, width_mm and height_mm. Prices include VAT and delivery. Colour selects the bamboo price tier where applicable. A price is not a stock reservation: validate the exact colour and mount with configure_product before creating a cart. Failure can return success:false or a JSON-RPC validation error.","inputSchema":{"type":"object","properties":{"product_id":{"type":"string","description":"product_id from search_catalog or lookup_catalog (e.g. roller-blockout)"},"colour":{"type":"string","description":"Optional bamboo colour for colour-specific tier pricing"},"width_mm":{"type":"number","description":"Width in millimetres (e.g. 1200)"},"height_mm":{"type":"number","description":"Height/drop in millimetres (e.g. 1500)"},"finish":{"type":"string","description":"Optional finish for aluminium products: Plain, Brushed, Woodgrain"},"quantity":{"type":"number","description":"Number of blinds (default 1)"},"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."},"no_drill":{"type":"boolean","description":"Optional. true for the no-drill option (tension brackets, inside the frame, max 2000mm wide; 1500mm on 25mm venetians). Adds the R65 no-drill kit per blind. Offered on indoor roller blinds, including value rollers, and 25mm aluminium or aluwood venetians. Dedicated no-drill products already include the kit."}},"required":["product_id","width_mm","height_mm"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"number"},"unit_price_zar":{"type":"number"},"total_price_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"vat_included":{"type":"boolean"},"lead_time":{"type":"string"},"delivery":{"type":"string"},"limits":{"type":"object","properties":{},"required":[],"additionalProperties":true},"contact":{"type":"object","properties":{"name":{"type":"string"},"whatsapp":{"type":"string"},"email":{"type":"string"},"note":{"type":"string"}},"required":[],"additionalProperties":true},"next_step":{"type":"string"},"minimum_charge_applied":{"type":"boolean"},"effective_width_mm":{"type":"number"},"effective_height_mm":{"type":"number"}},"required":["product_id","width_mm","height_mm","quantity","unit_price_zar","total_price_zar","currency","vat_included"],"additionalProperties":true}},{"name":"configure_product","description":"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.","inputSchema":{"type":"object","properties":{"product_id":{"type":"string","description":"product_id from search_catalog or lookup_catalog"},"width_mm":{"type":"number","description":"Width in millimetres"},"height_mm":{"type":"number","description":"Height/drop in millimetres"},"colour":{"type":"string","description":"Colour name (must match available colours)"},"mount_type":{"type":"string","minLength":1,"description":"Use inside (recess) or outside (face-fix); handler requires a nonempty value"},"finish":{"type":"string","description":"Optional finish for aluminium venetians"},"quantity":{"type":"number","description":"Number of blinds (default 1)"},"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."},"no_drill":{"type":"boolean","description":"Optional. true for the no-drill option (tension brackets, inside the frame, max 2000mm wide; 1500mm on 25mm venetians). Adds the R65 no-drill kit per blind. Offered on indoor roller blinds, including value rollers, and 25mm aluminium or aluwood venetians. Dedicated no-drill products already include the kit."}},"required":["product_id","width_mm","height_mm","colour","mount_type"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"number"},"unit_price_zar":{"type":"number"},"total_price_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"vat_included":{"type":"boolean"},"lead_time":{"type":"string"},"delivery":{"type":"string"},"limits":{"type":"object","properties":{},"required":[],"additionalProperties":true},"contact":{"type":"object","properties":{"name":{"type":"string"},"whatsapp":{"type":"string"},"email":{"type":"string"},"note":{"type":"string"}},"required":[],"additionalProperties":true},"next_step":{"type":"string"},"minimum_charge_applied":{"type":"boolean"},"effective_width_mm":{"type":"number"},"effective_height_mm":{"type":"number"},"colour":{"type":"string"},"mount_type":{"type":"string"},"price_zar":{"type":"number"},"in_stock":{"type":"boolean"},"summary":{"type":"string"}},"required":["product_id","width_mm","height_mm","colour","mount_type","quantity","unit_price_zar","total_price_zar","currency"],"additionalProperties":true}},{"name":"submit_enquiry","description":"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.","inputSchema":{"type":"object","properties":{"product_config":{"type":"object","description":"Product configuration from configure_product","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"colour":{"type":"string"},"mount_type":{"type":"string"},"price_zar":{"type":"number"}}},"customer_name":{"type":"string","description":"Customer full name"},"customer_email":{"type":"string","description":"Customer email address"},"customer_phone":{"type":"string","description":"Customer phone number"},"message":{"type":"string","minLength":10,"description":"Required enquiry message; at least 10 characters after trimming"}},"required":["product_config","customer_name","customer_email","customer_phone","message"]},"requires_auth":true,"outputSchema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"contact":{"type":"object","properties":{"name":{"type":"string"},"whatsapp":{"type":"string"},"email":{"type":"string"},"note":{"type":"string"}},"required":[],"additionalProperties":true}},"required":["success","message","contact"],"additionalProperties":true}},{"name":"create_order","description":"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.","inputSchema":{"type":"object","properties":{"items":{"type":"array","minItems":1,"description":"Array of configured blind items","items":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"colour":{"type":"string"},"mount_type":{"type":"string"},"finish":{"type":"string"},"quantity":{"type":"number"},"unit_price_zar":{"type":"number"},"total_price_zar":{"type":"number"},"no_drill":{"type":"boolean","description":"Optional. true for the no-drill option (tension brackets, inside the frame, max 2000mm wide; 1500mm on 25mm venetians). Adds the R65 no-drill kit per blind. Offered on indoor roller blinds, including value rollers, and 25mm aluminium or aluwood venetians. Dedicated no-drill products already include the kit."}},"required":["product_id","width_mm","height_mm","colour","mount_type"]}},"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"},"customer_city":{"type":"string","description":"Delivery city"},"payment_method":{"type":"string","enum":["yoco","ozow"],"default":"yoco","description":"Yoco card or Ozow instant EFT"}},"required":["items","customer_name","customer_email","customer_phone"]},"requires_auth":true,"outputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"product_slug":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"drop_mm":{"type":"number"},"quantity":{"type":"number"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}]},"mount_type":{"type":"string"},"unit_price":{"type":"number"},"total_price":{"type":"number"}},"required":[],"additionalProperties":true}},{"type":"null"}]},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},"payment_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_step":{"type":"string"},"message":{"type":"string"},"ap2":{"type":"object","properties":{"merchant_authorization":{"type":"string"}},"required":["merchant_authorization"],"additionalProperties":true},"order_reference":{"type":"string"}},"required":["order_reference","checkout_id","status","payment_url","message"],"additionalProperties":true}},{"name":"search_catalog","description":"Preferred free-text discovery. Returns results containing product_id, name, category, description, product_url and colour_count_in_stock, plus total and currency. For structured filters use lookup_catalog. Pass product_id to get_product or get_price.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Free-text query, e.g. 'blockout' or 'venetian'"}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"product_url":{"type":"string"},"colour_count_in_stock":{"type":"number"}},"required":["product_id","name","category","description","product_url","colour_count_in_stock"],"additionalProperties":true}},"total":{"type":"number"},"currency":{"type":"string","const":"ZAR"}},"required":["results","total","currency"],"additionalProperties":true}},{"name":"lookup_catalog","description":"Preferred structured discovery. Filter by category, partial colour name or required supported width/drop in mm. Returns results containing product_id, name, category and product_url, plus total. Width/drop filters check separate maximums, not every combination; confirm the exact pair with get_price.","inputSchema":{"type":"object","properties":{"category":{"type":"string","description":"roller | venetian | honeycomb | vertical | outdoor"},"colour":{"type":"string"},"max_width_mm":{"type":"number"},"max_height_mm":{"type":"number"}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"results":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"product_url":{"type":"string"}},"required":["product_id","name","category","product_url"],"additionalProperties":true}},"total":{"type":"number"}},"required":["results","total"],"additionalProperties":true}},{"name":"get_product","description":"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.","inputSchema":{"type":"object","properties":{"product_id":{"type":"string"}},"required":["product_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"product_id":{"type":"string"},"name":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"features":{"type":"array","items":{"type":"string"}},"materials":{"type":"array","items":{"type":"string"}},"installation_type":{"type":"string"},"suitable_for":{"type":"array","items":{"type":"string"}},"colours":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"anyOf":[{"type":"string"},{"type":"null"}]},"material":{"anyOf":[{"type":"string"},{"type":"null"}]},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"in_stock":{"type":"boolean"},"expected_restock":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","in_stock"],"additionalProperties":true}},"colour_count_in_stock":{"type":"number"},"starting_price_zar":{"anyOf":[{"type":"number"},{"type":"null"}]},"product_url":{"type":"string"},"schema_url":{"type":"string"},"max_width_mm":{"anyOf":[{"type":"number"},{"type":"null"}]},"max_height_mm":{"anyOf":[{"type":"number"},{"type":"null"}]},"size_limits":{"anyOf":[{"type":"object","properties":{"product_id":{"type":"string"},"unit":{"const":"mm","type":"string"},"max_width_mm":{"type":"number"},"max_height_mm":{"type":"number"},"minimum_charge_width_mm":{"type":"number"},"minimum_charge_height_mm":{"type":"number"},"minimum_order_width_mm":{"type":"number"},"minimum_order_height_mm":{"type":"number"},"combination_dependent":{"type":"boolean"},"availability_rule":{"type":"string"},"width_drop_frontier":{"type":"array","items":{"type":"object","properties":{"width_band_max_mm":{"type":"number"},"max_drop_mm":{"type":"number"}},"required":["width_band_max_mm","max_drop_mm"],"additionalProperties":true}},"measurement_note":{"type":"string"},"validation_note":{"type":"string"}},"required":["product_id","unit","max_width_mm","max_height_mm","minimum_charge_width_mm","minimum_charge_height_mm","combination_dependent","availability_rule","width_drop_frontier","measurement_note","validation_note"],"additionalProperties":true},{"type":"null"}]}},"required":["product_id","name","category","colours","product_url"],"additionalProperties":true}},{"name":"create_cart","description":"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.","inputSchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","description":"product_id returned by search_catalog or lookup_catalog"},"product_name":{"type":"string","description":"Optional; server resolves the catalogue name"},"width_mm":{"type":"number","exclusiveMinimum":0,"description":"Actual ordered width in millimetres"},"height_mm":{"type":"number","exclusiveMinimum":0,"description":"Actual ordered drop in millimetres"},"colour":{"type":"string","minLength":1,"description":"Exact available colour; validate with configure_product before adding"},"mount_type":{"type":"string","minLength":1,"description":"Use inside for inside mount or outside for face fix"},"finish":{"type":"string","description":"Optional pricing finish for aluminium Venetians"},"quantity":{"type":"number","description":"Number of blinds; defaults to 1"},"unit_price_zar":{"type":"number","description":"Optional, ignored: server recalculates all prices"},"total_price_zar":{"type":"number","description":"Optional, ignored: server recalculates all totals"},"no_drill":{"type":"boolean","description":"Optional. true for the no-drill option (tension brackets, inside the frame, max 2000mm wide; 1500mm on 25mm venetians). Adds the R65 no-drill kit per blind. Offered on indoor roller blinds, including value rollers, and 25mm aluminium or aluwood venetians. Dedicated no-drill products already include the kit."}},"required":["product_id","width_mm","height_mm","colour","mount_type"]},"description":"Optional configured items; all submitted prices are ignored"},"customer":{"type":"object","properties":{"name":{"type":"string","description":"Real customer name, checked before checkout creation"},"email":{"type":"string","description":"Real customer email, checked before checkout creation"},"phone":{"type":"string","description":"South African phone number, checked before checkout creation"},"address":{"type":"string"},"city":{"type":"string"}}}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"cart_id":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"colour":{"type":"string"},"mount_type":{"type":"string"},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"number"},"unit_price_zar":{"type":"number"},"total_price_zar":{"type":"number"}},"required":["product_id","width_mm","height_mm","quantity","unit_price_zar","total_price_zar"],"additionalProperties":true}},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"expires_at":{"type":"string"}},"required":["cart_id","items","item_count","total_zar","currency","customer","created_at","updated_at","expires_at"],"additionalProperties":true}},{"name":"get_cart","description":"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.","inputSchema":{"type":"object","properties":{"cart_id":{"type":"string"}},"required":["cart_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"cart_id":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"colour":{"type":"string"},"mount_type":{"type":"string"},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"number"},"unit_price_zar":{"type":"number"},"total_price_zar":{"type":"number"}},"required":["product_id","width_mm","height_mm","quantity","unit_price_zar","total_price_zar"],"additionalProperties":true}},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"expires_at":{"type":"string"}},"required":["cart_id","items","item_count","total_zar","currency","customer","created_at","updated_at","expires_at"],"additionalProperties":true}},{"name":"update_cart","description":"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.","inputSchema":{"type":"object","properties":{"cart_id":{"type":"string"},"op":{"type":"string","enum":["add","remove","set","clear"],"default":"set"},"items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string","description":"product_id returned by search_catalog or lookup_catalog"},"product_name":{"type":"string","description":"Optional; server resolves the catalogue name"},"width_mm":{"type":"number","exclusiveMinimum":0,"description":"Actual ordered width in millimetres"},"height_mm":{"type":"number","exclusiveMinimum":0,"description":"Actual ordered drop in millimetres"},"colour":{"type":"string","minLength":1,"description":"Exact available colour; validate with configure_product before adding"},"mount_type":{"type":"string","minLength":1,"description":"Use inside for inside mount or outside for face fix"},"finish":{"type":"string","description":"Optional pricing finish for aluminium Venetians"},"quantity":{"type":"number","description":"Number of blinds; defaults to 1"},"unit_price_zar":{"type":"number","description":"Optional, ignored: server recalculates all prices"},"total_price_zar":{"type":"number","description":"Optional, ignored: server recalculates all totals"},"no_drill":{"type":"boolean","description":"Optional. true for the no-drill option (tension brackets, inside the frame, max 2000mm wide; 1500mm on 25mm venetians). Adds the R65 no-drill kit per blind. Offered on indoor roller blinds, including value rollers, and 25mm aluminium or aluwood venetians. Dedicated no-drill products already include the kit."}},"required":["product_id","width_mm","height_mm","colour","mount_type"]}},"indices":{"type":"array","items":{"type":"number"},"description":"Item indices to remove (0-based) when op='remove'"},"customer":{"type":"object","properties":{"name":{"type":"string","description":"Real customer name, checked before checkout creation"},"email":{"type":"string","description":"Real customer email, checked before checkout creation"},"phone":{"type":"string","description":"South African phone number, checked before checkout creation"},"address":{"type":"string"},"city":{"type":"string"}}}},"required":["cart_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"cart_id":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"height_mm":{"type":"number"},"colour":{"type":"string"},"mount_type":{"type":"string"},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"quantity":{"type":"number"},"unit_price_zar":{"type":"number"},"total_price_zar":{"type":"number"}},"required":["product_id","width_mm","height_mm","quantity","unit_price_zar","total_price_zar"],"additionalProperties":true}},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"expires_at":{"type":"string"}},"required":["cart_id","items","item_count","total_zar","currency","customer","created_at","updated_at","expires_at"],"additionalProperties":true}},{"name":"cancel_cart","description":"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.","inputSchema":{"type":"object","properties":{"cart_id":{"type":"string"}},"required":["cart_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"cancelled":{"type":"boolean"},"cart_id":{"type":"string"}},"required":["cancelled","cart_id"],"additionalProperties":true}},{"name":"create_checkout","description":"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.","inputSchema":{"type":"object","properties":{"cart_id":{"type":"string","description":"Either cart_id or items required"},"items":{"type":"array","minItems":1,"items":{"type":"object","properties":{"product_id":{"type":"string","description":"product_id returned by search_catalog or lookup_catalog"},"product_name":{"type":"string","description":"Optional; server resolves the catalogue name"},"width_mm":{"type":"number","exclusiveMinimum":0,"description":"Actual ordered width in millimetres"},"height_mm":{"type":"number","exclusiveMinimum":0,"description":"Actual ordered drop in millimetres"},"colour":{"type":"string","minLength":1,"description":"Exact available colour; validate with configure_product before adding"},"mount_type":{"type":"string","minLength":1,"description":"Use inside for inside mount or outside for face fix"},"finish":{"type":"string","description":"Optional pricing finish for aluminium Venetians"},"quantity":{"type":"number","description":"Number of blinds; defaults to 1"},"unit_price_zar":{"type":"number","description":"Optional, ignored: server recalculates all prices"},"total_price_zar":{"type":"number","description":"Optional, ignored: server recalculates all totals"},"no_drill":{"type":"boolean","description":"Optional. true for the no-drill option (tension brackets, inside the frame, max 2000mm wide; 1500mm on 25mm venetians). Adds the R65 no-drill kit per blind. Offered on indoor roller blinds, including value rollers, and 25mm aluminium or aluwood venetians. Dedicated no-drill products already include the kit."}},"required":["product_id","width_mm","height_mm","colour","mount_type"]}},"customer":{"type":"object","properties":{"name":{"type":"string","description":"Real customer name, checked before checkout creation"},"email":{"type":"string","description":"Real customer email, checked before checkout creation"},"phone":{"type":"string","description":"South African phone number, checked before checkout creation"},"address":{"type":"string"},"city":{"type":"string"}}},"payment_method":{"type":"string","enum":["yoco","ozow"],"description":"Default 'yoco'"}},"anyOf":[{"required":["cart_id"]},{"required":["items","customer"],"properties":{"customer":{"required":["name","email","phone"]}}}]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"product_slug":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"drop_mm":{"type":"number"},"quantity":{"type":"number"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}]},"mount_type":{"type":"string"},"unit_price":{"type":"number"},"total_price":{"type":"number"}},"required":[],"additionalProperties":true}},{"type":"null"}]},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},"payment_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_step":{"type":"string"},"message":{"type":"string"},"ap2":{"type":"object","properties":{"merchant_authorization":{"type":"string"}},"required":["merchant_authorization"],"additionalProperties":true}},"required":["checkout_id","status","total_zar","currency"],"additionalProperties":true}},{"name":"get_checkout","description":"Read checkout by checkout_id. Returns persisted order status, payment_status, payment_method, items, customer, total_zar and currency. Initial order status is started, not pending. This tool does not return a previously generated payment_url: retain the complete_checkout response in caller context.","inputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"}},"required":["checkout_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"product_slug":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"drop_mm":{"type":"number"},"quantity":{"type":"number"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}]},"mount_type":{"type":"string"},"unit_price":{"type":"number"},"total_price":{"type":"number"}},"required":[],"additionalProperties":true}},{"type":"null"}]},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},"payment_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_step":{"type":"string"},"message":{"type":"string"},"ap2":{"type":"object","properties":{"merchant_authorization":{"type":"string"}},"required":["merchant_authorization"],"additionalProperties":true}},"required":["checkout_id","status","total_zar","currency"],"additionalProperties":true}},{"name":"update_checkout","description":"Update customer details or payment_method only before payment-link generation. Paid, cancelled and payment-in-progress checkouts are rejected. Concurrent state changes are detected; retrieve the latest status before retrying.","inputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"customer":{"type":"object","properties":{"name":{"type":"string","description":"Real customer name, checked before checkout creation"},"email":{"type":"string","description":"Real customer email, checked before checkout creation"},"phone":{"type":"string","description":"South African phone number, checked before checkout creation"},"address":{"type":"string"},"city":{"type":"string"}}},"payment_method":{"type":"string","enum":["yoco","ozow"]}},"required":["checkout_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"product_slug":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"drop_mm":{"type":"number"},"quantity":{"type":"number"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}]},"mount_type":{"type":"string"},"unit_price":{"type":"number"},"total_price":{"type":"number"}},"required":[],"additionalProperties":true}},{"type":"null"}]},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},"payment_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_step":{"type":"string"},"message":{"type":"string"},"ap2":{"type":"object","properties":{"merchant_authorization":{"type":"string"}},"required":["merchant_authorization"],"additionalProperties":true}},"required":["checkout_id","status","total_zar","currency"],"additionalProperties":true}},{"name":"complete_checkout","description":"Generate a Yoco card or Ozow instant-EFT payment link; this does NOT complete payment. Rejects cancelled checkouts and rechecks stock and totals first. An atomic claim prevents competing gateway calls. Returns payment_url or null plus status and message; cloud callers may be held. Retain a successful URL: repeat calls return payment_pending with no URL. Gateway failures raise an error, send no payment-link email and require team review rather than an automatic retry. Poll get_order with customer_email for payment status.","inputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"payment_method":{"type":"string","enum":["yoco","ozow"],"description":"Overrides any value set in create_checkout/update_checkout"}},"required":["checkout_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"payment_method":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"product_slug":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"drop_mm":{"type":"number"},"quantity":{"type":"number"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}]},"mount_type":{"type":"string"},"unit_price":{"type":"number"},"total_price":{"type":"number"}},"required":[],"additionalProperties":true}},{"type":"null"}]},"item_count":{"type":"number"},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"customer":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"city":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[],"additionalProperties":true},"payment_url":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}]},"next_step":{"type":"string"},"message":{"type":"string"},"ap2":{"type":"object","properties":{"merchant_authorization":{"type":"string"}},"required":["merchant_authorization"],"additionalProperties":true}},"required":["checkout_id","status","payment_url","message"],"additionalProperties":true,"allOf":[{"if":{"properties":{"payment_url":{"type":"string"}},"required":["payment_url"]},"then":{"required":["total_zar","currency","payment_method"]}}]}},{"name":"cancel_checkout","description":"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.","inputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"}},"required":["checkout_id"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"checkout_id":{"type":"string"},"status":{"type":"string"}},"required":["checkout_id","status"],"additionalProperties":true}},{"name":"get_order","description":"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.","inputSchema":{"type":"object","properties":{"order_id":{"type":"string"},"customer_email":{"type":"string"}},"required":["order_id","customer_email"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"order_id":{"type":"string"},"order_reference":{"type":"string"},"payment_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"order_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"total_zar":{"type":"number"},"currency":{"type":"string","const":"ZAR"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"product_slug":{"type":"string"},"product_name":{"type":"string"},"width_mm":{"type":"number"},"drop_mm":{"type":"number"},"quantity":{"type":"number"},"colour":{"anyOf":[{"type":"string"},{"type":"null"}]},"mount_type":{"type":"string"},"unit_price":{"type":"number"},"total_price":{"type":"number"}},"required":[],"additionalProperties":true}},{"type":"null"}]},"lead_time":{"type":"string"}},"required":["order_id","payment_status","total_zar","currency"],"additionalProperties":true}},{"name":"check_colour_stock","description":"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.","inputSchema":{"type":"object","properties":{"product_id":{"type":"string"},"colour_name":{"type":"string"}},"required":["product_id","colour_name"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"product_id":{"type":"string"},"found":{"type":"boolean"},"colour":{"type":"string"},"in_stock":{"type":"boolean"},"expected_restock":{"anyOf":[{"type":"string"},{"type":"null"}]},"exact_colour_match":{"type":"boolean"},"requires_exact_colour_selection":{"type":"boolean"},"message":{"type":"string"},"matching_colours":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"hex":{"anyOf":[{"type":"string"},{"type":"null"}]},"material":{"anyOf":[{"type":"string"},{"type":"null"}]},"finish":{"anyOf":[{"type":"string"},{"type":"null"}]},"in_stock":{"type":"boolean"},"expected_restock":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","in_stock"],"additionalProperties":true}},"available_colours":{"type":"array","items":{"type":"string"}}},"required":["in_stock"],"additionalProperties":true}},{"name":"request_swatch","description":"Log up to 5 colour codes against an EXISTING order for the team (order_ref required; without it the tool returns status order_required and logs nothing). Sample swatches, not off-cuts: on orders over R8,000 the customer can ask on WhatsApp for swatches in the colours they like, for the product they are ordering; if nothing suits, full refund with no fees. Never quote a sample price or courier cost.","inputSchema":{"type":"object","properties":{"customer_name":{"type":"string","description":"Customer's full name."},"customer_email":{"type":"string","description":"Customer's email address."},"customer_phone":{"type":"string","description":"Used as WhatsApp number"},"product_interest":{"type":"string","description":"e.g. 'Roller Blockout' or 'Honeycomb'"},"suburb":{"type":"string","description":"Optional delivery suburb"},"swatch_codes":{"type":"array","items":{"type":"string"},"description":"Optional specific colour codes (max 5)"},"order_ref":{"type":"string","description":"The order reference the swatches ship with. Required."}},"required":["customer_name","customer_email","customer_phone","product_interest","order_ref"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"request_id":{"type":"number"},"order_ref":{"type":"string"},"status":{"type":"string"},"policy":{"type":"string"},"next_step":{"type":"string"},"estimated_delivery_days":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}},"required":["min","max"],"additionalProperties":true},"swatch_count":{"type":"number"},"message":{"type":"string"}},"required":["status","message"],"additionalProperties":true}},{"name":"get_payment_methods","description":"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.","inputSchema":{"type":"object","properties":{"order_total_zar":{"type":"number","description":"Optional. For future per-handler limit filtering."}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"default_currency":{"type":"string","const":"ZAR"},"handlers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"supports":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["id","name","supports"],"additionalProperties":true}},"note":{"type":"string"}},"required":["default_currency","handlers","note"],"additionalProperties":true}},{"name":"get_whatsapp_handoff","description":"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 on WhatsApp (+27795235407) for a free in-home consultation; all other South African locations route to the shop WhatsApp (+27760228410), WhatsApp only, no voice calls. Use when the customer prefers human assistance or when self-serve checkout isn't appropriate.","inputSchema":{"type":"object","properties":{"customer_name":{"type":"string"},"product_context":{"type":"string","description":"e.g. 'roller blockout for bedroom'"},"message":{"type":"string","description":"Optional additional message to prefill"},"location":{"type":"string","description":"City/suburb. Drives Duncan vs shop routing."}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"whatsapp_url":{"type":"string"},"recipient":{"type":"string"},"recipient_phone":{"type":"string"},"reason":{"type":"string"}},"required":["whatsapp_url","recipient","recipient_phone","reason"],"additionalProperties":true}},{"name":"get_product_recommendation","description":"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).","inputSchema":{"type":"object","properties":{"primary_concern":{"type":"string","enum":["blockout","heat","glare","moisture","privacy","security","automation"]},"room":{"type":"string"},"location":{"type":"string"},"max_budget_zar":{"type":"number"},"aesthetic":{"type":"string"}},"required":["primary_concern"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"recommendations":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"product_name":{"type":"string"},"reason":{"type":"string"},"starting_price_zar_for_1m_x_1m":{"anyOf":[{"type":"number"},{"type":"null"}]},"currency":{"type":"string","const":"ZAR"},"shop_url":{"type":"string"}},"required":["product_id","product_name","reason","starting_price_zar_for_1m_x_1m","currency","shop_url"],"additionalProperties":true}},"notes":{"type":"string"},"handoff":{"type":"object","properties":{"url":{"type":"string"},"product_family":{"type":"string"},"reason":{"type":"string"}},"required":["url","product_family","reason"],"additionalProperties":true}},"required":["recommendations"],"additionalProperties":true}},{"name":"get_ar_visualizer_url","description":"Returns the link to the Custom Blinds Visualiser (See it before you buy it), pre-selected to the product when it is supported. The customer adds a photo of their window (any angle), picks a blind and colour, and previews it on their own window. A preview of colour and style, not a measuring tool. No measuring or marking. A name and WhatsApp number are needed; 2 free previews per customer. Also returns the measuring guide (mode 'measure' makes it the main url) and the list of supported products. A customer still unsure of sizes can order with best guess sizes, receive a free tape measure and confirm before production starts. Use when a customer wants to see how a blind or colour will look before ordering, or is unsure how to measure.","inputSchema":{"type":"object","properties":{"product_id":{"type":"string","description":"Optional. Pre-select a product in the visualiser (e.g. roller-blockout, double-roller-zebra, outdoor-blinds)."},"mode":{"type":"string","enum":["measure","visualize","both"],"description":"Which link goes in url: visualize (own-window visualiser), measure (measuring guide) or both (visualiser, the default). Both links are always returned."}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"url":{"type":"string"},"visualiser_url":{"type":"string"},"measure_url":{"type":"string"},"supported_products":{"type":"array","items":{"type":"object","properties":{"product_id":{"type":"string"},"label":{"type":"string"}},"required":["product_id","label"],"additionalProperties":true}},"note":{"type":"string"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","visualiser_url","measure_url","note"],"additionalProperties":true}},{"name":"get_delivery_estimate","description":"Explain the lead time for a new order. Production takes 5 to 7 working days once payment clears, outside peak seasons, then courier transit of about 2 to 5 working days. Returns the ranges and a plain-language summary safe to share. Never quote a dispatch or delivery date: weather and production set them. Call this when a customer asks 'when will it arrive?'.","inputSchema":{"type":"object","properties":{"order_date":{"type":"string","description":"ISO date string of the order placement date (e.g. '2026-05-18'). Defaults to today."}}},"requires_auth":false,"outputSchema":{"type":"object","properties":{"order_date":{"type":"string"},"production_working_days_min":{"type":"number"},"production_working_days_max":{"type":"number"},"transit_working_days_min":{"type":"number"},"transit_working_days_max":{"type":"number"},"production_starts":{"type":"string"},"delivery_after_dispatch":{"type":"string"},"expedited_available":{"type":"boolean"},"summary":{"type":"string"},"important":{"type":"string"}},"required":["production_working_days_min","production_working_days_max","transit_working_days_min","transit_working_days_max","delivery_after_dispatch","summary","important"],"additionalProperties":true}},{"name":"request_price_match","description":"Submit a price match claim when the customer has found the same blind at a lower price 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.","inputSchema":{"type":"object","properties":{"product_id":{"type":"string","description":"Product the customer wants to match (e.g. roller-blockout)"},"width_mm":{"type":"number","description":"Window width in mm"},"height_mm":{"type":"number","description":"Window height/drop in mm"},"competitor_name":{"type":"string","description":"Name of the competitor (e.g. 'Blind Empire')"},"competitor_url":{"type":"string","description":"URL to competitor product page or quote"},"competitor_price_zar":{"type":"number","description":"Competitor's price in ZAR (incl. VAT)"},"customer_name":{"type":"string","description":"Customer name"},"customer_whatsapp":{"type":"string","description":"Customer WhatsApp number for follow-up"}},"required":["product_id","competitor_price_zar"]},"requires_auth":false,"outputSchema":{"type":"object","properties":{"success":{"type":"boolean"},"claim_summary":{"type":"object","properties":{"product_id":{"type":"string"},"dimensions":{"type":"string"},"competitor":{"type":"string"},"competitor_price_zar":{"type":"string"}},"required":["product_id","dimensions","competitor","competitor_price_zar"],"additionalProperties":true},"whatsapp_url":{"type":"string"},"message":{"type":"string"},"exclusions":{"type":"array","items":{"type":"string"}},"note":{"type":"string"}},"required":["success","claim_summary","whatsapp_url","message","exclusions","note"],"additionalProperties":true}}],"documentation_url":"https://shop.customblinds.co.za/for-ai","size_limits_url":"https://shop.customblinds.co.za/api/pricing/size-limits","preferred_tool_sequence":["search_catalog","get_product","get_price","configure_product","create_cart","create_checkout","complete_checkout"],"legacy_tools":{"search_products":"Supported older discovery interface; prefer search_catalog / lookup_catalog.","configure_product":"Supported compatibility configuration helper, recommended before cart creation for exact-colour/stock validation. Does not reserve stock.","create_order":"Supported authenticated older order interface; prefer cart and checkout. Creates real orders and is not a test tool."},"shopping_flow":{"discovery":["search_catalog","lookup_catalog"],"sequence":["get_product","get_price","configure_product","create_cart","create_checkout","complete_checkout"],"configuration_note":"get_product/get_price gather details and prices; configure_product validates an exact colour before cart creation. Pass configuration fields, not the enclosing configuration response, as items.","units":"width_mm and height_mm in millimetres; returned prices in ZAR, VAT and delivery included","item_example":{"product_id":"roller-blockout","width_mm":800,"height_mm":800,"colour":"Bedford Anthracite","mount_type":"inside","quantity":1},"customer_note":"At checkout the merged cart/customer details must contain a real name, email and South African phone. Examples are documentation only: live checkout has no safe test mode.","examples":{"search_catalog":{"query":"blockout"},"lookup_catalog":{"category":"roller"},"get_product":{"product_id":"roller-blockout"},"get_price":{"product_id":"roller-blockout","width_mm":800,"height_mm":800,"quantity":1},"configure_product":{"product_id":"roller-blockout","width_mm":800,"height_mm":800,"colour":"Bedford Anthracite","mount_type":"inside"},"create_cart":{"items":[{"product_id":"roller-blockout","width_mm":800,"height_mm":800,"colour":"Bedford Anthracite","mount_type":"inside"}]},"create_checkout":{"cart_id":"<cart_id>","customer":{"name":"<real customer name>","email":"<real customer email>","phone":"<real SA phone>"}},"complete_checkout":{"checkout_id":"<checkout_id>","payment_method":"yoco"},"get_order":{"order_id":"<checkout_id>","customer_email":"<matching real customer email>"}},"payment_note":"create_checkout writes a real unpaid order. complete_checkout can generate a link and send email; neither confirms a paid order. Retain payment_url. get_order requires order_id and matching customer_email."},"transport_contract":{"endpoint":"https://shop.customblinds.co.za/mcp","request_format":"JSON-RPC 2.0","tool_output":"result.structuredContent; identical JSON is retained in result.content[0].text for compatibility","error_output":"JSON-RPC error; not a successful tool payload","ucp_payload_note":"These are the native shop tool payload schemas. Business-profile validation does not certify runtime payloads against the separate UCP cart or checkout schemas.","output_schema_dialect":"http://json-schema.org/draft-07/schema#","checkout_test_mode":false,"checkout_warning":"Checkout creates real order records and can create payment links and emails. Do not call checkout or create_order for testing.","brochure_endpoint":"https://customblinds.co.za/wp-json/cb/v1/mcp","brochure_request_format":"Flat JSON tool invocation; read the brochure contract before calling. Do not assume JSON-RPC compatibility.","context_transfer":"Agent-mediated: retain the collected brief and pass it to shop tools. Automatic browser prefill is not implemented or certified."}}