Prepare domain purchase
prepare_domain_purchasePrepares the purchase of an AVAILABLE domain for this customer and returns a checkout link: the domain is priced and placed in a cart on their Squish account, and the link opens the normal checkout where the customer (or whoever they send the link to) pays with their card. No money moves when this tool runs. Two-step: (1) call with confirm:false — the preview is the quote: whether the name is available, the first-year price, the renewal price, the term. Relay it and ask for an explicit yes. (2) ONLY after an explicit yes in their most recent message, call with confirm:true to create the cart and get the link; the link is valid for 30 days and the cart also appears in their dashboard. Use when the customer asks to buy or register a domain through an outside assistant, or wants a payment link for a domain. For a name that is taken, use search_domains to find alternatives instead.
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": {
"domain": "<domain>"
},
"name": "prepare_domain_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | Registration term in years, 1–10. Default 1. | |
| domain | Yes | The exact domain to register, e.g. "example.com". | |
| confirm | No | false (default) returns the quote; true creates the cart and the checkout link. Pass true ONLY after explicit user confirmation. |