Skip to main content
Glama

Cheapest store for a list

compare_basket
Read-only

Needs sign-in. The cheapest supermarket near a place for a whole list (product_ids with quantities), or the cheapest split across up to 3 stores, plus the next best single stores and what each is missing.

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
latNo
lngNo
langNoLanguage for product and chain nameshe
itemsYes
placeNoPlace in Israel: city, neighbourhood or address, Hebrew or English
radius_kmNoStores within this many km (default 5)
max_storesNoAllow splitting the basket across up to this many stores

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint true, openWorldHint false), and the description adds genuinely useful context beyond them: an authentication requirement and a summary of return content ('the next best single stores and what each is missing'). It omits cost/currency units, availability semantics, and any error behavior when no store matches.

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?

Effectively two sentences with zero filler, and the auth prerequisite is front-loaded before the functional description. The trailing 'plus the next best single stores and what each is missing' is dense but earns its place by describing return content.

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 7-parameter read-only tool with no output schema, the definition covers auth, input shape, split behavior, and a sketch of the response. Remaining gaps are minor: currency, handling of unavailable products, and behavior when the radius yields no stores.

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

Parameters3/5

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

Schema description coverage is 57%, so the description must add some meaning; it does clarify that items pair product_ids with quantities, that results are anchored to a place, and that max_stores bounds the split. However, it does not explain radius_km interaction, lang effects, or the province of the lat/lng bounds.

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

Purpose4/5

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

States a specific verb+resource: computes the cheapest supermarket near a place for a whole item list, or the cheapest split across up to 3 stores. The parenthetical '(product_ids with quantities)' and 'whole list' implicitly distinguish it from single-item comparison (compare_product), though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Provides the prerequisite 'Needs sign-in' and makes the basket-vs-single-item scope inferable, but never states when to prefer this over compare_product or search_products, nor any exclusions or failure cases.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources