setShippingMethod
Choose a shipping method on the agent cart. Call listShippingMethods first and pass its code. For a quoted method, also pass quote_key. Write tool.
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": {
"cart_token": "<cart_token>",
"shipping_method": "<shipping_method>"
},
"name": "setShippingMethod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_key | No | Quote key from that method quotes list, when the method returns quotes. | |
| cart_token | Yes | Cart token from createCart. Required on every later cart call. | |
| shipping_method | Yes | Method code from listShippingMethods. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. The HTTP status stays 200. |