Skip to main content
Glama

Plan Lidl Grocery Trip (Per Country)

lidl_plan_grocery_trip
Read-only

Plan a grocery trip by matching your regular receipt items and optional extras to active weekly leaflet offers and Lidl Plus coupons, highlighting unactivated coupons and restock staples.

Instructions

Plan a grocery trip for one country ('nl' or 'de') by matching regularly bought receipt items and optional extra items against active weekly leaflet offers and Lidl Plus coupons, surfacing unactivated coupons and due-for-restock staples.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lidl_plan_grocery_trip"
  }
}

Input Schema

NameRequiredDescriptionDefault
countryNo2-letter Lidl country code (e.g. 'nl' or 'de'). Defaults to LIDL_COUNTRY ('nl').
storeIdNoOptional store key (auto-resolves your favorite store for the selected country if omitted).
daysBackNoOptional lookback window in days.
extraItemsNoOptional additional items to check for weekly discounts or coupons this trip.
yearOffsetNoOptional receipt year offset.
maxReceiptsNoMaximum recent receipts to inspect (default 25, max 60).
minPurchasesNoMinimum number of receipts an item must appear on to count as regular (default 2).
excludeDepositsNoExclude Pfand / Statiegeld lines (default true).
maxMatchesPerItemNoMaximum matching offers/coupons per item (default 3).

Output Schema

NameRequiredDescriptionDefault
noteNo
countryYes
storeIdNo
minPurchasesYes
dueForRestockYes
offersCheckedYes
otherRegularsYes
couponsCheckedYes
campaignsCheckedYes
receiptsAnalyzedYes
discountedRegularsYes
requestedItemDealsYes
couponsAnonymousFallbackYes
unactivatedMatchingCouponsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

readOnlyHint=true already tells the agent this is a safe read, and the description adds useful behavior by revealing that it derives 'regularly bought' items from receipt history and only *surfaces* unactivated coupons rather than activating them. It says nothing about prerequisites (login, cached receipt data), latency from aggregating multiple sources, or what happens when a country has no offers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with no filler, and the core action ('plan a grocery trip for one country') is front-loaded before the matching mechanics. The stacked participial phrases make it slightly harder to parse than a two-sentence split would be, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter composite tool this covers what an agent needs to decide and call: inputs it blends, country scoping, and the two special outputs. An output schema exists so return values need no explanation, and the read-only annotation covers safety; only auth/data-availability preconditions are unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns credit by framing the parameters conceptually: 'regularly bought receipt items' explains the coupled meaning of minPurchases, maxReceipts, daysBack and yearOffset, and 'optional extra items' plus 'due-for-restock staples' map to extraItems and the restock logic. The country parameter's 'nl'/'de' examples merely restate the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and composite resource: planning a grocery trip for one country by matching regular receipt items plus optional extras against leaflet offers and Lidl Plus coupons. It also enumerates the distinct outputs (unactivated coupons, restock-due staples), which clearly separates it from single-purpose siblings like lidl_get_coupons or lidl_search_offers.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage context is clear: this is the aggregate, personal-history-driven trip planner, implicitly distinct from the raw lookup tools. It does not, however, state when NOT to use it (e.g., for a one-off search use lidl_search_offers) or mention any prerequisites such as being logged in or having receipt history available.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.