Validate Shopping Cart & Quote Shipping
validate_cartUse before checkout to verify selected product IDs and quantities against live inventory and prices. Returns validated line items, 15% VAT-inclusive SAR subtotal, shipping fee, grand total, and the checkout handoff URL.
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": {
"items": "<items>"
},
"name": "validate_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Cart line items to validate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| structuredContent | No |