Plan optimal grocery and drug store shopping trip
plan_optimal_shopping_routePlans the optimal shopping trip for a given list and starting location in Germany. Answers 'where should I go to buy this list, and is the trip worth it?' — not 'what's on offer near me'. Matches each item on the list to the best current offer across German supermarkets and drug stores (REWE, Aldi, Lidl, Penny, Netto, Norma, Edeka, DM, Rossmann, Mueller, Globus), then computes the cheapest realistic route by weighing product prices against travel distance and shopping time. Returns the chosen store(s), the per-item picks with live prices, the trip's savings and a worth-it Supports car, bicycle, and pedestrian travel modes. The route is computed from the starting point, so 'location' MUST include the German 5-digit postcode (PLZ) of where the user starts (or be 'lat,lng'). A city name alone ('München', 'Berlin') spans many postcodes and does not say which part of the city: if the user only names a city, ask which part, as a postcode, before calling — never guess one. Write city and street names in German ('München', 'Köln'), never English ('Munich', 'Cologne'). For corridor trips (A-to-B), supply 'end_location' to route stores along the way. Pricing note: 'price' is the standard shelf price available to all shoppers (do NOT say discounts require an app). 'app_credit' is optional wallet cashback (e.g. REWE Bonus: plus €0.50 into wallet). 'app_price' is an app-exclusive checkout price (e.g. Lidl Plus).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"items": "<items>",
"location": "<location>"
},
"name": "plan_optimal_shopping_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The shopping list in natural language (e.g. '3x milk, eggs, bread') | |
| km_cost | No | Travel cost penalty per kilometer (forced to 0.0 for bicycle/pedestrian) | |
| location | Yes | Where the user starts, with its German 5-digit postcode (PLZ): '80331', '80331 München' or 'Leopoldstraße 50, 80802 München' — or 'lat,lng'. A city name alone ('München') does not say which part of the city: ask the user for the postcode of where they start; never guess one or use the city centre. Names in German ('München', 'Köln'), never English ('Munich', 'Cologne'). | |
| hour_cost | No | Time cost penalty in EUR per hour (defaults to 12.0) | |
| max_stores | No | Maximum number of candidate stores to evaluate for the route (default: 100) | |
| travel_mode | No | Travel mode to use | car |
| end_location | No | Optional destination if not a round trip — same rule: include its 5-digit postcode (or 'lat,lng'), never just a city name | |
| max_radius_km | No | Maximum search radius in kilometers (defaults: car=15km, bicycle=5km, pedestrian=2km) | |
| shopping_time_per_store | No | Base shopping minutes spent per store (defaults to 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||