createCart
Create an empty guest cart for agent checkout. Returns cart_token. Optional country sets presentment currency (GB→GBP, US→USD, AU/NZ→AUD, else EUR/USD rules). Write tool — confirm with the buyer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "createCart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Shop locale, default en_US. | |
| country | No | Buyer ship-to country ISO-2 (sets currency). | |
| agent_source | No | Agent channel for UTM (utm_source). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. The HTTP status stays 200. |