handle-mcp
v1.12.1Your AI agent fills the cheapest cart at nemlig.com, BilkaToGo and REMA 1000.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_cart
Show the cart as it is now: lines, fees, total, whether the minimum order is met and `url`, the store's cart page where the human checks the cart and pays: give it to the human. With `store` that store's cart; without, every store's cart keyed by store name, a failing store (e.g. no login) as {"error": ...} next to the others. REMA 1000: the cart is the shopping list "handle-mcp" in REMA's app, where the human orders. Use it before set_cart_quantities to see what is there; for past orders use get_orders.
| Parameter | Type | Description |
|---|---|---|
store | One store: "nemlig", "bilkatogo" or "rema1000". Leave out for all. |
set_cart_quantities
Set ABSOLUTE quantities in one store's cart (0 removes the product). Never orders or pays. Product ids come from search_products, compare_basket or list_offers. Returns a result per product and the new cart with its `url`: give the human that link to check and pay. REMA 1000: sets the shopping list "handle-mcp", never another list.
| Parameter | Type | Description |
|---|---|---|
items * | object | Product id → absolute count, e.g. {"5012345": 2, "5098765": 0}. |
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
add_recipe_to_cart
Put a recipe's products in one store's cart, as get_recipe shows them. ASK THE HUMAN FIRST: show the list from get_recipe and get a yes. Never orders or pays. Adds to what is already in the cart, so calling it twice adds twice. `have_at_home` items (salt, oil) are left out unless named in `include`. `skip` leaves out ingredients; `swap` maps an ingredient (or product id) to one of its alternatives' product ids. Names: ingredient or product id. Returns before/added/after per product, the skipped items and the new cart. Check `ok` per product: a store can refuse some lines; tell the human which…
| Parameter | Type | Description |
|---|---|---|
recipe * | string | The recipe's link or id, as given to get_recipe. |
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
include | `have_at_home` items to buy anyway, e.g. ["olie"]. | |
persons | People to cook for, 2-12. Leave out for the recipe's own. | |
skip | Ingredient names or product ids to leave out. | |
swap | Ingredient name or product id → the alternative's product id. |
get_delivery_info
Show the delivery the human has already chosen in one store: time, edit deadline and next free day, plus fees and minimum order. `delivery_mode` is "home", "pickup" (BilkaToGo, REMA 1000, with `pickup_store`) or null when unknown; the time is null when none is chosen. To see free times to choose from, use list_delivery_slots. Only reads.
| Parameter | Type | Description |
|---|---|---|
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
list_delivery_slots
List free delivery times for the next `days` days with the delivery fee per slot, in time order, plus the 3 cheapest per store. nemlig: "Personlig" (you are home) or "Fleksibel" (left at the door). BilkaToGo: one flat fee, night delivery, or pickup times ("Afhentning") when the cart is set to pickup. REMA 1000: Køb & Hent times in the store chosen at login, no fee. Only reads: it never chooses a time, store or mode. The human chooses on the store's website. For the time already chosen, use get_delivery_info.
| Parameter | Type | Description |
|---|---|---|
days | integer | Days ahead to look, 1-14. |
stores | Stores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store. |
get_orders
List the human's past orders in one store, newest first: id, status, date and total. Use it for "what do we usually buy"; then get_order with an id for the products. nemlig and BilkaToGo; needs a login. Only reads.
| Parameter | Type | Description |
|---|---|---|
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
limit | integer | Orders to return, 1-25. |
get_order
Show one past order with every product bought: name, product id, count and price. Get the id from get_orders first. The product ids work in set_cart_quantities to buy the same again. nemlig and BilkaToGo; needs a login. Only reads.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order's `id` from get_orders. |
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
search_products
Search products in one or more stores. Returns price, price per kg/l, offers and EAN when known. Stores rank by relevance and put cheap products far down: when the human asks for the cheapest, use sort="unit_price" (per kg/l/stk) or "price". For a whole shopping list, use compare_basket.
| Parameter | Type | Description |
|---|---|---|
query * | string | What to find, in Danish, e.g. "letmælk". |
limit | integer | Products per store, 1-25. |
sort | string | "unit_price" is per kg/l/stk. |
stores | Stores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store. |
search_recipes
Find the stores' own recipes, e.g. "kylling karry". Returns name and link. Use it when the human names a dish; to browse by tag or category, use list_recipes. Use get_recipe for time, persons and the products to buy. nemlig and REMA 1000: BilkaToGo has no recipe search, use list_recipes with `category` there.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to search for, e.g. "kylling karry". |
limit | integer | Recipes per store, 1-25. |
stores | Stores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store. |
get_recipe
The products to buy for one of the store's recipes, as on its "Se varer og læg i kurv": per ingredient the store's product, packs for `persons` and alternatives. `have_at_home` items (salt, oil) are what the store assumes you have: left out of `total`, ask first. Also `image`, `description`, `method`, `tip`. Scale `ingredients` from `ingredients_persons`. `recipe` is the recipe's link or id from search_recipes or list_recipes. Put the products in the cart with add_recipe_to_cart after the human says yes. BilkaToGo: one pack per product, no alternatives; `persons` is fixed (null for pieces). R…
| Parameter | Type | Description |
|---|---|---|
recipe * | string | The recipe's link or id from search_recipes or list_recipes. |
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
persons | People to cook for, 2-12. Leave out for the recipe's own. |
list_recipes
Browse the store's recipes, with link, when the human has no dish in mind (for a dish by name, use search_recipes). No tags or category: this week's featured recipes (nemlig: "Ugens udvalgte"). With `tags`: recipes that have every tag, e.g. ["Familievenlig", "Budgetvenlig"] or ["Under 30 min", "Kylling"]. nemlig's tags include Under 20/30 min, Budgetvenlig, Familievenlig, Populær, Mad til flere dage, Vegetarisk, Kylling, Fisk, Oksekød, Gris and cuisines; an unknown tag answers with the full list. `category` (nemlig: aftensmad by default, frokost, madpakke, morgenmad, ...; a sub-category by n…
| Parameter | Type | Description |
|---|---|---|
category | e.g. "aftensmad", "frokost", "juleopskrifter/julefrokost" or "madplan" (the store's week plans). Leave out for the default. | |
ingredients | boolean | true: each recipe comes with its ingredient lines. With it, at most 25 recipes per call. |
limit | integer | Recipes per store, 1-100; with `ingredients` or `without` 1-25, a higher one is cut to 25. |
offset | Skip this many recipes per store, to read the next page (default 0). | |
stores | Stores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store. | |
tags | Every tag must match, e.g. ["Familievenlig"]. | |
without | Words the household does not eat, e.g. ["oregano", "fisk"]: each recipe gets `hits`, its name and ingredient lines that hold one. Removes nothing. |
list_offers
List this week's offers in each store, also items you would not search for. For one named product, use search_products. Without `category`, a first look only: nemlig's Skarp pris, Priskup, Dagstilbud, Undgå madspild and gifts; the first of BilkaToGo's offers; REMA 1000's leaflet (Avisvarer). For a meal plan or a shopping list, call once per `category` you buy from: every offer in it, in each store. Each product has price, before_price and offer_until (null when the store does not say), offer_text (multi-buy, max per customer) and campaign (the store's name for the offer). A product on two lis…
| Parameter | Type | Description |
|---|---|---|
category | One category: "frugt og grønt", "kød og fisk", "mejeri og æg", "pålæg", "brød og kager", "kolonial", "frost", "drikkevarer", "slik og snacks", "husholdning", "pleje", "baby". | |
limit | Without `category`: products per offer list, 1-25 (default 25). With it: products per store, 1-100 (default 60). | |
stores | Stores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store. |
get_nutrition
Nutrition per 100 g or 100 ml from the store's label: energy_kj, energy_kcal, fat, saturated_fat, carbohydrate, sugar, protein, salt, fibre as strings ("0.13", "<0.5"), null when the label leaves a line out. No label (often fresh meat, fruit): `nutrition` null with a `reason`. Up to 50 ids from search_products, list_offers or compare_basket; duplicates are removed. nemlig, BilkaToGo and REMA 1000; no login needed.
| Parameter | Type | Description |
|---|---|---|
product_ids * | array | Product ids from the same store, up to 50. |
store * | string | One store: "nemlig", "bilkatogo" or "rema1000". |
compare_basket
Price a shopping list in each store, e.g. ["2 x letmælk 1 l", "rugbrød", "æg 10 stk"]. Write the amount you need ("fior di latte 300 g"), not a pack size. Returns per item a suggested product and up to 5 "candidates" (the suggestion first, one øko when found) with the cost for the amount and flags: name_match, size_fits, prepared (cold cuts, smoked, breaded), processed (frost/konserves), blend, oeko. The suggestion is a guess by word rules: pick the candidate that fits the user, and ask when "sure" is false or none fits (search_products finds more). Unknown facts and false flags are left o…
| Parameter | Type | Description |
|---|---|---|
items * | array | One line per item with the amount, e.g. "rugbrød 1 kg". |
stores | Stores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store. |