Prepare a ClevrGo product order
clevrgo_buy_productAsk ClevrGo to prepare an order for one product the user has clearly chosen, by its reference from clevrgo_catalog_search (p1, p2). Nothing is ordered or paid by this: ClevrGo prices the product, the option, the quantity and shipping to an address the user saved in ClevrGo, says where the money goes (settlement: class A the merchant's wallet, class B the escrow contract and its hold), and answers with a summary and a confirmation id. Preparing is how you get the full total for the ONE question you ask before buying a product that is not negotiable (item, option, quantity, ship-to, total, where the money goes); a negotiable product is prepared after the user accepted the negotiated price, and needs no second question when the item, option and quantity are the same and the goods price is not higher. clevrgo_confirm then places the order and creates the payment, and gives a one-time link that only asks for the user's wallet signature. If ClevrGo lists options or addresses, ask the user which and call again. Never ask for or pass an address, phone number or card number, and do not say the product is ordered.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productRef": "<productRef>"
},
"name": "clevrgo_buy_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| option | No | Which option (size, colour ...), by the option values the search showed for it, e.g. ['Black', 'L']. Omit for a product with one option. | |
| couponId | No | A coupon from clevrgo_my_coupons, only when the user picks a particular one. Omit and ClevrGo applies the user's best coupon for this shop by itself. | |
| noCoupon | No | true when the user does not want to use a coupon on this order. | |
| quantity | No | How many. Default 1. | |
| addressRef | No | Which saved address, by the reference ClevrGo listed (e.g. 'a3fa21c'). Omit on the first request: ClevrGo uses the address the user last delivered to. | |
| productRef | Yes | The product's reference from clevrgo_catalog_search, e.g. 'p2'. |