Implementation
gradeNot graded
gradeNot graded
get_budgetAnswer
Return the current purchasing budget, remaining funds, maximum purchase limit and approval threshold.
View tool JSON
{
"name": "get_budget",
"kind": "answer",
"impl": "imperative",
"description": "Return the current purchasing budget, remaining funds, maximum purchase limit and approval threshold.",
"inputSchema": {
"type": "object",
"properties": {}
}
}search_catalogAnswer
Search the available purchasing catalog for products matching the user's request.
View tool JSON
{
"name": "search_catalog",
"kind": "answer",
"impl": "imperative",
"description": "Search the available purchasing catalog for products matching the user's request.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"maxPrice": {
"type": "number"
},
"category": {
"type": "string"
}
},
"required": [
"query"
]
}
}compare_optionsAction
Compare multiple products and return the best value recommendation.
View tool JSON
{
"name": "compare_options",
"kind": "act",
"impl": "imperative",
"description": "Compare multiple products and return the best value recommendation.",
"inputSchema": {
"type": "object",
"properties": {
"productIds": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"productIds"
]
}
}check_policyAnswer
Check whether a proposed purchase is allowed under the user's purchasing rules.
View tool JSON
{
"name": "check_policy",
"kind": "answer",
"impl": "imperative",
"description": "Check whether a proposed purchase is allowed under the user's purchasing rules.",
"inputSchema": {
"type": "object",
"properties": {
"price": {
"type": "number"
},
"category": {
"type": "string"
},
"productId": {
"type": "string"
}
},
"required": [
"price"
]
}
}create_proposalAction
Create a purchase proposal for human review. This does NOT purchase anything.
View tool JSON
{
"name": "create_proposal",
"kind": "act",
"impl": "imperative",
"description": "Create a purchase proposal for human review. This does NOT purchase anything.",
"inputSchema": {
"type": "object",
"properties": {
"productId": {
"type": "string"
},
"reason": {
"type": "string"
},
"quantity": {
"type": "number",
"default": 1
}
},
"required": [
"productId",
"reason"
]
}
}approve_proposalAction
Approve an existing purchase proposal after human review.
View tool JSON
{
"name": "approve_proposal",
"kind": "act",
"impl": "imperative",
"description": "Approve an existing purchase proposal after human review.",
"inputSchema": {
"type": "object",
"properties": {
"proposalId": {
"type": "string"
}
},
"required": [
"proposalId"
]
}
}