Skip to main content
Glama

compare_basket

Read-only

Compare grocery basket costs across BILLA, SPAR, HOFER and dm, and find the lowest-cost chain and item-level mix to reduce grocery spending.

Instructions

What a shopping list costs at each chain. Give one product per item, as specific as a search ("vollmilch 1l", "barilla spaghetti"), with an optional quantity ("2x butter"). For each chain and item it takes the product whose name matches the item best, sold by the same unit (l, kg, piece) as at most chains, and the cheapest of equally good matches. Each pick lists up to two others: if the pick is not what was meant (a banana pudding for bananas), say so and use one of those instead.

Returns per chain {total, found, missing, items}, cheapest: the chain with the lowest total among those that found every item, and cheapest_mix: each item at whichever chain sells it cheapest.

Args: items: The shopping list, at most 15 items. chains: Default BILLA, SPAR and HOFER; add dm for drugstore goods, it has no food.

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>"
    },
    "name": "compare_basket"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
chainsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly and openWorld, so the description carries the real behavioral weight: it discloses the match-selection heuristic (best name match, same unit as most chains, cheapest of equally good matches), the two-item `others` escape hatch, the 15-item cap, and the exact return structure (total/found/missing/items plus cheapest and cheapest_mix). That is unusually complete disclosure for a read-only tool.

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?

Front-loaded with the one-line purpose, then argument details, then return shape — a sensible order. It is dense but nearly every sentence carries information; the sentence about unit matching and cheapest-of-equals is slightly tangled on first read.

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

Completeness5/5

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

With no output schema and 0% parameter coverage, the description supplies everything an agent needs: input phrasing, item limit, chain defaults, matching behavior, fallback via `others`, and the returned fields including cheapest and cheapest_mix. Nothing material is left for the agent to guess.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate and does: `items` is defined as one product per list entry with specificity and quantity conventions, capped at 15; `chains` defaults to BILLA/SPAR/HOFER with dm explained as drugstore-only. This adds format and policy meaning the bare schema cannot convey.

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?

Opens with a specific statement of what the tool produces: the cost of a shopping list at each chain. That distinguishes it from siblings like search_products, get_product, or get_promotions, which retrieve individual products rather than basket-level totals.

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?

Explains how to phrase items (as specific as a search, optional quantity like "2x butter") and what the default chains are, plus the concrete condition for adding dm (drugstore goods, no food). It also tells the agent what to do when a pick looks wrong: use one of the listed `others`. It stops short of naming an alternative tool for cases this one doesn't fit.

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