Tool tree
gradeNot graded
page: Every page
search_productsAnswer
Search the CoShop product catalog by keyword. Matches against product name, description, and category. Returns product ids that can be used with get_product_details or add_to_cart.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search the CoShop product catalog by keyword. Matches against product name, description, and category. Returns product ids that can be used with get_product_details or add_to_cart.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Free-text search, e.g. 'running shoes' or 'rain jacket'."
}
},
"required": [
"query"
]
},
"page": "/"
}filter_productsAction
Filter the CoShop product catalog by category, price range, size, and/or color. All fields are optional and combine with AND logic.
View tool JSON
{
"name": "filter_products",
"kind": "act",
"impl": "imperative",
"description": "Filter the CoShop product catalog by category, price range, size, and/or color. All fields are optional and combine with AND logic.",
"inputSchema": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"Shoes",
"Apparel"
],
"description": "Product category to filter by."
},
"minPrice": {
"type": "number",
"description": "Minimum price in USD, inclusive."
},
"maxPrice": {
"type": "number",
"description": "Maximum price in USD, inclusive."
},
"size": {
"type": "string",
"description": "Required size, e.g. '10' or 'M'."
},
"color": {
"type": "string",
"description": "Required color, e.g. 'Black'."
}
},
"required": []
},
"page": "/"
}get_product_detailsAnswer
Get full details for a single product by id, including price, available sizes, colors, and stock. Use the id returned by search_products or filter_products.
View tool JSON
{
"name": "get_product_details",
"kind": "answer",
"impl": "imperative",
"description": "Get full details for a single product by id, including price, available sizes, colors, and stock. Use the id returned by search_products or filter_products.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "The product id."
}
},
"required": [
"productId"
]
},
"page": "/"
}compare_productsAction
Compare two or more products side by side by id. Useful when a shopper is deciding between similar items.
View tool JSON
{
"name": "compare_products",
"kind": "act",
"impl": "imperative",
"description": "Compare two or more products side by side by id. Useful when a shopper is deciding between similar items.",
"inputSchema": {
"type": "object",
"properties": {
"productIds": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 2,
"description": "Two or more product ids to compare."
}
},
"required": [
"productIds"
]
},
"page": "/"
}add_to_cartAction
Add a product to the shopping cart with a chosen size, color, and quantity. Requires a valid productId from search_products, filter_products, or get_product_details.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the shopping cart with a chosen size, color, and quantity. Requires a valid productId from search_products, filter_products, or get_product_details.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "The product id to add."
},
"size": {
"type": "string",
"description": "The size to add, must be one of the product's available sizes."
},
"color": {
"type": "string",
"description": "The color to add, must be one of the product's available colors."
},
"qty": {
"type": "number",
"minimum": 1,
"description": "Quantity to add. Defaults to 1."
}
},
"required": [
"productId",
"size",
"color"
]
},
"page": "/"
}view_cartAction
View the current shopping cart contents, subtotal, and total.
View tool JSON
{
"name": "view_cart",
"kind": "act",
"impl": "imperative",
"description": "View the current shopping cart contents, subtotal, and total.",
"inputSchema": {
"type": "object",
"properties": {},
"required": []
},
"page": "/"
}remove_from_cartAction
Remove a line item from the shopping cart. Use the itemId shown in view_cart's output, not the productId.
View tool JSON
{
"name": "remove_from_cart",
"kind": "act",
"impl": "imperative",
"description": "Remove a line item from the shopping cart. Use the itemId shown in view_cart's output, not the productId.",
"inputSchema": {
"type": "object",
"properties": {
"itemId": {
"type": "string",
"description": "The cart line item id to remove."
}
},
"required": [
"itemId"
]
},
"page": "/"
}apply_discount_codeAction
Apply a discount code to the current cart.
View tool JSON
{
"name": "apply_discount_code",
"kind": "act",
"impl": "imperative",
"description": "Apply a discount code to the current cart.",
"inputSchema": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "The discount code to apply, e.g. 'WEBMCP10'."
}
},
"required": [
"code"
]
},
"page": "/"
}checkoutSensitive Action
Prepare checkout for everything currently in the cart and hand it to the shopper for final confirmation. This does NOT place the order — a confirmation banner appears in the storefront that only the human shopper can accept or decline. The cart must not be empty. After calling this, tell the shopper their order is ready to confirm; use cancel_checkout to withdraw it instead.
View tool JSON
{
"name": "checkout",
"kind": "transact",
"impl": "imperative",
"description": "Prepare checkout for everything currently in the cart and hand it to the shopper for final confirmation. This does NOT place the order — a confirmation banner appears in the storefront that only the human shopper can accept or decline. The cart must not be empty. After calling this, tell the shopper their order is ready to confirm; use cancel_checkout to withdraw it instead.",
"inputSchema": {
"type": "object",
"properties": {},
"required": []
},
"page": "/"
}cancel_checkoutSensitive Action
Withdraw a checkout that was previously prepared with the checkout tool, before the shopper confirms it.
View tool JSON
{
"name": "cancel_checkout",
"kind": "transact",
"impl": "imperative",
"description": "Withdraw a checkout that was previously prepared with the checkout tool, before the shopper confirms it.",
"inputSchema": {
"type": "object",
"properties": {},
"required": []
},
"page": "/"
}get_order_statusAnswer
Look up the status of a previously placed order by its order id.
View tool JSON
{
"name": "get_order_status",
"kind": "answer",
"impl": "imperative",
"description": "Look up the status of a previously placed order by its order id.",
"inputSchema": {
"type": "object",
"properties": {
"orderId": {
"type": "string",
"description": "The order id returned by checkout."
}
},
"required": [
"orderId"
]
},
"page": "/"
}