Tool tree
mdg_add_to_cartAction
Add a purchasable simple B2C product to the current visitor basket. This changes the basket but does not start checkout or place an order.
View tool JSON
{
"name": "mdg_add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a purchasable simple B2C product to the current visitor basket. This changes the basket but does not start checkout or place an order.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "integer",
"minimum": 1
},
"quantity": {
"type": "number",
"minimum": 1,
"maximum": 9999,
"default": 1
}
},
"required": [
"productId"
],
"additionalProperties": false
},
"page": "/en/"
}mdg_get_cartAnswer
Return the current visitor basket, including item keys and product IDs needed to update quantities. This does not change the basket.
View tool JSON
{
"name": "mdg_get_cart",
"kind": "answer",
"impl": "imperative",
"description": "Return the current visitor basket, including item keys and product IDs needed to update quantities. This does not change the basket.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/en/"
}mdg_get_page_contextAnswer
Return the current Maison del Gusto page type, locale, URLs, and current product ID when on a product page.
View tool JSON
{
"name": "mdg_get_page_context",
"kind": "answer",
"impl": "imperative",
"description": "Return the current Maison del Gusto page type, locale, URLs, and current product ID when on a product page.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/en/"
}mdg_get_productAnswer
Return details for a B2C product ID. On a product page, productId may be omitted to use the visible product.
View tool JSON
{
"name": "mdg_get_product",
"kind": "answer",
"impl": "imperative",
"description": "Return details for a B2C product ID. On a product page, productId may be omitted to use the visible product.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "integer",
"minimum": 1
}
},
"additionalProperties": false
},
"page": "/en/"
}mdg_open_checkoutAction
Open the normal Maison del Gusto checkout for the current non-empty basket. The customer must review checkout details and complete payment in the visible WooCommerce interface; this tool never places an order.
View tool JSON
{
"name": "mdg_open_checkout",
"kind": "act",
"impl": "imperative",
"description": "Open the normal Maison del Gusto checkout for the current non-empty basket. The customer must review checkout details and complete payment in the visible WooCommerce interface; this tool never places an order.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/en/"
}mdg_search_productsAnswer
Search the public Maison del Gusto B2C catalogue. An empty query browses the first available products. Results include IDs, prices, availability, and product URLs.
View tool JSON
{
"name": "mdg_search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search the public Maison del Gusto B2C catalogue. An empty query browses the first available products. Results include IDs, prices, availability, and product URLs.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 120,
"description": "Product, ingredient, category, or supplier search text. May be empty to browse."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 8,
"default": 6
}
},
"additionalProperties": false
},
"page": "/en/"
}mdg_set_cart_item_quantityAction
Set the quantity of an existing basket line. Use mdg_get_cart first for cartItemKey and productId. Set quantity to 0 to remove the line. This changes the basket but does not place an order.
View tool JSON
{
"name": "mdg_set_cart_item_quantity",
"kind": "act",
"impl": "imperative",
"description": "Set the quantity of an existing basket line. Use mdg_get_cart first for cartItemKey and productId. Set quantity to 0 to remove the line. This changes the basket but does not place an order.",
"inputSchema": {
"type": "object",
"properties": {
"cartItemKey": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"productId": {
"type": "integer",
"minimum": 1
},
"quantity": {
"type": "number",
"minimum": 0,
"maximum": 9999
}
},
"required": [
"cartItemKey",
"productId",
"quantity"
],
"additionalProperties": false
},
"page": "/en/"
}