Place a buy order (draft)
place_buy_orderCreate a buy order for one product with a maximum price and a deadline, on behalf of the person. The order starts as a draft and is NOT in the order book yet: give the person the returned confirm_url so they can confirm it with their email address. Nothing is purchased or charged; when the price is met the person is emailed and decides whether to buy at the store. Only call this after the person has stated the product, the maximum price and how long they are willing to wait. For someone in a hurry a deadline of one or two days is fine; if a store already sells at or below the maximum, the offer is emailed right after confirmation.
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": {
"product_id": "<product_id>",
"max_price_usd": "<max_price_usd>",
"deadline": "<deadline>"
},
"name": "place_buy_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deadline | Yes | Last day the order stays open: a date (YYYY-MM-DD, kept until the end of that day UTC) or an ISO 8601 date-time. Up to 180 days ahead. | |
| product_id | Yes | The product_id returned by find_product. | |
| memberships | No | Warehouse clubs the person is a member of. Their posted prices are member prices: for members they count as posted; for others Costco adds 5% and Sam's Club 10% online, and BJ's sells online to members only. Ask before setting it. | |
| max_price_usd | Yes | The most the person will pay, in US dollars, for the item plus shipping, before sales tax. Example: 1299. | |
| authorized_only | No | Only accept manufacturer-authorized resellers. Default true. | |
| excluded_merchants | No | Store domains the person refuses, for example ["store.com"]. | |
| ship_to_postal_code | No | US ZIP code for delivery, if the person gave one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| product | Yes | ||
| deadline | Yes | ||
| order_id | Yes | ||
| next_step | Yes | ||
| confirm_by | Yes | ||
| manage_url | Yes | Private page where the person can see and cancel the order. | |
| access_code | Yes | Secret needed by get_buy_order and cancel_buy_order for this order. Keep it for the rest of the conversation; do not show it unless asked. | |
| confirm_url | Yes | Present while status is "draft": the page where the person confirms the order. | |
| memberships | Yes | Warehouse clubs the person belongs to: their prices count at the member price. | |
| close_reason | Yes | ||
| max_price_usd | Yes | ||
| missed_offers | Yes | ||
| pending_offer | Yes | ||
| authorized_only | Yes | ||
| would_match_now | Yes | True when a store this order accepts already sells at or below the maximum: the person will be emailed an offer right after confirming. | |
| awaiting_email_click | Yes | True when the person entered an email address but has not yet clicked the verification link. | |
| best_public_price_usd | Yes | Lowest public price currently known for this product that anyone can pay (warehouse clubs at their non-member price), if any. | |
| best_accepted_store_price_usd | Yes | Lowest current price among the stores this order accepts (authorized for the brand unless authorized_only is false). Null when none is known. |