shopping cart create
shopping_cart_createCreate a merchant cart after the buyer/operator confirms selected variants.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | No | Optional buyer contact summary for cart creation; never include payment data. | |
| context | No | Optional buyer/search context for catalog, cart, or checkout tools. | |
| agent_id | Yes | Registered UCP Gateway UUID returned by register_ucp_profile; required for every Shopping tool. | |
| line_items | Yes | Selected provider variant line items confirmed by the buyer/operator. | |
| merchant_domain | Yes | Merchant host such as 'outboundpower.com' or 'example.myshopify.com'. Do not include a URL scheme, localhost, private IP, file URL, or ftp URL. | |
| client_action_id | No | Optional UUID generated once for an explicit buyer/operator-confirmed cart or checkout mutation. Reuse only when retrying the same confirmed action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True for successful tool execution; false for structured tool errors. | |
| raw | No | Redacted raw provider or registry payload for debugging. Shape may vary by upstream endpoint. | |
| cart | No | Safe provider cart summary including id, status, continue_url, totals, line_items, and messages when provided. | |
| error | No | Structured tool error. | |
| message | Yes | Human-readable result summary or recovery message. | |
| next_step | Yes | Recommended next step. Suggestions are non-binding and never authorize payment or state-changing actions. | |
| merchant_domain | No | Resolved merchant domain. | |
| commerce_session_id | No | Internal gateway commerce session UUID when one was created. |