get_cart
Retrieve a specific cart by its ID to view line items and exact integer-yen totals, matching the store's cart page calculations.
Instructions
Get one of your carts by cart_id: its lines and totals in integer yen, computed exactly as the store's cart page computes them.
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_id": "<cart_id>"
},
"name": "get_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | The cart handle, from `create_cart`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The cart's lines, in cart order. | |
| cart_id | Yes | The cart handle. | |
| total_yen | Yes | Grand total in yen: subtotal plus shipping. | |
| item_count | Yes | Total units across all lines. | |
| shipping_yen | Yes | Shipping fee in yen (free at the store's threshold). | |
| subtotal_yen | Yes | Sum of purchasable line totals, in yen. |