Implementation
gradeNot graded
gradeNot graded
search_productsAnswer
Search the live Northstar catalog by keyword and optional category.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search the live Northstar catalog by keyword and optional category.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Words to match against product names or categories."
},
"category": {
"type": "string",
"enum": [
"all",
"footwear",
"apparel",
"accessories"
],
"description": "Optional catalog category."
}
},
"required": [
"query"
]
},
"page": "/store/"
}get_productAnswer
Get full current details and availability for a product by its ID.
View tool JSON
{
"name": "get_product",
"kind": "answer",
"impl": "imperative",
"description": "Get full current details and availability for a product by its ID.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "Product ID, for example black-running-shoes."
}
},
"required": [
"productId"
]
},
"page": "/store/"
}check_inventoryAnswer
Check the current inventory count and availability for a product.
View tool JSON
{
"name": "check_inventory",
"kind": "answer",
"impl": "imperative",
"description": "Check the current inventory count and availability for a product.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "Product ID to check."
}
},
"required": [
"productId"
]
},
"page": "/store/"
}add_to_cartAction
Add an in-stock product to the shopper cart. This changes cart state and requires customer confirmation.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Add an in-stock product to the shopper cart. This changes cart state and requires customer confirmation.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "Product ID, for example black-running-shoes."
},
"quantity": {
"type": "integer",
"minimum": 1,
"description": "Number of units to add. Defaults to 1."
}
},
"required": [
"productId"
]
},
"page": "/store/"
}