Agent Forge

Shopify Agent

Agentic commerce with Shopify Universal Commerce Protocol via MCP

Shopify Universal Commerce Protocol (UCP) exposes agentic commerce flows through MCP tools for catalog search, cart management, checkout, and order lookup.

In Agent Forge, the Shopify Agent block connects to a Shopify UCP MCP server registered in workspace settings. Each operation maps to a UCP tool name such as search_catalog, create_cart, or complete_checkout. When checkout requires buyer review, inspect the continueUrl output for browser handoff.

Usage Instructions

Register a Shopify UCP MCP server in workspace settings (Catalog, Cart, Checkout, or Order endpoint), select that server in the block, then choose an operation. Cart, checkout, and order operations also require a merchant storefront URL.

For general MCP setup, see the MCP documentation and MCP Tool block.

Operations

Catalog

  • search_catalog - Search the merchant catalog
  • lookup_catalog - Look up products or variants by ID
  • get_product - Get a single product

Cart

  • create_cart - Create a cart with line items
  • get_cart - Retrieve cart state
  • update_cart - Update cart contents or buyer details
  • cancel_cart - Cancel a cart

Checkout

  • create_checkout - Start checkout from a cart
  • get_checkout - Retrieve checkout state
  • update_checkout - Update checkout details
  • complete_checkout - Complete checkout when ready
  • cancel_checkout - Cancel checkout

Orders

  • get_order - Retrieve order details

Common Inputs

ParameterTypeRequiredDescription
serverstringYesWorkspace MCP server ID for Shopify UCP
operationstringYesUCP commerce operation
businessUrlstringMerchant opsStorefront URL for cart, checkout, and orders
agentProfileUrlstringNoUCP agent profile URL for MCP metadata
searchQuerystringFor searchCatalog search query
lookupIdsstringFor lookupProduct or variant GIDs
productIdstringProduct opsShopify product GID
variantIdstringLine itemsShopify variant GID
quantitynumberLine itemsItem quantity
cartIdstringCart / checkoutCart GID
checkoutIdstringCheckout opsCheckout GID
orderIdstringFor get orderOrder GID
payloadjsonNoAdditional UCP request body merged with fields above

Output

ParameterTypeDescription
contentarrayRaw MCP tool response content
continueUrlstringBrowser handoff URL when buyer action is required
resultjsonFull MCP tool response payload

Notes

  • Category: tools
  • Type: shopify_ucp
  • Tools are resolved dynamically from the selected Shopify MCP server.
  • See the Shopify UCP quickstart for server setup details.
Shopify Agent