Compare a grocery basket across stores
Your list priced at each store with all fees, and the cheapest store for the whole basket.
- You start it: When you start it
What it does
The task
Price this grocery list at stores: items. For each item, pick the same brand and size at each store, or the closest match, and note each swap. Add the delivery fee, the service fee and the minimum order. Put the result in a new Google Sheet with one column for each store and a total row. Tell me the cheapest store for the whole basket, and the saving if I split the order between two stores. Do not add anything to a cart.
- It works in Instacart, Walmart, any online store and Google Sheets, in the workspace you pick, and signs in with passwords from your Cuiar vault.
- It runs once, when you start it.
What you give it
| Blank | What to give | Example |
|---|---|---|
| stores | The stores or delivery services to compare | Costco on Instacart, Walmart, Kroger |
| items | Your list, with sizes and amounts | 2 gal whole milk, 18 eggs, 2 lb bananas, 3 lb chicken breast, 5 lb rice and 15 more items |
What you get back
An example run with the example values above. Your run uses your own data.
Sheet Grocery basket: 20 items at 3 stores
| Store | Items | Fees | Total |
|---|---|---|---|
| Costco on Instacart | $79.30 | $3.99 delivery, $6.34 service | $89.63 |
| Walmart | $84.12 | $7.95 delivery | $92.07 |
| Kroger | $88.40 | $9.95 delivery | $98.35 |
Cheapest: Costco on Instacart, $89.63, with 2 swaps (eggs only in packs of 24, rice only in 10 lb bags)
Split order: no saving, because a second delivery fee costs more than the price difference
Run it in Cuiar
- 01
Open it
Click Use in Cuiar on this page. The side panel opens with the task in the composer.
- 02
Fill in 2 blanks
Type stores and items. Tab moves to the next blank.
- 03
Run it
Run sends it to the agent. Follow each step in the panel, and stop it at any time.
From the terminal
cuiar exec "Price this grocery list at Costco on Instacart, Walmart, Kroger: 2 gal whole milk, 18 eggs, 2 lb bananas, 3 lb chicken breast, 5 lb rice and 15 more items. For each item, pick the same brand and size at each store, or the closest match, and note each swap. Add the delivery fee, the service fee and the minimum order. Put the result in a new Google Sheet with one column for each store and a total row. Tell me the cheapest store for the whole basket, and the saving if I split the order between two stores. Do not add anything to a cart."Run it from your AI agent
Claude Code, Codex, Cursor and other MCP clients reach Cuiar at https://mcp.cuiar.com/mcp. Add the server one time, then ask for the task in plain words, or call run_task yourself.
1. Add Cuiar to Claude Code
claude mcp add --transport http cuiar https://mcp.cuiar.com/mcp2. Ask your agent
Use the Cuiar tool run_task to run my "Compare a grocery basket across stores" template with stores = Costco on Instacart, Walmart, Kroger; items = 2 gal whole milk, 18 eggs, 2 lb bananas, 3 lb chicken breast, 5 lb rice and 15 more items.Setup for other agents: AI agents.
The tool call
{
"name": "run_task",
"arguments": {
"task": "Price this grocery list at Costco on Instacart, Walmart, Kroger: 2 gal whole milk, 18 eggs, 2 lb bananas, 3 lb chicken breast, 5 lb rice and 15 more items. For each item, pick the same brand and size at each store, or the closest match, and note each swap. Add the delivery fee, the service fee and the minimum order. Put the result in a new Google Sheet with one column for each store and a total row. Tell me the cheapest store for the whole basket, and the saving if I split the order between two stores. Do not add anything to a cart."
}
}Related templates
All shopping templatesShopping
List the orders I can still return
Each recent purchase with its last return date and the return cost, the nearest deadline first.
You start it: When you start it- Gmail
- Any online store
- Google Sheets
ShoppingAsks first
Order supplies in bulk at the best unit price
Unit prices at your quantities from three suppliers in one sheet, and the order at the best one.
You start it: When you start it- AAmazon
- Any online store
- Google Sheets
ShoppingAsks first
Buy everything on a school supply list
Each item on the list in one cart, with the brand or size the school asks for. You approve the payment.
You start it: When you start it- WWalmart
- Any online store
- Google Drive
Shopping
Find products that meet exact specs
Only the models that meet each of your hard specs, checked on the maker's data sheet.
You start it: When you start it- Google Shopping
- BBest Buy
- Any online store
- +1 more: Google Sheets
ShoppingAsks first
Find a store near me that has an item in stock
Nearby stores with the item on the shelf today, with the price, the hours and the pickup time.
You start it: When you start it- BBest Buy
- WWalmart
- Google Maps
ResearchOdyssey
Estimate the size of a market
A top-down and a bottom-up estimate, with the source for each number and each step of the math.
You start it: When you start it- Any government site
- Google Scholar
- Google Sheets