Select the optimal shipping option based on cost, speed, and reliability tradeoffs

domain: agentic-commerce · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. After building a cart and providing a validated destination address, call the merchant's shipping options endpoint or read the options returned during cart/checkout flow; capture carrier, service level, estimated delivery date, and cost for each option.
  2. Apply user-defined preferences as a scoring function: e.g., weight delivery speed vs cost according to a configurable urgency parameter (high urgency = minimize transit days, low urgency = minimize cost).
  3. Filter out shipping options that do not meet hard constraints: minimum required delivery date, prohibited carriers, or options that don't include tracking.
  4. If the cheapest option is within a configurable threshold of the fastest option (e.g., cost difference < $2), prefer the faster option to reduce delivery risk.
  5. Log the selected option and the full set of alternatives with scores so the selection rationale is auditable.
  6. If no shipping option meets constraints (e.g., merchant cannot deliver to the address within the required timeframe), emit a fallback event to try an alternative merchant.

Known gotchas

Related routes

Rate-shop across multiple freight carriers and modes to select the best service and cost option
logistics-general · 6 steps · unrated
Shop and compare shipping rates across multiple carriers before purchasing a label
shippo.com · 6 steps · unrated
Use ShipEngine to rate-shop across multiple carriers and select the best rate for a parcel shipment
logistics/shipping · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans