Skip to main content
Glama

compare_basket

Read-only

Compares a shopping list across Danish grocery stores, returning per-item product candidates, totals, fees, and minimum-order status so you can pick a cart before setting quantities.

Instructions

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 out. Also total incl. fees and minimum order met. Only reads: use set_cart_quantities with the chosen ids after.

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
itemsYesOne line per item with the amount, e.g. "rugbrød 1 kg".
storesNoStores to ask, e.g. ["nemlig", "rema1000"]. Leave out to ask every store.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.1
    • addedInput schema / properties / items / description
      Added value: +"One line per item with the amount, e.g. \"rugbrød 1 kg\"."
    • addedInput schema / properties / stores / description
      Added value: +"Stores to ask, e.g. [\"nemlig\", \"rema1000\"]. Leave out to ask every store."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=true, destructiveHint=false), and the description reinforces this with 'Only reads'. Beyond that it adds real behavioral context: the suggestion is a word-rule guess, unknown facts and false flags are omitted, and a 'sure' false value signals low confidence. A 3 rather than higher because the confidence semantics of 'sure' and the flag definitions are named but never explained.

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?

It is front-loaded with the core action and example before the output contract, and every clause carries information. The dense parenthetical flag list makes it harder to scan than it needs to be, and the pack-size rule is stated twice (once as a directive, once in the opening example).

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?

There is no output schema, so the description carries the full burden of describing return values, and it does: per-item suggestion plus up to five labelled candidates with cost and flags, and an overall total including fees and minimum-order status. Nothing an agent needs to interpret the response or pick a next tool is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds genuine input guidance beyond the schema: 'Write the amount you need, not a pack size', with a worked example ('fior di latte 300 g'). The stores parameter is left entirely to the schema, which is adequate since the schema documents it.

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 opens with a specific verb and resource: 'Price a shopping list in each store', and immediately grounds it with a concrete example list. It separates itself cleanly from search_products (used for finding more) and set_cart_quantities (used afterwards to commit choices).

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

Usage Guidelines5/5

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

It states the follow-up flow explicitly: 'Only reads: use set_cart_quantities with the chosen ids after', and gives the fallback 'search_products finds more'. It also tells the agent when to stop and ask the user: 'ask when "sure" is false or none fits'.

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