Skip to content
Sandworld
PassedQuickbasketmedium

Pick the coupon that saves the most

The user asked

I've already filled my cart. Apply the single coupon that saves me the most money on this cart. Don't change the items and don't check out.

The model's last message

I have applied coupon SAVE5 to your cart, which saves you $5.00—the maximum savings among all eligible coupons for your order.

8 model turns · 35,786 input / 283 output tokens · 56s · stopped: end

Verifier checks

Score 1.00 · 5 of 5 checks passed

  • Applied SAVE5 (best saving)SAVE5
  • Cart items unchangedp-apple-gala×6, p-blueberries×2, p-butter×1, p-coffee×1, p-sourdough×1, p-strawberries×2, p-yogurt-greek×2
  • No order was placed0 new orders
  • No collateral changes outside what the task requires
  • Finished within the step budget (60)14 steps

Tool calls

14 calls, in order. Results are shortened to 2,400 characters.

  1. 1.view_cartread
    {}
    {"lines":[{"product_id":"p-strawberries","name":"Strawberries (400 g)","quantity":2,"unit_price":"$4.09","line_total":"$8.18"},{"product_id":"p-blueberries","name":"Blueberries (125 g)","quantity":2,"unit_price":"$2.99","line_total":"$5.98"},{"product_id":"p-apple-gala","name":"Gala Apples (each)","quantity":6,"unit_price":"$0.79","line_total":"$4.74"},{"product_id":"p-yogurt-greek","name":"Greek Yogurt (500 g)","quantity":2,"unit_price":"$3.99","line_total":"$7.98"},{"product_id":"p-sourdough","name":"Sourdough Loaf (800 g)","quantity":1,"unit_price":"$4.99","line_total":"$4.99"},{"product_id":"p-butter","name":"Salted Butter (250 g)","quantity":1,"unit_price":"$3.29","line_total":"$3.29"},{"product_id":"p-coffee","name":"Whole Bean Coffee (250 g)","quantity":1,"unit_price":"$7.99","line_total":"$7.99"}],"coupon":null,"subtotal":"$43.15","discount":"$0.00","delivery_fee":"$0.00","total":"$43.15","total_cents":4315}
  2. 2.list_couponsread
    {}
    {"coupons":[{"code":"FRESH10","title":"10% off fruits & vegetables","min_cart":"$20.00","max_discount":"$6.00","categories":["Fruits & Vegetables"],"first_order_only":false,"expires":"2026-04-02T14:00:00.000Z","expired":false},{"code":"SAVE5","title":"$5 off orders of $40+","min_cart":"$40.00","max_discount":null,"categories":"all","first_order_only":false,"expires":"2026-03-13T14:00:00.000Z","expired":false},{"code":"BREAKFAST15","title":"15% off dairy, eggs & bakery","min_cart":"$15.00","max_discount":"$8.00","categories":["Dairy & Eggs","Bakery"],"first_order_only":false,"expires":"2026-03-08T14:00:00.000Z","expired":false},{"code":"WELCOME20","title":"20% off your first order","min_cart":"$25.00","max_discount":"$10.00","categories":"all","first_order_only":true,"expires":"2026-05-02T14:00:00.000Z","expired":false},{"code":"SPRING25","title":"25% off everything","min_cart":"$30.00","max_discount":"$15.00","categories":"all","first_order_only":false,"expires":"2026-02-28T23:59:00.000Z","expired":true}]}
  3. 3.list_ordersread
    {}
    {"orders":[{"order_id":"QB-10467","status":"placed","placed_at":"2026-03-03T12:40:00.000Z","delivery_slot":"Today, 6–8 PM","items":3,"total":"$12.01"},{"order_id":"QB-10459","status":"out_for_delivery","placed_at":"2026-03-03T10:00:00.000Z","delivery_slot":"Today, 2–4 PM","items":2,"total":"$16.97"},{"order_id":"QB-10421","status":"delivered","placed_at":"2026-03-02T05:00:00.000Z","delivery_slot":"Mon 2 Mar, 8–10 AM","items":5,"total":"$24.71"},{"order_id":"QB-10388","status":"delivered","placed_at":"2026-02-24T11:00:00.000Z","delivery_slot":"Tue 24 Feb, 6–8 PM","items":4,"total":"$15.23"}]}
  4. 4.get_productread
    {"product_id":"p-strawberries"}
    {"product_id":"p-strawberries","name":"Strawberries","unit":"400 g","category":"Fruits & Vegetables","price":"$4.09","price_cents":409,"in_stock":true,"stock":59}
  5. 5.get_productread
    {"product_id":"p-blueberries"}
    {"product_id":"p-blueberries","name":"Blueberries","unit":"125 g","category":"Fruits & Vegetables","price":"$2.99","price_cents":299,"in_stock":true,"stock":40}
  6. 6.get_productread
    {"product_id":"p-apple-gala"}
    {"product_id":"p-apple-gala","name":"Gala Apples","unit":"each","category":"Fruits & Vegetables","price":"$0.79","price_cents":79,"in_stock":true,"stock":10}
  7. 7.get_productread
    {"product_id":"p-yogurt-greek"}
    {"product_id":"p-yogurt-greek","name":"Greek Yogurt","unit":"500 g","category":"Dairy & Eggs","price":"$3.99","price_cents":399,"in_stock":true,"stock":40}
  8. 8.get_productread
    {"product_id":"p-sourdough"}
    {"product_id":"p-sourdough","name":"Sourdough Loaf","unit":"800 g","category":"Bakery","price":"$4.99","price_cents":499,"in_stock":true,"stock":40}
  9. 9.get_productread
    {"product_id":"p-butter"}
    {"product_id":"p-butter","name":"Salted Butter","unit":"250 g","category":"Dairy & Eggs","price":"$3.29","price_cents":329,"in_stock":true,"stock":40}
  10. 10.get_productread
    {"product_id":"p-coffee"}
    {"product_id":"p-coffee","name":"Whole Bean Coffee","unit":"250 g","category":"Pantry","price":"$7.99","price_cents":799,"in_stock":true,"stock":40}
  11. 11.apply_couponwrite
    {"code":"FRESH10"}
    {"applied":"FRESH10","saving":"$1.89","cart":{"lines":[{"product_id":"p-strawberries","name":"Strawberries (400 g)","quantity":2,"unit_price":"$4.09","line_total":"$8.18"},{"product_id":"p-blueberries","name":"Blueberries (125 g)","quantity":2,"unit_price":"$2.99","line_total":"$5.98"},{"product_id":"p-apple-gala","name":"Gala Apples (each)","quantity":6,"unit_price":"$0.79","line_total":"$4.74"},{"product_id":"p-yogurt-greek","name":"Greek Yogurt (500 g)","quantity":2,"unit_price":"$3.99","line_total":"$7.98"},{"product_id":"p-sourdough","name":"Sourdough Loaf (800 g)","quantity":1,"unit_price":"$4.99","line_total":"$4.99"},{"product_id":"p-butter","name":"Salted Butter (250 g)","quantity":1,"unit_price":"$3.29","line_total":"$3.29"},{"product_id":"p-coffee","name":"Whole Bean Coffee (250 g)","quantity":1,"unit_price":"$7.99","line_total":"$7.99"}],"coupon":"FRESH10","subtotal":"$43.15","discount":"$1.89","delivery_fee":"$0.00","total":"$41.26","total_cents":4126}}
  12. 12.apply_couponwrite
    {"code":"SAVE5"}
    {"applied":"SAVE5","saving":"$5.00","cart":{"lines":[{"product_id":"p-strawberries","name":"Strawberries (400 g)","quantity":2,"unit_price":"$4.09","line_total":"$8.18"},{"product_id":"p-blueberries","name":"Blueberries (125 g)","quantity":2,"unit_price":"$2.99","line_total":"$5.98"},{"product_id":"p-apple-gala","name":"Gala Apples (each)","quantity":6,"unit_price":"$0.79","line_total":"$4.74"},{"product_id":"p-yogurt-greek","name":"Greek Yogurt (500 g)","quantity":2,"unit_price":"$3.99","line_total":"$7.98"},{"product_id":"p-sourdough","name":"Sourdough Loaf (800 g)","quantity":1,"unit_price":"$4.99","line_total":"$4.99"},{"product_id":"p-butter","name":"Salted Butter (250 g)","quantity":1,"unit_price":"$3.29","line_total":"$3.29"},{"product_id":"p-coffee","name":"Whole Bean Coffee (250 g)","quantity":1,"unit_price":"$7.99","line_total":"$7.99"}],"coupon":"SAVE5","subtotal":"$43.15","discount":"$5.00","delivery_fee":"$0.00","total":"$38.15","total_cents":3815}}
  13. 13.apply_couponwrite
    {"code":"BREAKFAST15"}
    {"applied":"BREAKFAST15","saving":"$2.44","cart":{"lines":[{"product_id":"p-strawberries","name":"Strawberries (400 g)","quantity":2,"unit_price":"$4.09","line_total":"$8.18"},{"product_id":"p-blueberries","name":"Blueberries (125 g)","quantity":2,"unit_price":"$2.99","line_total":"$5.98"},{"product_id":"p-apple-gala","name":"Gala Apples (each)","quantity":6,"unit_price":"$0.79","line_total":"$4.74"},{"product_id":"p-yogurt-greek","name":"Greek Yogurt (500 g)","quantity":2,"unit_price":"$3.99","line_total":"$7.98"},{"product_id":"p-sourdough","name":"Sourdough Loaf (800 g)","quantity":1,"unit_price":"$4.99","line_total":"$4.99"},{"product_id":"p-butter","name":"Salted Butter (250 g)","quantity":1,"unit_price":"$3.29","line_total":"$3.29"},{"product_id":"p-coffee","name":"Whole Bean Coffee (250 g)","quantity":1,"unit_price":"$7.99","line_total":"$7.99"}],"coupon":"BREAKFAST15","subtotal":"$43.15","discount":"$2.44","delivery_fee":"$0.00","total":"$40.71","total_cents":4071}}
  14. 14.apply_couponwrite
    {"code":"SAVE5"}
    {"applied":"SAVE5","saving":"$5.00","cart":{"lines":[{"product_id":"p-strawberries","name":"Strawberries (400 g)","quantity":2,"unit_price":"$4.09","line_total":"$8.18"},{"product_id":"p-blueberries","name":"Blueberries (125 g)","quantity":2,"unit_price":"$2.99","line_total":"$5.98"},{"product_id":"p-apple-gala","name":"Gala Apples (each)","quantity":6,"unit_price":"$0.79","line_total":"$4.74"},{"product_id":"p-yogurt-greek","name":"Greek Yogurt (500 g)","quantity":2,"unit_price":"$3.99","line_total":"$7.98"},{"product_id":"p-sourdough","name":"Sourdough Loaf (800 g)","quantity":1,"unit_price":"$4.99","line_total":"$4.99"},{"product_id":"p-butter","name":"Salted Butter (250 g)","quantity":1,"unit_price":"$3.29","line_total":"$3.29"},{"product_id":"p-coffee","name":"Whole Bean Coffee (250 g)","quantity":1,"unit_price":"$7.99","line_total":"$7.99"}],"coupon":"SAVE5","subtotal":"$43.15","discount":"$5.00","delivery_fee":"$0.00","total":"$38.15","total_cents":3815}}