add_items_to_cart
Add a single item to a Kroger cart with quantity and pickup/delivery option, tracking it locally for the user's order.
Instructions
Add a single item to the user's Kroger cart and track it locally.
If the user doesn't specifically indicate a preference for pickup or delivery, you should ask them which modality they prefer before calling this 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": {
"product_id": "<product_id>"
},
"name": "add_items_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modality | No | How the order will be fulfilled: PICKUP or DELIVERY (uppercase) | PICKUP |
| quantity | No | Quantity to add, 1 or more | |
| product_id | Yes | 13-digit productId or UPC, for example 0001111041700. Get one from search_products. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||