French Grocery
v0.1.1Search, compare and manage E.Leclerc Drive and Super U grocery carts without ordering.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_stores Available retailers
Lists the plugged-in retailers and their capabilities (product page, store selection, minimum order, booked slot). With check: true, also checks that each session responds and shows the active store.
| Parameter | Type | Description |
|---|---|---|
check | boolean | query each site (read-only) |
search_products Search products
Searches the retailer's catalogue. For each product: id, label (brand and size included), price, price per kg/l/piece, availability, typed promotions (immediate, multibuy, loyalty) and best net offer.
| Parameter | Type | Description |
|---|---|---|
query * | string | short search term (in French), e.g. "spaghetti", "boeuf haché 5%" |
store * | string | retailer (see list_stores) |
limit | integer | maximum number of products |
get_product Product details
Reads a product page: ingredient list (allergens in capitals, possible traces), allergen statement if the site provides it, and origin. Ingredients are null for a raw product (fruit, fresh meat).
| Parameter | Type | Description |
|---|---|---|
product_id * | string | retailer product identifier (id field of search_products) |
store * | string | retailer (see list_stores) |
get_cart Read the cart
Reads the retailer's actual cart: lines (id, label, quantity, line total, unit price) and total.
| Parameter | Type | Description |
|---|---|---|
store * | string | retailer (see list_stores) |
get_order_conditions Order conditions
Reads, for one retailer or all of them (store omitted), the selected store, the booked slot, the next pickup and delivery slots (structured dates) and the minimum order. Books nothing.
| Parameter | Type | Description |
|---|---|---|
store | string | retailer; omitted = all of them, one after the other |
add_to_cart Add to cart
Adds units of a product on top of those already present, then reads the cart back to confirm.
| Parameter | Type | Description |
|---|---|---|
product_id * | string | retailer product identifier (id field of search_products) |
store * | string | retailer (see list_stores) |
quantity | integer | sale units to add |
set_quantity Set a quantity
Sets a product's quantity in the cart (replaces the current one; 0 removes the product), then reads the cart back.
| Parameter | Type | Description |
|---|---|---|
product_id * | string | retailer product identifier (id field of search_products) |
quantity * | integer | desired final quantity |
store * | string | retailer (see list_stores) |
remove_from_cart Remove from cart
Removes a product from the cart entirely, then reads the cart back.
| Parameter | Type | Description |
|---|---|---|
product_id * | string | retailer product identifier (id field of search_products) |
store * | string | retailer (see list_stores) |
find_stores Find a store
The retailer's stores around a postcode or town, nearest first (if the retailer supports it, see list_stores).
| Parameter | Type | Description |
|---|---|---|
query * | string | postcode or town, e.g. "75011" |
store * | string | retailer (see list_stores) |
set_store Select the store
Selects the retailer's active store among the find_stores results and remembers it. The site session must be on this store: on "session expired", open it on the site.
| Parameter | Type | Description |
|---|---|---|
store * | string | retailer (see list_stores) |
store_id * | string | id field of find_stores |
compare_carts Compare carts
Reads each retailer's cart: total, lines, minimum order and missing amount, next slots. Sorted from cheapest to most expensive.
| Parameter | Type | Description |
|---|---|---|
mode | string | targeted fulfilment mode |