Implementation
gradeNot graded
gradeNot graded
page: Every page
search_productsAnswer
Search the live Saleor catalog for in-stock variants. Returns exact variant IDs and current prices needed by add_to_cart.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search the live Saleor catalog for in-stock variants. Returns exact variant IDs and current prices needed by add_to_cart.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 100,
"description": "Product words, such as juice or shoes."
},
"maxPrice": {
"type": "number",
"minimum": 0,
"description": "Optional maximum unit price."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 12,
"default": 6
}
},
"additionalProperties": false
},
"page": "/en/default"
}inspect_cartAnswer
Read the current Saleor cart, including exact lines, quantities, and authoritative total.
View tool JSON
{
"name": "inspect_cart",
"kind": "answer",
"impl": "imperative",
"description": "Read the current Saleor cart, including exact lines, quantities, and authoritative total.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/en/default"
}add_to_cartAction
Ensure one searched Saleor variant is in the cart. Supply the exact price returned by search_products. Repeating the same call does not increment an existing line.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Ensure one searched Saleor variant is in the cart. Supply the exact price returned by search_products. Repeating the same call does not increment an existing line.",
"inputSchema": {
"type": "object",
"properties": {
"variantId": {
"type": "string",
"minLength": 1,
"description": "Exact Saleor variant ID from search_products."
},
"expectedUnitPrice": {
"type": "number",
"minimum": 0,
"description": "Exact unit price from search_products."
},
"expectedCurrency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Three-letter currency from search_products."
}
},
"required": [
"variantId",
"expectedUnitPrice",
"expectedCurrency"
],
"additionalProperties": false
},
"page": "/en/default"
}begin_checkoutSensitive Action
Verify that the Saleor cart is non-empty and open checkout. The page will then expose five checkout-specific tools.
View tool JSON
{
"name": "begin_checkout",
"kind": "transact",
"impl": "imperative",
"description": "Verify that the Saleor cart is non-empty and open checkout. The page will then expose five checkout-specific tools.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/en/default"
}