Calculate Kash cart
calculate_cartGet an itemized quote and VAT totals from the connected Kash shop before checkout. Does not create a sale or reserve stock.
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": {
"lines": "<lines>"
},
"name": "calculate_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| context | No | Defaults to on_premises. Kash can reject contexts it cannot quote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | ||
| taxes | Yes | ||
| totals | Yes | ||
| context | Yes | ||
| currency | Yes | ||
| pricing_scale | Yes |