Implementation
gradeNot graded
gradeNot graded
search_ordersAnswer
Search this account's orders. Returns { orders: [{ id, customer, customerId, status, amount, currency, placedAt, promisedAt, daysLate, items }], count }. Statuses are open, shipped, delivered, delayed, cancelled. There is no amount filter — filter on amount yourself.
View tool JSON
{
"name": "search_orders",
"kind": "answer",
"impl": "imperative",
"description": "Search this account's orders. Returns { orders: [{ id, customer, customerId, status, amount, currency, placedAt, promisedAt, daysLate, items }], count }. Statuses are open, shipped, delivered, delayed, cancelled. There is no amount filter — filter on amount yourself.",
"inputSchema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"open",
"shipped",
"delivered",
"delayed",
"cancelled"
],
"description": "Only return orders with this status"
},
"customer": {
"type": "string",
"description": "Match part of the customer name"
},
"limit": {
"type": "number",
"description": "Maximum number of orders to return"
}
},
"required": []
}
}get_orderAnswer
Get one order by its id, including line items and the customer id.
View tool JSON
{
"name": "get_order",
"kind": "answer",
"impl": "imperative",
"description": "Get one order by its id, including line items and the customer id.",
"inputSchema": {
"type": "object",
"properties": {
"orderId": {
"type": "string",
"description": "Order id such as SO-4801"
}
},
"required": [
"orderId"
]
}
}get_customerAnswer
Get a customer by id. Returns { id, name, email, tier, manager, orderCount, totalValue }.
View tool JSON
{
"name": "get_customer",
"kind": "answer",
"impl": "imperative",
"description": "Get a customer by id. Returns { id, name, email, tier, manager, orderCount, totalValue }.",
"inputSchema": {
"type": "object",
"properties": {
"customerId": {
"type": "string",
"description": "Customer id such as C-101"
}
},
"required": [
"customerId"
]
}
}