{"release":"PACKRIFT-MCP-WORKFLOW-GALLERY-R02","generated_at":"2026-05-20T21:11:13.170Z","canonical_endpoint":"https://mcp.packrift.com/mcp","purpose":"Give external agents, developers, marketplaces, and AI-commerce workflow builders copy-ready buyer prompts and JSON-RPC sequences that drive real Packrift MCP usage without creating a duplicate CLI or storefront.","runtime":{"server_version":"0.2.13","tools_count":15,"resources_count":1272,"prompts_count":9},"install_config":{"mcpServers":{"packrift":{"type":"http","url":"https://mcp.packrift.com/mcp"}}},"workflow_count":6,"workflows":[{"id":"one_call_purchase_handoff_1066","title":"One-call exact SKU live confirmation","audience":"Agent hosts and demos that need the shortest useful Packrift MCP flow from known SKU to guarded cart handoff.","buyer_prompt":"Use Packrift SKU 1066. Confirm the exact product, live price, and inventory; create the cart only after I confirm quantity 1.","success_outcome":"Agent uses prepare_purchase_handoff to collapse product, price, inventory, and guarded cart handoff into one safe source-preserving MCP tool call.","sequence":[{"jsonrpc":"2.0","id":"prepare-1066-unconfirmed","method":"tools/call","params":{"name":"prepare_purchase_handoff","arguments":{"sku":"1066","quantity":1,"buyer_confirmed":false,"source_context":"workflow_gallery_one_call","mcp_source_context":"workflow_gallery","mcp_install_target":"generic_streamable_http"}}},{"jsonrpc":"2.0","id":"prepare-1066-confirmed","method":"tools/call","params":{"name":"prepare_purchase_handoff","arguments":{"sku":"1066","quantity":1,"buyer_confirmed":true,"source_context":"workflow_gallery_one_call","mcp_source_context":"workflow_gallery","mcp_install_target":"generic_streamable_http"}}}],"expected_checks":["unconfirmed result has status live_confirmed_awaiting_buyer_confirmation and cart null","confirmed result has status cart_handoff_ready","cart result url starts with https://mcp.packrift.com/r/cart/1066","live_confirmation includes product, pricing, inventory, price_ok, and inventory_ok"]},{"id":"exact_sku_reorder_1066","title":"Exact SKU reorder to measured cart","audience":"AI shopping agents, procurement copilots, and agent-host demos that need the shortest buyer-ready flow.","buyer_prompt":"Reorder Packrift SKU 1066. Confirm the exact product, live price, and inventory, then prepare a cart for quantity 1.","success_outcome":"Agent presents SKU 1066 only after live checks and hands off the MCP /r/cart URL before the final Shopify cart URL.","sequence":[{"jsonrpc":"2.0","id":"candidate-1066","method":"tools/call","params":{"name":"get_cart_handoff_candidates","arguments":{"sku":"1066","limit":1}}},{"jsonrpc":"2.0","id":"product-1066","method":"tools/call","params":{"name":"get_product","arguments":{"handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle"}}},{"jsonrpc":"2.0","id":"price-1066","method":"tools/call","params":{"name":"get_pricing","arguments":{"variant_ids":["53472879935856"],"quantity":1,"selected_sku":"1066","selected_handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle","match_type":"workflow_gallery_exact_sku"}}},{"jsonrpc":"2.0","id":"inventory-1066","method":"tools/call","params":{"name":"check_inventory","arguments":{"variant_ids":["53472879935856"],"selected_sku":"1066","selected_handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle","match_type":"workflow_gallery_exact_sku"}}},{"jsonrpc":"2.0","id":"cart-1066","method":"tools/call","params":{"name":"create_cart_url","arguments":{"sku":"1066","quantity":1,"selected_sku":"1066","selected_handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle","match_type":"workflow_gallery_exact_sku","source_context":"mcp_workflow_gallery","journey_id":"mcp_workflow_gallery_1066_53472879935856","result_set_id":"mcp_workflow_gallery","utm_term":"1066"}}}],"expected_checks":["candidate result includes selected_sku 1066","product result has ai_status AI_APPROVE","pricing result has unit_price and currency","inventory result has in_stock true before cart handoff","cart result url starts with https://mcp.packrift.com/r/cart/1066"]},{"id":"label_reorder_ll251wr","title":"Weather-resistant label reorder","audience":"Procurement agents handling repeat label purchases where printer type, material, size, and case count must stay exact.","buyer_prompt":"Prepare a procurement-ready reorder for Packrift SKU LL251WR and confirm live price and inventory before giving me a cart path.","success_outcome":"Agent confirms the 2 5/8 x 1 weather-resistant polyester laser label spec and keeps the label case count exact.","sequence":[{"jsonrpc":"2.0","id":"product-ll251wr","method":"tools/call","params":{"name":"get_product","arguments":{"handle":"2-5-8-x-1-weather-resistant-polyester-laser-labels-3000-case"}}},{"jsonrpc":"2.0","id":"price-ll251wr","method":"tools/call","params":{"name":"get_pricing","arguments":{"variant_ids":["53475925492080"],"quantity":1,"selected_sku":"LL251WR","selected_handle":"2-5-8-x-1-weather-resistant-polyester-laser-labels-3000-case","match_type":"workflow_gallery_label_reorder"}}},{"jsonrpc":"2.0","id":"inventory-ll251wr","method":"tools/call","params":{"name":"check_inventory","arguments":{"variant_ids":["53475925492080"],"selected_sku":"LL251WR","selected_handle":"2-5-8-x-1-weather-resistant-polyester-laser-labels-3000-case","match_type":"workflow_gallery_label_reorder"}}},{"jsonrpc":"2.0","id":"reorder-ll251wr","method":"tools/call","params":{"name":"get_reorder_link","arguments":{"sku":"LL251WR","source_context":"mcp_workflow_gallery"}}}],"expected_checks":["product result has approved_sku LL251WR","label material and printer type are not substituted","pricing and inventory are current before purchase handoff","reorder link contains Packrift product and procurement-spec continuity"]},{"id":"literature_mailer_mfl1295","title":"Literature mailer lookup and cart handoff","audience":"Fulfillment agents choosing a repeat mailer SKU for ecommerce shipping.","buyer_prompt":"Find Packrift SKU MFL1295, confirm it is the white self-seal literature mailer, and prepare a quantity 1 cart only if it is in stock.","success_outcome":"Agent confirms the exact white self-seal literature mailer SKU and avoids nearby mailer sizes or colors.","sequence":[{"jsonrpc":"2.0","id":"product-mfl1295","method":"tools/call","params":{"name":"get_product","arguments":{"handle":"12-1-8-x-9-1-4-x-5-white-corrugated-literature-mailer-self-seal-50-pack"}}},{"jsonrpc":"2.0","id":"price-mfl1295","method":"tools/call","params":{"name":"get_pricing","arguments":{"variant_ids":["53472994427248"],"quantity":1,"selected_sku":"MFL1295","selected_handle":"12-1-8-x-9-1-4-x-5-white-corrugated-literature-mailer-self-seal-50-pack","match_type":"workflow_gallery_mailer_cart"}}},{"jsonrpc":"2.0","id":"inventory-mfl1295","method":"tools/call","params":{"name":"check_inventory","arguments":{"variant_ids":["53472994427248"],"selected_sku":"MFL1295","selected_handle":"12-1-8-x-9-1-4-x-5-white-corrugated-literature-mailer-self-seal-50-pack","match_type":"workflow_gallery_mailer_cart"}}},{"jsonrpc":"2.0","id":"cart-mfl1295","method":"tools/call","params":{"name":"create_cart_url","arguments":{"sku":"MFL1295","quantity":1,"selected_sku":"MFL1295","selected_handle":"12-1-8-x-9-1-4-x-5-white-corrugated-literature-mailer-self-seal-50-pack","match_type":"workflow_gallery_mailer_cart","source_context":"mcp_workflow_gallery","journey_id":"mcp_workflow_gallery_mfl1295_53472994427248","result_set_id":"mcp_workflow_gallery","utm_term":"MFL1295"}}}],"expected_checks":["product result has approved_sku MFL1295","mailer color, closure, and pack count stay exact","cart result uses https://mcp.packrift.com/r/cart/MFL1295"]},{"id":"fit_item_then_confirm","title":"Fit an item, then confirm commerce facts","audience":"Agents answering packaging-fit questions where the buyer does not know the SKU.","buyer_prompt":"Find packaging for a 9 x 4 x 3 inch ecommerce item weighing 2 lb. Show only AI-approved candidates, then confirm price and stock for the selected SKU.","success_outcome":"Agent ranks fit candidates, asks the buyer to choose an exact SKU and quantity, then runs live price and inventory checks before handoff.","sequence":[{"jsonrpc":"2.0","id":"fit-9x4x3","method":"tools/call","params":{"name":"find_packaging_for_item","arguments":{"item_length_in":9,"item_width_in":4,"item_depth_in":3,"item_weight_lb":2,"use_case":"ecommerce"}}},{"jsonrpc":"2.0","id":"price-selected-fit","method":"tools/call","params":{"name":"get_pricing","arguments":{"variant_ids":["<selected_variant_id_from_fit_result>"],"quantity":"<buyer_confirmed_quantity>","match_type":"workflow_gallery_fit_confirmed"}}},{"jsonrpc":"2.0","id":"inventory-selected-fit","method":"tools/call","params":{"name":"check_inventory","arguments":{"variant_ids":["<selected_variant_id_from_fit_result>"],"match_type":"workflow_gallery_fit_confirmed"}}}],"expected_checks":["fit results come from AI_APPROVE catalog records","agent does not create a cart until buyer chooses an exact SKU and quantity","price and inventory are checked for the selected variant"]},{"id":"no_exact_match_quote_recovery","title":"No-exact-match quote recovery","audience":"Agents handling buyer specs where dimensions, material, closure, color, printer type, or case count differs.","buyer_prompt":"The buyer asked for 10 x 6 x 8 ECT-32 kraft boxes, 25/bundle. If Packrift has no exact AI-approved match, explain the mismatch and give a quote path.","success_outcome":"Agent refuses to present a nearby SKU as exact and routes the buyer to a tracked quote recovery path.","sequence":[{"jsonrpc":"2.0","id":"search-10x6x8","method":"tools/call","params":{"name":"search_products","arguments":{"query":"10 x 6 x 8 ECT-32 kraft corrugated boxes 25 bundle","limit":5}}},{"jsonrpc":"2.0","id":"no-match-10x6x8","method":"tools/call","params":{"name":"explain_no_exact_match","arguments":{"requested_spec":"10 x 6 x 8 ECT-32 kraft corrugated boxes, 25/bundle","family":"corrugated_boxes","missing_or_mismatched_fields":["depth","exact_dimensions"],"reason":"Do not substitute 10 x 6 x 6 or nearby corrugated boxes as an exact 10 x 6 x 8 match."}}},{"jsonrpc":"2.0","id":"quote-10x6x8","method":"tools/call","params":{"name":"get_bulk_quote_link","arguments":{"requested_spec":"10 x 6 x 8 ECT-32 kraft corrugated boxes, 25/bundle","family":"corrugated_boxes","quantity":"buyer to confirm","reason":"No exact AI-approved Packrift match."}}}],"expected_checks":["agent states no exact match when required fields differ","nearby dimensions are not promoted as exact substitutes","quote link is used for recovery instead of cart handoff"]}],"agent_host_uses":["turn each workflow into an eval case","use exact_sku_reorder_1066 as the first demo after install","use no_exact_match_quote_recovery to test safety behavior","use fit_item_then_confirm when the buyer does not know the Packrift SKU","record create_cart_url output as MCP-attributed conversion handoff"],"proof_urls":{"automation_workflows":"https://mcp.packrift.com/ai/mcp-automation-workflows.json","n8n_workflow_import":"https://mcp.packrift.com/ai/mcp-n8n-workflow.json","first_run_proof":"https://mcp.packrift.com/ai/mcp-first-run-proof.json","adoption_kit":"https://mcp.packrift.com/ai/mcp-adoption-kit.json","install_matrix":"https://mcp.packrift.com/ai/mcp-install-matrix.json","cart_activation":"https://mcp.packrift.com/ai/mcp-cart-activation.json","buyer_use_cases":"https://mcp.packrift.com/ai/mcp-buyer-use-cases.json","usage_snapshot":"https://mcp.packrift.com/ai/mcp-usage-snapshot.json","cart_handoff_candidates":"https://mcp.packrift.com/ai/mcp-cart-handoff-candidates.json","all_agent_capture":"https://mcp.packrift.com/ai/all-agent-capture.json"},"operating_rules":["Use https://mcp.packrift.com/mcp as the runtime endpoint.","Do not build a separate Packrift CLI or duplicate buyer surface for these workflows.","Always confirm exact SKU, live price, live inventory, and buyer-selected quantity before cart handoff.","Use the MCP /r/cart URL returned by create_cart_url as the primary measured handoff.","If any required spec differs, explain no exact match and use quote recovery instead of forcing a substitute."],"automation_templates":{"n8n":{"source":"n8n_automation","import_url":"https://mcp.packrift.com/ai/mcp-n8n-workflow.json","endpoint":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","workflow":{"name":"Packrift MCP first useful run","nodes":[{"parameters":{},"id":"manual-trigger","name":"Manual Trigger","type":"n8n-nodes-base.manualTrigger","typeVersion":1,"position":[0,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"tools\",\"method\":\"tools/list\"}"},"id":"tools-list","name":"List Packrift MCP tools","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[240,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"candidate-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"get_cart_handoff_candidates\",\"arguments\":{\"sku\":\"1066\",\"limit\":1,\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\"}}}"},"id":"cart-candidates","name":"Get cart handoff candidates","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[480,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"price-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"get_pricing\",\"arguments\":{\"variant_ids\":[\"53472879935856\"],\"quantity\":1,\"selected_sku\":\"1066\",\"selected_handle\":\"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\"match_type\":\"n8n_first_useful_run\",\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\"}}}"},"id":"pricing","name":"Get live price","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[720,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"inventory-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"check_inventory\",\"arguments\":{\"variant_ids\":[\"53472879935856\"],\"selected_sku\":\"1066\",\"selected_handle\":\"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\"match_type\":\"n8n_first_useful_run\",\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\"}}}"},"id":"inventory","name":"Check live inventory","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[960,0]},{"parameters":{"method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=n8n_automation&packrift_mcp_target=generic_streamable_http","sendHeaders":true,"headerParameters":{"parameters":[{"name":"content-type","value":"application/json"},{"name":"accept","value":"application/json, text/event-stream"},{"name":"Mcp-Session-Id","value":"={{'n8n-packrift-' + $execution.id}}"},{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]},"sendBody":true,"contentType":"raw","rawContentType":"application/json","body":"{\"jsonrpc\":\"2.0\",\"id\":\"cart-1066\",\"method\":\"tools/call\",\"params\":{\"name\":\"create_cart_url\",\"arguments\":{\"sku\":\"1066\",\"quantity\":1,\"selected_sku\":\"1066\",\"selected_handle\":\"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\"match_type\":\"n8n_first_useful_run\",\"source_context\":\"n8n_automation_first_cart_run\",\"journey_id\":\"mcp_install_n8n_automation_1066_53472879935856\",\"result_set_id\":\"mcp_install_first_run_n8n_automation\",\"utm_term\":\"1066\"}}}"},"id":"create-cart","name":"Create measured MCP cart URL","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[1200,0]},{"parameters":{"jsCode":"const raw = typeof $json === 'string' ? $json : JSON.stringify($json);\nconst match = raw.match(/https:\\/\\/mcp\\.packrift\\.com\\/r\\/cart\\/[^\"\\s<>\\\\]+/);\nif (!match) throw new Error('No measured Packrift MCP /r/cart URL found in create_cart_url response.');\nreturn [{ json: { cart_url: match[0], source_context: 'n8n_automation_first_cart_run' } }];"},"id":"extract-cart-url","name":"Extract measured cart URL","type":"n8n-nodes-base.code","typeVersion":2,"position":[1440,0]},{"parameters":{"method":"GET","url":"={{$json.cart_url}}","sendHeaders":true,"headerParameters":{"parameters":[{"name":"user-agent","value":"n8n Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"}]}},"id":"touch-cart-landing","name":"Record measured cart landing","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[1680,0]}],"connections":{"Manual Trigger":{"main":[[{"node":"List Packrift MCP tools","type":"main","index":0}]]},"List Packrift MCP tools":{"main":[[{"node":"Get cart handoff candidates","type":"main","index":0}]]},"Get cart handoff candidates":{"main":[[{"node":"Get live price","type":"main","index":0}]]},"Get live price":{"main":[[{"node":"Check live inventory","type":"main","index":0}]]},"Check live inventory":{"main":[[{"node":"Create measured MCP cart URL","type":"main","index":0}]]},"Create measured MCP cart URL":{"main":[[{"node":"Extract measured cart URL","type":"main","index":0}]]},"Extract measured cart URL":{"main":[[{"node":"Record measured cart landing","type":"main","index":0}]]}},"active":false,"settings":{"executionOrder":"v1"},"tags":["packrift","mcp","ai-commerce"],"pinData":{},"versionId":"packrift-mcp-first-useful-run-r01"}},"zapier":{"source":"zapier_automation","endpoint":"https://mcp.packrift.com/mcp?packrift_mcp_source=zapier_automation&packrift_mcp_target=generic_streamable_http","steps":[{"step":1,"app":"Webhooks by Zapier","event":"Custom Request","method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=zapier_automation&packrift_mcp_target=generic_streamable_http","headers":{"content-type":"application/json","accept":"application/json, text/event-stream","Mcp-Session-Id":"zapier-packrift-{{zap_meta_human_now}}","user-agent":"Zapier Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"},"data":{"jsonrpc":"2.0","id":"tools","method":"tools/list"}},{"step":2,"app":"Webhooks by Zapier","event":"Custom Request","method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=zapier_automation&packrift_mcp_target=generic_streamable_http","headers":{"content-type":"application/json","accept":"application/json, text/event-stream","Mcp-Session-Id":"zapier-packrift-{{zap_meta_human_now}}","user-agent":"Zapier Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"},"data":{"jsonrpc":"2.0","id":"candidate-1066","method":"tools/call","params":{"name":"get_cart_handoff_candidates","arguments":{"sku":"1066","limit":1,"source_context":"zapier_automation_first_cart_run","journey_id":"mcp_install_zapier_automation_1066_53472879935856","result_set_id":"mcp_install_first_run_zapier_automation"}}}},{"step":3,"app":"Webhooks by Zapier","event":"Custom Request","method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=zapier_automation&packrift_mcp_target=generic_streamable_http","headers":{"content-type":"application/json","accept":"application/json, text/event-stream","Mcp-Session-Id":"zapier-packrift-{{zap_meta_human_now}}","user-agent":"Zapier Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"},"data":{"jsonrpc":"2.0","id":"price-1066","method":"tools/call","params":{"name":"get_pricing","arguments":{"variant_ids":["53472879935856"],"quantity":1,"selected_sku":"1066","selected_handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle","match_type":"zapier_first_useful_run","source_context":"zapier_automation_first_cart_run","journey_id":"mcp_install_zapier_automation_1066_53472879935856","result_set_id":"mcp_install_first_run_zapier_automation"}}}},{"step":4,"app":"Webhooks by Zapier","event":"Custom Request","method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=zapier_automation&packrift_mcp_target=generic_streamable_http","headers":{"content-type":"application/json","accept":"application/json, text/event-stream","Mcp-Session-Id":"zapier-packrift-{{zap_meta_human_now}}","user-agent":"Zapier Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"},"data":{"jsonrpc":"2.0","id":"inventory-1066","method":"tools/call","params":{"name":"check_inventory","arguments":{"variant_ids":["53472879935856"],"selected_sku":"1066","selected_handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle","match_type":"zapier_first_useful_run","source_context":"zapier_automation_first_cart_run","journey_id":"mcp_install_zapier_automation_1066_53472879935856","result_set_id":"mcp_install_first_run_zapier_automation"}}}},{"step":5,"app":"Webhooks by Zapier","event":"Custom Request","method":"POST","url":"https://mcp.packrift.com/mcp?packrift_mcp_source=zapier_automation&packrift_mcp_target=generic_streamable_http","headers":{"content-type":"application/json","accept":"application/json, text/event-stream","Mcp-Session-Id":"zapier-packrift-{{zap_meta_human_now}}","user-agent":"Zapier Packrift MCP Workflow (+https://mcp.packrift.com/mcp)"},"data":{"jsonrpc":"2.0","id":"cart-1066","method":"tools/call","params":{"name":"create_cart_url","arguments":{"sku":"1066","quantity":1,"selected_sku":"1066","selected_handle":"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle","match_type":"zapier_first_useful_run","source_context":"zapier_automation_first_cart_run","journey_id":"mcp_install_zapier_automation_1066_53472879935856","result_set_id":"mcp_install_first_run_zapier_automation","utm_term":"1066"}}}}]},"pipedream":{"source":"pipedream_automation","endpoint":"https://mcp.packrift.com/mcp?packrift_mcp_source=pipedream_automation&packrift_mcp_target=generic_streamable_http","code":"export default defineComponent({\n  async run({ steps, $ }) {\n    const endpoint = \"https://mcp.packrift.com/mcp?packrift_mcp_source=pipedream_automation&packrift_mcp_target=generic_streamable_http\";\n    const sessionId = `pipedream-packrift-${Date.now()}`;\n    const requests = [\n        {\n            \"jsonrpc\": \"2.0\",\n            \"id\": \"tools\",\n            \"method\": \"tools/list\"\n        },\n        {\n            \"jsonrpc\": \"2.0\",\n            \"id\": \"candidate-1066\",\n            \"method\": \"tools/call\",\n            \"params\": {\n                \"name\": \"get_cart_handoff_candidates\",\n                \"arguments\": {\n                    \"sku\": \"1066\",\n                    \"limit\": 1,\n                    \"source_context\": \"pipedream_automation_first_cart_run\",\n                    \"journey_id\": \"mcp_install_pipedream_automation_1066_53472879935856\",\n                    \"result_set_id\": \"mcp_install_first_run_pipedream_automation\"\n                }\n            }\n        },\n        {\n            \"jsonrpc\": \"2.0\",\n            \"id\": \"price-1066\",\n            \"method\": \"tools/call\",\n            \"params\": {\n                \"name\": \"get_pricing\",\n                \"arguments\": {\n                    \"variant_ids\": [\n                        \"53472879935856\"\n                    ],\n                    \"quantity\": 1,\n                    \"selected_sku\": \"1066\",\n                    \"selected_handle\": \"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\n                    \"match_type\": \"pipedream_first_useful_run\",\n                    \"source_context\": \"pipedream_automation_first_cart_run\",\n                    \"journey_id\": \"mcp_install_pipedream_automation_1066_53472879935856\",\n                    \"result_set_id\": \"mcp_install_first_run_pipedream_automation\"\n                }\n            }\n        },\n        {\n            \"jsonrpc\": \"2.0\",\n            \"id\": \"inventory-1066\",\n            \"method\": \"tools/call\",\n            \"params\": {\n                \"name\": \"check_inventory\",\n                \"arguments\": {\n                    \"variant_ids\": [\n                        \"53472879935856\"\n                    ],\n                    \"selected_sku\": \"1066\",\n                    \"selected_handle\": \"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\n                    \"match_type\": \"pipedream_first_useful_run\",\n                    \"source_context\": \"pipedream_automation_first_cart_run\",\n                    \"journey_id\": \"mcp_install_pipedream_automation_1066_53472879935856\",\n                    \"result_set_id\": \"mcp_install_first_run_pipedream_automation\"\n                }\n            }\n        },\n        {\n            \"jsonrpc\": \"2.0\",\n            \"id\": \"cart-1066\",\n            \"method\": \"tools/call\",\n            \"params\": {\n                \"name\": \"create_cart_url\",\n                \"arguments\": {\n                    \"sku\": \"1066\",\n                    \"quantity\": 1,\n                    \"selected_sku\": \"1066\",\n                    \"selected_handle\": \"10x6x6-ect-32-kraft-long-corrugated-boxes-25-bundle\",\n                    \"match_type\": \"pipedream_first_useful_run\",\n                    \"source_context\": \"pipedream_automation_first_cart_run\",\n                    \"journey_id\": \"mcp_install_pipedream_automation_1066_53472879935856\",\n                    \"result_set_id\": \"mcp_install_first_run_pipedream_automation\",\n                    \"utm_term\": \"1066\"\n                }\n            }\n        }\n    ];\n    let lastText = '';\n    for (const body of requests) {\n      const res = await fetch(endpoint, {\n        method: 'POST',\n        headers: {\n          'content-type': 'application/json',\n          'accept': 'application/json, text/event-stream',\n          'Mcp-Session-Id': sessionId,\n          'user-agent': 'Pipedream Packrift MCP Workflow (+https://mcp.packrift.com/mcp)'\n        },\n        body: JSON.stringify(body)\n      });\n      lastText = await res.text();\n      if (!res.ok) throw new Error(`Packrift MCP request failed ${res.status}: ${lastText}`);\n    }\n    const match = lastText.match(/https:\\/\\/mcp\\.packrift\\.com\\/r\\/cart\\/[^\"\\s<>\\\\]+/);\n    if (!match) throw new Error('No measured Packrift MCP /r/cart URL found.');\n    await fetch(match[0], { headers: { 'user-agent': 'Pipedream Packrift MCP Workflow (+https://mcp.packrift.com/mcp)' } });\n    return { cart_url: match[0], no_order_created: true };\n  }\n});"}}}