{"version":1,"tools":[{"name":"search_products","description":"Search the shop catalogue. Give words (query), a category, a maximum price in cents or only products in stock. Returns up to 8 products (id, name, price_formatted, available, summary, options such as colour or size) and answer_kind: exact (they match), relaxed or related (NOT exact: only the closest, say so), shop (a question about the shop, see shop_answer) or none (nothing matches: say so, never offer unrelated products).","inputSchema":{"type":"object","properties":{"query":{"type":"string","maxLength":120,"description":"What to look for: the customer's words or, for a vague need, a product type or synonym of your own that fits"},"limit":{"type":"integer","minimum":1,"maximum":8,"default":5,"description":"How many products to return, from 1 to 8"},"category_id":{"type":"integer","minimum":1,"description":"Only products of this category (see list_categories)"},"max_price_cents":{"type":"integer","minimum":1,"maximum":100000000,"description":"Maximum price in cents: 5000 means 50.00"},"in_stock_only":{"type":"boolean","default":false,"description":"true: only products that can be bought now"}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/search_products"},{"name":"get_product","description":"Everything the shop says about one product: description in plain text, key facts, the options (colour, size) with their available values, variants with price and availability, delivery time and frequently asked questions. Call it whenever the customer asks about a product (\"tell me about it\", \"what is it\", \"features\") and answer with what it says.","inputSchema":{"type":"object","properties":{"id":{"type":"integer","minimum":1,"description":"The id of the product, from search_products"}},"additionalProperties":false,"required":["id"]},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/get_product"},{"name":"compare_products","description":"Compare 2 to 4 products side by side: for each one its price, availability, summary and key attributes, plus the attributes in which they differ. Use it when the customer asks to compare products or which one to choose, and state only what its fields say (price, stock and the listed differences), never adjectives of your own.","inputSchema":{"type":"object","properties":{"ids":{"type":"array","minItems":2,"maxItems":4,"items":{"type":"integer","minimum":1}}},"additionalProperties":false,"required":["ids"]},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/compare_products"},{"name":"list_categories","description":"The product categories of the shop with their sub-categories (what the shop sells), and popular: the categories of the best sellers, first the one that sells most.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/list_categories"},{"name":"check_availability","description":"Whether a product (or one of its variants) can be bought in a given quantity right now, and what that quantity costs: unit_price and total (unit price × quantity, calculated by the shop). When the customer asks how much several units cost, call it with that qty and say its total: never multiply yourself.","inputSchema":{"type":"object","properties":{"product_id":{"type":"integer","minimum":1,"description":"The id of the product, from search_products"},"variant_id":{"type":"integer","minimum":0,"default":0,"description":"The id of the variant (colour, size…), from get_product; 0 for a product without variants"},"qty":{"type":"integer","minimum":1,"maximum":999,"default":1,"description":"How many units"}},"additionalProperties":false,"required":["product_id"]},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/check_availability"},{"name":"shipping_quote","description":"Delivery options, prices and times to a destination. Give the postcode (and the 2-letter country if it is not the shop's own). Quotes the product given, or the current cart when no product is given.","inputSchema":{"type":"object","properties":{"country":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 code, for example ES"},"postcode":{"type":"string","maxLength":12,"description":"The postcode of the delivery address"},"product_id":{"type":"integer","minimum":1,"description":"The id of the product, from search_products"},"variant_id":{"type":"integer","minimum":0,"default":0,"description":"The id of the variant (colour, size…), from get_product; 0 for a product without variants"},"qty":{"type":"integer","minimum":1,"maximum":999,"default":1,"description":"How many units"}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/shipping_quote"},{"name":"store_info","description":"About the shop itself and its policies: what the shop is and sells in its own words (about), returns (the deadline and the text of the returns page, with its link), shipping and terms pages, accepted payment methods, how the invoice reaches the customer (invoices), contact details and opening hours. Call it for any question about the shop that is not about a product. Say you do not know only when this returns nothing for the topic.","inputSchema":{"type":"object","properties":{"topic":{"type":"string","enum":["all","about","returns","shipping","terms","payment","contact","hours"],"default":"all","description":"What to tell about the shop; all gives everything"}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/store_info"},{"name":"cart_view","description":"The customer's cart: lines, quantities, prices and totals, as the shop calculates them.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/cart_view"},{"name":"cart_add","description":"Add units of a product to the customer's cart. The price is always the shop's own; it cannot be given. A product with variants needs its variant_id: without it you get need=options with the choices (the shop shows them as buttons): ask which one the customer wants and call again with that variant_id. If the product is already in the cart it returns already_in_cart and adds nothing (unless the customer asked for more in this message): to change how many there are, use cart_update with the exact number.","inputSchema":{"type":"object","properties":{"product_id":{"type":"integer","minimum":1,"description":"The id of the product, from search_products"},"variant_id":{"type":"integer","minimum":0,"default":0,"description":"The id of the variant (colour, size…), from get_product; 0 for a product without variants"},"qty":{"type":"integer","minimum":1,"maximum":99,"default":1,"description":"How many units to add"}},"additionalProperties":false,"required":["product_id"]},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/cart_add"},{"name":"cart_update","description":"Change the quantity of a cart line (the key comes from cart_view). Quantity 0 removes the line.","inputSchema":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80,"description":"The key of the cart line, from cart_view"},"qty":{"type":"integer","minimum":0,"maximum":99,"description":"The new number of units; 0 removes the line"}},"additionalProperties":false,"required":["key","qty"]},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/cart_update"},{"name":"checkout_link","description":"The address of the checkout page with the customer's cart, where they review and pay. Payment always happens there.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/checkout_link"},{"name":"order_status","description":"Status, shipping and tracking of an order (never its address, name or other personal data). Needs the order number and the email used in the order; if they do not match an order nothing is revealed. The personal data of an order are only shown in My account to whoever is signed in with that account: never ask for an email to show them.","inputSchema":{"type":"object","properties":{"number":{"type":"string","minLength":3,"maxLength":32},"email":{"type":"string","minLength":5,"maxLength":191}},"additionalProperties":false,"required":["number","email"]},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/order_status"},{"name":"checkout_status","description":"Where the purchase is: what is still missing (contact, address, shipping, payment, in the order to ask for it), the cart summary and what is already saved. Personal data come masked. Call it before asking the customer anything about their order.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/checkout_status"},{"name":"checkout_set_customer","description":"Save the customer's details for this order. Pass every detail in its OWN field, already separated: first_name, last_name, email, phone, line1 (street and number), line2 (floor and door), postcode, city, region, country, company and vat_id. Put only the value in each field, never the label or the sentence around it. Use text only as a last resort, when you cannot tell the details apart. It saves what is valid and returns what it understood, what is wrong and what is still missing. Never invent a value: ask for what was not said.","inputSchema":{"type":"object","properties":{"text":{"type":"string","maxLength":2000,"description":"ONLY if you cannot separate the details into the fields: what the customer wrote about themselves, exactly as they wrote it. When you pass any separate field, text is ignored."},"email":{"type":"string","maxLength":191,"description":"The email address, nothing else. Only if the customer gave it."},"first_name":{"type":"string","maxLength":80,"description":"The first name of the person, nothing else. Never a greeting, a yes or a label: \"Yes\", \"Ok\", \"Hello\", \"Address\" or \"Name\" are not names. Only if the customer gave it."},"last_name":{"type":"string","maxLength":120,"description":"The surname or surnames, nothing else. Only if the customer gave it."},"company":{"type":"string","maxLength":160,"description":"The company name ONLY when a company buys and needs the invoice in its name (\"Invoice to company X\", \"Factura a nombre de X\"); then vat_id is required too. The name of an office, hotel or association where the parcel is just delivered goes in line2, not here. Send \"\" to remove a company saved before. Only if the customer gave it."},"vat_id":{"type":"string","maxLength":40,"description":"The tax or VAT ID exactly as given (keep a country prefix such as \"ES\"), without the label. Only if the customer gave it."},"phone":{"type":"string","maxLength":40,"description":"The phone number, digits and an optional + prefix. Only if the customer gave it."},"line1":{"type":"string","maxLength":191,"description":"Street and number only (\"Calle Mayor 1\", \"Carrer de l'Exemple 9\"), without the word \"address\", the floor or the postcode. Only if the customer gave it."},"line2":{"type":"string","maxLength":191,"description":"Floor, door or staircase only (\"3º A\", \"2n 1a\", \"bajo\"), if given. Only if the customer gave it."},"postcode":{"type":"string","maxLength":16,"description":"The postcode only. Only if the customer gave it."},"city":{"type":"string","maxLength":100,"description":"The city or town only. Only if the customer gave it."},"region":{"type":"string","maxLength":16,"description":"The province or region, only if given. Only if the customer gave it."},"country":{"type":"string","maxLength":2,"description":"ISO 3166-1 alpha-2 code (\"ES\" for Spain). Only if the customer gave it."},"address_id":{"type":"integer","minimum":0,"description":"One of the saved_addresses ids of checkout_status (customers with an account)"},"note":{"type":"string","maxLength":500,"description":"A note for the order, only if the customer asked for one"}},"additionalProperties":false},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/checkout_set_customer"},{"name":"checkout_shipping_options","description":"The delivery options for the order with their price and delay, and the one selected. Needs the delivery address first.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/checkout_shipping_options"},{"name":"checkout_set_shipping","description":"Choose the delivery option (carrier_id from checkout_shipping_options).","inputSchema":{"type":"object","properties":{"carrier_id":{"type":"integer","minimum":1,"description":"The id of the delivery option, from checkout_shipping_options"}},"additionalProperties":false,"required":["carrier_id"]},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/checkout_set_shipping"},{"name":"checkout_payment_options","description":"The payment methods offered for the order, with their kind (offline: transfer or cash on delivery; redirect: paid online) and any fee, and the one selected.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/checkout_payment_options"},{"name":"checkout_set_payment","description":"Choose the payment method (method = the id from checkout_payment_options).","inputSchema":{"type":"object","properties":{"method":{"type":"string","minLength":1,"maxLength":40,"description":"The id of the payment method, from checkout_payment_options"}},"additionalProperties":false,"required":["method"]},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/checkout_set_payment"},{"name":"checkout_review","description":"The exact order that would be placed: lines, discounts, shipping, taxes, the total (in cents and formatted), the delivery address and the payment method. The shop shows the customer a summary with a Confirm button and the conversation waits for their confirmation. Read the total from here: never calculate it. If something is missing it says what.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"readOnlyHint":false},"endpoint":"/webmcp/call/checkout_review"},{"name":"return_options","description":"What can be returned from an order and until when (returns and the right of withdrawal), with the link to the return form. Needs the order number and the email used in the order; if they do not match an order nothing is revealed.","inputSchema":{"type":"object","properties":{"number":{"type":"string","minLength":3,"maxLength":32},"email":{"type":"string","minLength":5,"maxLength":191}},"required":["number","email"],"additionalProperties":false},"annotations":{"readOnlyHint":true},"endpoint":"/webmcp/call/return_options"}]}