Implementation
gradeNot graded
gradeNot graded
search_productsAnswer
Search AgentCart products by keyword and optional category.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Search AgentCart products by keyword and optional category.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search keyword."
},
"category": {
"type": "string",
"description": "Optional product category such as Laptop, Phone, Audio or Monitor."
}
},
"required": [
"query"
]
}
}filter_productsAction
Filter products by category, maximum price, minimum rating and minimum stock.
View tool JSON
{
"name": "filter_products",
"kind": "act",
"impl": "imperative",
"description": "Filter products by category, maximum price, minimum rating and minimum stock.",
"inputSchema": {
"type": "object",
"properties": {
"productIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional product IDs to filter."
},
"category": {
"type": "string",
"description": "Optional category such as Laptop, Phone, Audio or Monitor."
},
"maxPrice": {
"type": "number",
"description": "Maximum product price in INR."
},
"minRating": {
"type": "number",
"description": "Minimum product rating."
},
"minStock": {
"type": "number",
"description": "Minimum available stock."
}
},
"required": []
}
}get_product_detailsAnswer
Inspect complete specifications, features, stock and offers for a product.
View tool JSON
{
"name": "get_product_details",
"kind": "answer",
"impl": "imperative",
"description": "Inspect complete specifications, features, stock and offers for a product.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "The product ID."
}
},
"required": [
"productId"
]
}
}compare_productsAction
Compare selected products on price, performance, battery, rating and value.
View tool JSON
{
"name": "compare_products",
"kind": "act",
"impl": "imperative",
"description": "Compare selected products on price, performance, battery, rating and value.",
"inputSchema": {
"type": "object",
"properties": {
"productIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Product IDs to compare."
}
},
"required": [
"productIds"
]
}
}find_best_offerAnswer
Find the strongest available discount across selected products.
View tool JSON
{
"name": "find_best_offer",
"kind": "answer",
"impl": "imperative",
"description": "Find the strongest available discount across selected products.",
"inputSchema": {
"type": "object",
"properties": {
"productIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Product IDs to check for offers."
}
},
"required": [
"productIds"
]
}
}add_to_cartAction
Prepare a product in the shopping cart. This does not purchase the product.
View tool JSON
{
"name": "add_to_cart",
"kind": "act",
"impl": "imperative",
"description": "Prepare a product in the shopping cart. This does not purchase the product.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string",
"description": "The product ID to add."
}
},
"required": [
"productId"
]
}
}calculate_cart_totalAction
Calculate the current cart subtotal, offer savings and final total.
View tool JSON
{
"name": "calculate_cart_total",
"kind": "act",
"impl": "imperative",
"description": "Calculate the current cart subtotal, offer savings and final total.",
"inputSchema": {
"type": "object",
"properties": {
"offer": {
"type": "number",
"description": "Optional savings amount."
}
},
"required": []
}
}request_purchase_approvalSensitive Action
Ask the human to approve the prepared purchase. This never charges money.
View tool JSON
{
"name": "request_purchase_approval",
"kind": "transact",
"impl": "imperative",
"description": "Ask the human to approve the prepared purchase. This never charges money.",
"inputSchema": {
"type": "object",
"properties": {
"productIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Products prepared for purchase."
},
"offer": {
"type": "number",
"description": "Savings amount to apply."
}
},
"required": [
"productIds"
]
}
}