Tool tree
Storefront and synthetic-order application.
Implementation
gradeNot graded
gradeNot graded
search_productsAnswer
Searches the catalog and visibly displays matching products.
View tool JSON
{
"name": "search_products",
"kind": "answer",
"impl": "imperative",
"description": "Searches the catalog and visibly displays matching products.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Product text to match against the catalog."
}
},
"required": [
"query"
]
}
}select_resultAction
Selects one product from the current search results.
View tool JSON
{
"name": "select_result",
"kind": "act",
"impl": "imperative",
"description": "Selects one product from the current search results.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"source": {}
},
"required": [
"source"
],
"additionalProperties": false
}
}open_productAction
Opens a product record on this page.
View tool JSON
{
"name": "open_product",
"kind": "act",
"impl": "imperative",
"description": "Opens a product record on this page.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Product id resolved from an earlier selected snapshot."
}
},
"required": [
"id"
]
}
}open_product_by_idAction
Opens a product record using an explicit product id.
View tool JSON
{
"name": "open_product_by_id",
"kind": "act",
"impl": "imperative",
"description": "Opens a product record using an explicit product id.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Product id resolved from an earlier selected snapshot."
}
},
"required": [
"id"
]
}
}create_productAction
Fills a new product form. A human must click Create; this tool does not submit the write itself.
View tool JSON
{
"name": "create_product",
"kind": "act",
"impl": "imperative",
"description": "Fills a new product form. A human must click Create; this tool does not submit the write itself.",
"inputSchema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Product name."
},
"description": {
"type": "string",
"description": "Product description."
},
"priceUsd": {
"type": "number",
"description": "Price in USD, whole dollars."
}
},
"required": [
"name",
"description",
"priceUsd"
]
}
}