Implementation
gradeNot graded
gradeNot graded
add_to_cartAction
Add a product to the shopping cart
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the shopping cart",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "Product ID"
},
"name": {
"type": "string",
"description": "Product name"
},
"price": {
"type": "number",
"description": "Product price"
},
"quantity": {
"type": "number",
"description": "Quantity (default 1)"
}
},
"required": [
"productId",
"name",
"price"
]
},
"page": "/mcpweb/"
}remove_from_cartAction
Remove a product from the shopping cart
View tool JSON
{
"name": "remove_from_cart",
"kind": "act",
"impl": "imperative",
"description": "Remove a product from the shopping cart",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "Product ID to remove"
}
},
"required": [
"productId"
]
},
"page": "/mcpweb/"
}get_cartAnswer
Get current cart contents
View tool JSON
{
"name": "get_cart",
"kind": "answer",
"impl": "imperative",
"description": "Get current cart contents",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/mcpweb/"
}clear_cartAction
Clear all items from cart
View tool JSON
{
"name": "clear_cart",
"kind": "act",
"impl": "imperative",
"description": "Clear all items from cart",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/mcpweb/"
}get_cart_totalAnswer
Get cart total price and item count
View tool JSON
{
"name": "get_cart_total",
"kind": "answer",
"impl": "imperative",
"description": "Get cart total price and item count",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/mcpweb/"
}