Implementation
gradeNot graded
gradeNot graded
search_productsAnswer
Search the store catalog by keyword. Read-only; runs immediately.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search the store catalog by keyword. Read-only; runs immediately.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "keyword, e.g. 'milk'"
}
},
"required": [
"query"
]
}
}review_cartAction
List the current cart contents and total. Read-only; runs immediately.
View tool JSON
{
"name": "review_cart",
"kind": "act",
"impl": "imperative",
"description": "List the current cart contents and total. Read-only; runs immediately.",
"inputSchema": {
"type": "object",
"properties": {}
}
}add_to_cartAction
Propose adding a product to the cart. Requires the user to confirm on screen before it takes effect — it does NOT add immediately.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Propose adding a product to the cart. Requires the user to confirm on screen before it takes effect — it does NOT add immediately.",
"inputSchema": {
"type": "object",
"properties": {
"product_id": {
"type": "string",
"description": "catalog id, e.g. 'oat-milk'"
},
"qty": {
"type": "integer",
"description": "quantity, default 1"
}
},
"required": [
"product_id"
]
}
}remove_from_cartAction
Propose removing a product from the cart. Requires the user to confirm on screen before it takes effect.
View tool JSON
{
"name": "remove_from_cart",
"kind": "act",
"impl": "imperative",
"description": "Propose removing a product from the cart. Requires the user to confirm on screen before it takes effect.",
"inputSchema": {
"type": "object",
"properties": {
"product_id": {
"type": "string",
"description": "catalog id to remove"
}
},
"required": [
"product_id"
]
}
}checkoutSensitive Action
Propose placing the order (mock — no real payment). Requires an explicit user confirmation on screen; highest-stakes action.
View tool JSON
{
"name": "checkout",
"kind": "transact",
"impl": "imperative",
"description": "Propose placing the order (mock — no real payment). Requires an explicit user confirmation on screen; highest-stakes action.",
"inputSchema": {
"type": "object",
"properties": {}
}
}