Skip to main content
Glama

Compare a Canadian grocery list

compare_grocery_list
Read-onlyIdempotent

Compares current public chain prices for a list of catalogue item ids (from get_grocery_catalog) and quantities in one supported Canadian city; plan_grocery_order is the form that takes a list in the shopper's own words. A lowest-chain recommendation requires fresh full requested coverage at two eligible chains with no close call or package/reference-size reversal. Results keep missing items, exclusions, price dates, scope and source links, and each chain includes plain per-item storeLinks to its own product page or search, with the price date used. Each id is one product at its catalogue size (for example 4 L milk); a different size, variant or brand is a different product. Chain medians are not branch stock or guaranteed checkout quotes. Read-only: it does not buy, save a list, send email or access licensed or private data.

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": {
      "city": "<city>",
      "items": "<items>"
    },
    "name": "compare_grocery_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityYes
itemsYesIDs must be unique. Each id is one product at one package size (its catalogue name and referenceSize); a different size, variant or brand is a different product (for example, the catalogue's 4 L milk is not 2 L milk).
storesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / stores / items / enum
      Previous value: -[
      -  "atlanticsuperstore",
      -  "dominion",
      -  "farmboy",
      -  "foodbasics",
      -  "foodland",
      -  "fortinos",
      -  "freshco",
      -  "gianttiger",
      -  "iga",
      -  "loblaws",
      -  "maxi",
      -  "metro",
      -  "nofrills",
      -  "provigo",
      -  "safeway",
      -  "saveonfoods",
      -  "sobeys",
      -  "superc",
      -  "superstore",
      -  "thriftyfoods",
      -  "valumart",
      -  "voila",
      -  "walmart",
      -  "wholesaleclub",
      -  "yourindependentgrocer",
      -  "zehrs"
      -]New value: +[
      +  "atlanticsuperstore",
      +  "calgarycoop",
      +  "dominion",
      +  "farmboy",
      +  "foodbasics",
      +  "foodland",
      +  "fortinos",
      +  "freshco",
      +  "gianttiger",
      +  "iga",
      +  "loblaws",
      +  "maxi",
      +  "metro",
      +  "nofrills",
      +  "provigo",
      +  "safeway",
      +  "saveonfoods",
      +  "sobeys",
      +  "superc",
      +  "superstore",
      +  "thriftyfoods",
      +  "valumart",
      +  "voila",
      +  "walmart",
      +  "wholesaleclub",
      +  "yourindependentgrocer",
      +  "zehrs"
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / items / items / allOf
      Previous value: -[
      -  {
      -    "else": {
      -      "properties": {
      -        "qty": {
      -          "maximum": 20,
      -          "minimum": 1,
      -          "type": "integer"
      -        }
      -      }
      -    },
      -    "if": {
      -      "properties": {
      -        "id": {
      -          "enum": [
      -            7,
      -            8,
      -            9,
      -            11,
      -            18,
      -            21,
      -            27,
      -            50
      -          ]
      -        }
      -      }
      -    },
      -    "then": {
      -      "properties": {
      -        "qty": {
      -          "maximum": 10,
      -          "minimum": 0.25,
      -          "multipleOf": 0.25,
      -          "type": "number"
      -        }
      -      }
      -    }
      -  }
      -]New value: +[
      +  {
      +    "else": {
      +      "properties": {
      +        "qty": {
      +          "maximum": 20,
      +          "minimum": 1,
      +          "type": "integer"
      +        }
      +      }
      +    },
      +    "if": {
      +      "properties": {
      +        "id": {
      +          "enum": [
      +            7,
      +            8,
      +            9,
      +            11,
      +            18,
      +            21,
      +            27,
      +            50,
      +            104,
      +            107,
      +            108,
      +            111,
      +            112,
      +            120,
      +            121,
      +            122,
      +            123
      +          ]
      +        }
      +      }
      +    },
      +    "then": {
      +      "properties": {
      +        "qty": {
      +          "maximum": 10,
      +          "minimum": 0.25,
      +          "multipleOf": 0.25,
      +          "type": "number"
      +        }
      +      }
      +    }
      +  }
      +]
    • changedInput schema / properties / items / items / properties / id / enum
      Previous value: -[
      -  1,
      -  2,
      -  3,
      -  4,
      -  5,
      -  6,
      -  7,
      -  8,
      -  9,
      -  10,
      -  11,
      -  12,
      -  13,
      -  14,
      -  15,
      -  16,
      -  17,
      -  18,
      -  19,
      -  20,
      -  21,
      -  22,
      -  23,
      -  24,
      -  25,
      -  26,
      -  27,
      -  28,
      -  29,
      -  30,
      -  31,
      -  32,
      -  33,
      -  34,
      -  35,
      -  36,
      -  37,
      -  38,
      -  39,
      -  40,
      -  41,
      -  42,
      -  43,
      -  44,
      -  45,
      -  46,
      -  47,
      -  48,
      -  49,
      -  50
      -]New value: +[
      +  1,
      +  2,
      +  3,
      +  4,
      +  5,
      +  6,
      +  7,
      +  8,
      +  9,
      +  10,
      +  11,
      +  12,
      +  13,
      +  14,
      +  15,
      +  16,
      +  17,
      +  18,
      +  19,
      +  20,
      +  21,
      +  22,
      +  23,
      +  24,
      +  25,
      +  26,
      +  27,
      +  28,
      +  29,
      +  30,
      +  31,
      +  32,
      +  33,
      +  34,
      +  35,
      +  36,
      +  37,
      +  38,
      +  39,
      +  40,
      +  41,
      +  42,
      +  43,
      +  44,
      +  45,
      +  46,
      +  47,
      +  48,
      +  49,
      +  50,
      +  101,
      +  102,
      +  103,
      +  104,
      +  105,
      +  106,
      +  107,
      +  108,
      +  109,
      +  110,
      +  111,
      +  112,
      +  113,
      +  114,
      +  115,
      +  116,
      +  117,
      +  118,
      +  119,
      +  120,
      +  121,
      +  122,
      +  123,
      +  124,
      +  125,
      +  126,
      +  127,
      +  128,
      +  129,
      +  130,
      +  131,
      +  132,
      +  133,
      +  134,
      +  135,
      +  136,
      +  137,
      +  138,
      +  139,
      +  140
      +]
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, and the description adds real context beyond them: what the results retain (missing items, exclusions, price dates, scope, source links), per-chain storeLinks, and the caveat that chain medians are not branch stock or guaranteed checkout quotes. It also restates the read-only profile ('does not buy, save a list, send email'), which is redundant with annotations but harmless.

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 core comparison statement and the sibling distinction, then layers constraints and caveats. Dense but each sentence carries information; the closing read-only sentence partly duplicates the annotations and could be trimmed.

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?

No output schema exists, so the description must describe returns, and it does thoroughly (missing items, exclusions, price dates, scope, source links, storeLinks). The only material gap is the unexplained stores filter, which matters for a tool that otherwise documents its inputs carefully.

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?

With only 33% schema description coverage, the description carries weight and does: it explains that ids come from get_grocery_catalog, that each id is one product at its catalogue size (4 L milk is not 2 L milk), and that quantities are per item. The stores parameter is never mentioned, leaving one of three parameters undocumented in both schema and description.

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?

States a specific verb and resource ('Compares current public chain prices for a list of catalogue item ids') and explicitly distinguishes itself from plan_grocery_order, which handles lists in the shopper's own words. An agent can route between the two siblings without opening either schema.

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?

Names the alternative (plan_grocery_order) and the condition that selects it, and states the requirement for a lowest-chain recommendation (fresh full coverage at two eligible chains, no close call or size reversal). It does not spell out explicit when-not-to-use cases beyond that, so it falls just short of a 5.

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