Implementation
gradeNot graded
gradeNot graded
addToCartAction
Add a product to the shopping cart. Provide the product ID and an optional quantity (defaults to 1).
View tool JSON
{
"name": "addToCart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the shopping cart. Provide the product ID and an optional quantity (defaults to 1).",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "number",
"description": "The unique product ID to add to the cart"
},
"quantity": {
"type": "number",
"description": "Number of units to add (default: 1)"
}
},
"required": [
"productId"
]
},
"page": "/web-mcp-shopquick/"
}removeFromCartAction
Remove a product from the shopping cart by product ID.
View tool JSON
{
"name": "removeFromCart",
"kind": "act",
"impl": "imperative",
"description": "Remove a product from the shopping cart by product ID.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "number",
"description": "The product ID to remove from the cart"
}
},
"required": [
"productId"
]
},
"page": "/web-mcp-shopquick/"
}listCartAnswer
List current cart contents. Returns items with id, name, price, and quantity. Use this when the user asks what is in their cart or for a summary.
View tool JSON
{
"name": "listCart",
"kind": "answer",
"impl": "imperative",
"description": "List current cart contents. Returns items with id, name, price, and quantity. Use this when the user asks what is in their cart or for a summary.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/web-mcp-shopquick/"
}