Skip to main content
Glama

Brainy Prices — UAE Cost of Living

grocery_compare_list

Read-onlyIdempotent

Use when asked about a grocery basket; e.g. {"items":["milk"]}. Cheapest store for a list: subtotals, delivery fees, minimums. items: ["milk"]. Observed + labelled estimates.

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": "grocery_compare_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNo
itemsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "data": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "area": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "ok": {
      -                    "type": "boolean"
      -                  },
      -                  "reason": {
      -                    "type": [
      -                      "string",
      -                      "null"
      -                    ]
      -                  },
      -                  "value": {
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "ok",
      -                  "reason",
      -                  "value"
      -                ],
      -                "type": "object"
      -              },
      -              "below_minimum_stores": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "minimum_order_aed": {
      -                      "type": "number"
      -                    },
      -                    "shortfall_aed": {
      -                      "type": "number"
      -                    },
      -                    "store_id": {
      -                      "type": "string"
      -                    },
      -                    "store_name": {
      -                      "type": "string"
      -                    },
      -                    "subtotal_aed": {
      -                      "type": "number"
      -                    }
      -                  },
      -                  "required": [
      -                    "store_id",
      -                    "store_name",
      -                    "minimum_order_aed",
      -                    "subtotal_aed",
      -                    "shortfall_aed"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "browser_handoff_truncated": {
      -                "type": "boolean"
      -              },
      -              "catalog_compiled_at": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "confidence": {
      -                "enum": [
      -                  "high",
      -                  "medium",
      -                  "low",
      -                  "none"
      -                ]
      -              },
      -              "items": {
      -                "items": {
      -                  "additionalProperties": false,
      -                  "properties": {
      -                    "at_recommended_store": {
      -                      "anyOf": [
      -                        {
      -                          "$ref": "#/$defs/OfferAt"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ]
      -                    },
      -                    "candidates": {
      -                      "items": {
      -                        "additionalProperties": false,
      -                        "properties": {
      -                          "name": {
      -                            "type": "string"
      -                          },
      -                          "product_id": {
      -                            "type": "string"
      -                          }
      -                        },
      -                        "required": [
      -                          "product_id",
      -                          "name"
      -                        ],
      -                        "type": "object"
      -                      },
      -                      "type": "array"
      -                    },
      -                    "cheapest_seen": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "cost_aed": {
      -                          "type": "number"
      -                        },
      -                        "store_id": {
      -                          "type": "string"
      -                        },
      -                        "store_name": {
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "store_id",
      -                        "store_name",
      -                        "cost_aed"
      -                      ],
      -                      "type": [
      -                        "object",
      -                        "null"
      -                      ]
      -                    },
      -                    "estimate": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "as_of": {
      -                          "type": "string"
      -                        },
      -                        "basis": {
      -                          "additionalProperties": true,
      -                          "type": "object"
      -                        },
      -                        "confidence": {
      -                          "enum": [
      -                            "high",
      -                            "medium",
      -                            "low"
      -                          ]
      -                        },
      -                        "kind": {
      -                          "const": "estimate"
      -                        },
      -                        "label": {
      -                          "const": "Estimate — not a store price"
      -                        },
      -                        "method": {
      -                          "enum": [
      -                            "official_same_product",
      -                            "own_last_observed",
      -                            "official_category",
      -                            "category_median",
      -                            "shopper_reports"
      -                          ]
      -                        },
      -                        "packs": {
      -                          "type": [
      -                            "number",
      -                            "null"
      -                          ]
      -                        },
      -                        "range_aed": {
      -                          "additionalProperties": false,
      -                          "properties": {
      -                            "high_aed": {
      -                              "type": "number"
      -                            },
      -                            "low_aed": {
      -                              "type": "number"
      -                            }
      -                          },
      -                          "type": "object"
      -                        },
      -                        "unit": {
      -                          "enum": [
      -                            "kg",
      -                            "l",
      -                            "each"
      -                          ]
      -                        },
      -                        "unit_value_aed": {
      -                          "type": "number"
      -                        },
      -                        "value_aed": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "type": "object"
      -                    },
      -                    "match": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "next_step": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "price": {
      -                      "type": "null"
      -                    },
      -                    "product": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "comparison": {
      -                          "enum": [
      -                            "exact",
      -                            "equivalent"
      -                          ]
      -                        },
      -                        "name": {
      -                          "type": "string"
      -                        },
      -                        "product_id": {
      -                          "type": "string"
      -                        },
      -                        "unit": {
      -                          "enum": [
      -                            "each",
      -                            "kg",
      -                            "l"
      -                          ]
      -                        }
      -                      },
      -                      "required": [
      -                        "product_id",
      -                        "name",
      -                        "comparison",
      -                        "unit"
      -                      ],
      -                      "type": [
      -                        "object",
      -                        "null"
      -                      ]
      -                    },
      -                    "quantity": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "assumed": {
      -                          "type": "boolean"
      -                        },
      -                        "source": {
      -                          "type": "string"
      -                        },
      -                        "unit": {
      -                          "enum": [
      -                            "each",
      -                            "kg",
      -                            "l"
      -                          ]
      -                        },
      -                        "value": {
      -                          "type": "number"
      -                        }
      -                      },
      -                      "required": [
      -                        "value",
      -                        "unit",
      -                        "source",
      -                        "assumed"
      -                      ],
      -                      "type": [
      -                        "object",
      -                        "null"
      -                      ]
      -                    },
      -                    "status": {
      -                      "enum": [
      -                        "compared",
      -                        "not_compared",
      -                        "unresolved"
      -                      ]
      -                    },
      -                    "text": {
      -                      "type": "string"
      -                    },
      -                    "unresolved_reason": {
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    }
      -                  },
      -                  "required": [
      -                    "text",
      -                    "status",
      -                    "match",
      -                    "product",
      -                    "quantity",
      -                    "at_recommended_store",
      -                    "cheapest_seen",
      -                    "unresolved_reason",
      -                    "candidates",
      -                    "next_step"
      -                  ],
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "outcome": {
      -                "enum": [
      -                  "estimated",
      -                  "provisional",
      -                  "insufficient",
      -                  "single_store",
      -                  "empty",
      -                  "blocked"
      -                ]
      -              },
      -              "ranking": {
      -                "items": {
      -                  "$ref": "#/$defs/StoreTotal"
      -                },
      -                "type": "array"
      -              },
      -              "recommended_store": {
      -                "anyOf": [
      -                  {
      -                    "$ref": "#/$defs/StoreTotal"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "single_product_mode": {
      -                "type": "boolean"
      -              },
      -              "totals": {
      -                "$ref": "#/$defs/EstimateTotals"
      -              }
      -            },
      -            "required": [
      -              "outcome",
      -              "confidence",
      -              "single_product_mode",
      -              "catalog_compiled_at",
      -              "area",
      -              "recommended_store",
      -              "ranking",
      -              "items",
      -              "below_minimum_stores",
      -              "browser_handoff_truncated"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "links": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "docs": {
      -            "type": "string"
      -          },
      -          "next": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "open_in_browser": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "self": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "self",
      -          "next",
      -          "open_in_browser",
      -          "docs"
      -        ],
      -        "type": "object"
      -      },
      -      "meta": {
      -        "additionalProperties": true,
      -        "required": [
      -          "api_version",
      -          "content_language",
      -          "generated_at",
      -          "currency",
      -          "attribution",
      -          "disclaimer",
      -          "dataset",
      -          "page"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "meta",
      -      "data",
      -      "links"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "message": {
      -            "type": "string"
      -          },
      -          "retry_after_s": {
      -            "type": [
      -              "integer",
      -              "null"
      -            ]
      -          },
      -          "retryable": {
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message",
      -          "retryable",
      -          "retry_after_s"
      -        ],
      -        "type": "object"
      -      },
      -      "request_id": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "error",
      -      "request_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "area": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "ok": {
      +                    "type": "boolean"
      +                  },
      +                  "reason": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "value": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "ok",
      +                  "reason",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              "below_minimum_stores": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "minimum_order_aed": {
      +                      "type": "number"
      +                    },
      +                    "shortfall_aed": {
      +                      "type": "number"
      +                    },
      +                    "store_id": {
      +                      "type": "string"
      +                    },
      +                    "store_name": {
      +                      "type": "string"
      +                    },
      +                    "subtotal_aed": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "store_id",
      +                    "store_name",
      +                    "minimum_order_aed",
      +                    "subtotal_aed",
      +                    "shortfall_aed"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "browser_handoff_truncated": {
      +                "type": "boolean"
      +              },
      +              "catalog_compiled_at": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "confidence": {
      +                "enum": [
      +                  "high",
      +                  "medium",
      +                  "low",
      +                  "none"
      +                ]
      +              },
      +              "items": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "at_recommended_store": {
      +                      "anyOf": [
      +                        {
      +                          "$ref": "#/$defs/OfferAt"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "candidates": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "name": {
      +                            "type": "string"
      +                          },
      +                          "product_id": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "product_id",
      +                          "name"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "cheapest_seen": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "cost_aed": {
      +                          "type": "number"
      +                        },
      +                        "store_id": {
      +                          "type": "string"
      +                        },
      +                        "store_name": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "store_id",
      +                        "store_name",
      +                        "cost_aed"
      +                      ],
      +                      "type": [
      +                        "object",
      +                        "null"
      +                      ]
      +                    },
      +                    "estimate": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "as_of": {
      +                          "type": "string"
      +                        },
      +                        "basis": {
      +                          "additionalProperties": true,
      +                          "type": "object"
      +                        },
      +                        "confidence": {
      +                          "enum": [
      +                            "high",
      +                            "medium",
      +                            "low"
      +                          ]
      +                        },
      +                        "kind": {
      +                          "const": "estimate"
      +                        },
      +                        "label": {
      +                          "const": "Estimate — not a store price"
      +                        },
      +                        "method": {
      +                          "enum": [
      +                            "official_same_product",
      +                            "own_last_observed",
      +                            "official_category",
      +                            "category_median",
      +                            "shopper_reports"
      +                          ]
      +                        },
      +                        "packs": {
      +                          "type": [
      +                            "number",
      +                            "null"
      +                          ]
      +                        },
      +                        "range_aed": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "high_aed": {
      +                              "type": "number"
      +                            },
      +                            "low_aed": {
      +                              "type": "number"
      +                            }
      +                          },
      +                          "type": "object"
      +                        },
      +                        "unit": {
      +                          "enum": [
      +                            "kg",
      +                            "l",
      +                            "each"
      +                          ]
      +                        },
      +                        "unit_value_aed": {
      +                          "type": "number"
      +                        },
      +                        "value_aed": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "type": "object"
      +                    },
      +                    "match": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "next_step": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "price": {
      +                      "type": "null"
      +                    },
      +                    "product": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "comparison": {
      +                          "enum": [
      +                            "exact",
      +                            "equivalent"
      +                          ]
      +                        },
      +                        "name": {
      +                          "type": "string"
      +                        },
      +                        "product_id": {
      +                          "type": "string"
      +                        },
      +                        "unit": {
      +                          "enum": [
      +                            "each",
      +                            "kg",
      +                            "l"
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "product_id",
      +                        "name",
      +                        "comparison",
      +                        "unit"
      +                      ],
      +                      "type": [
      +                        "object",
      +                        "null"
      +                      ]
      +                    },
      +                    "quantity": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "assumed": {
      +                          "type": "boolean"
      +                        },
      +                        "source": {
      +                          "type": "string"
      +                        },
      +                        "unit": {
      +                          "enum": [
      +                            "each",
      +                            "kg",
      +                            "l"
      +                          ]
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "value",
      +                        "unit",
      +                        "source",
      +                        "assumed"
      +                      ],
      +                      "type": [
      +                        "object",
      +                        "null"
      +                      ]
      +                    },
      +                    "status": {
      +                      "enum": [
      +                        "compared",
      +                        "not_compared",
      +                        "unresolved"
      +                      ]
      +                    },
      +                    "text": {
      +                      "type": "string"
      +                    },
      +                    "unresolved_reason": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "text",
      +                    "status",
      +                    "match",
      +                    "product",
      +                    "quantity",
      +                    "at_recommended_store",
      +                    "cheapest_seen",
      +                    "unresolved_reason",
      +                    "candidates",
      +                    "next_step"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "outcome": {
      +                "enum": [
      +                  "estimated",
      +                  "provisional",
      +                  "insufficient",
      +                  "single_store",
      +                  "empty",
      +                  "blocked"
      +                ]
      +              },
      +              "ranking": {
      +                "items": {
      +                  "$ref": "#/$defs/StoreTotal"
      +                },
      +                "type": "array"
      +              },
      +              "recommended_store": {
      +                "anyOf": [
      +                  {
      +                    "$ref": "#/$defs/StoreTotal"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "single_product_mode": {
      +                "type": "boolean"
      +              },
      +              "totals": {
      +                "$ref": "#/$defs/EstimateTotals"
      +              }
      +            },
      +            "required": [
      +              "outcome",
      +              "confidence",
      +              "single_product_mode",
      +              "catalog_compiled_at",
      +              "area",
      +              "recommended_store",
      +              "ranking",
      +              "items",
      +              "below_minimum_stores",
      +              "browser_handoff_truncated"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "links": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "docs": {
      +            "type": "string"
      +          },
      +          "next": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "open_in_browser": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "self": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "self",
      +          "next",
      +          "open_in_browser",
      +          "docs"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "additionalProperties": true,
      +        "required": [
      +          "api_version",
      +          "content_language",
      +          "generated_at",
      +          "currency",
      +          "attribution",
      +          "disclaimer",
      +          "dataset",
      +          "page"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "meta",
      +      "data",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "required": [
      +      "error",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  3. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  4. Changed15 schema fields changed
    • removedOutput schema / $defs / ComparisonLine
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "at_recommended_store": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/OfferAt"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "candidates": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "name": {
      -            "type": "string"
      -          },
      -          "product_id": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "product_id",
      -          "name"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "cheapest_seen": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "cost_aed": {
      -          "type": "number"
      -        },
      -        "store_id": {
      -          "type": "string"
      -        },
      -        "store_name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "store_id",
      -        "store_name",
      -        "cost_aed"
      -      ],
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "match": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "next_step": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "product": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "comparison": {
      -          "enum": [
      -            "exact",
      -            "equivalent"
      -          ],
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        },
      -        "product_id": {
      -          "type": "string"
      -        },
      -        "unit": {
      -          "enum": [
      -            "each",
      -            "kg",
      -            "l"
      -          ],
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "product_id",
      -        "name",
      -        "comparison",
      -        "unit"
      -      ],
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "quantity": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "assumed": {
      -          "type": "boolean"
      -        },
      -        "source": {
      -          "type": "string"
      -        },
      -        "unit": {
      -          "enum": [
      -            "each",
      -            "kg",
      -            "l"
      -          ],
      -          "type": "string"
      -        },
      -        "value": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "value",
      -        "unit",
      -        "source",
      -        "assumed"
      -      ],
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "status": {
      -      "enum": [
      -        "compared",
      -        "not_compared",
      -        "unresolved"
      -      ],
      -      "type": "string"
      -    },
      -    "text": {
      -      "type": "string"
      -    },
      -    "unresolved_reason": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "text",
      -    "status",
      -    "match",
      -    "product",
      -    "quantity",
      -    "at_recommended_store",
      -    "cheapest_seen",
      -    "unresolved_reason",
      -    "candidates",
      -    "next_step"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / $defs / EstimateTotals
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "estimated_aed": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "high_aed": {
      +          "type": "number"
      +        },
      +        "low_aed": {
      +          "type": "number"
      +        },
      +        "value_aed": {
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "items_estimated": {
      +      "type": "integer"
      +    },
      +    "items_observed": {
      +      "type": "integer"
      +    },
      +    "items_unknown": {
      +      "type": "integer"
      +    },
      +    "observed_aed": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / $defs / GroceryComparison
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "area": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "ok": {
      -          "type": "boolean"
      -        },
      -        "reason": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "value": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "ok",
      -        "reason",
      -        "value"
      -      ],
      -      "type": "object"
      -    },
      -    "below_minimum_stores": {
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "minimum_order_aed": {
      -            "type": "number"
      -          },
      -          "shortfall_aed": {
      -            "type": "number"
      -          },
      -          "store_id": {
      -            "type": "string"
      -          },
      -          "store_name": {
      -            "type": "string"
      -          },
      -          "subtotal_aed": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "store_id",
      -          "store_name",
      -          "minimum_order_aed",
      -          "subtotal_aed",
      -          "shortfall_aed"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "browser_handoff_truncated": {
      -      "type": "boolean"
      -    },
      -    "catalog_compiled_at": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "confidence": {
      -      "enum": [
      -        "high",
      -        "medium",
      -        "low",
      -        "none"
      -      ],
      -      "type": "string"
      -    },
      -    "items": {
      -      "items": {
      -        "$ref": "#/$defs/ComparisonLine"
      -      },
      -      "type": "array"
      -    },
      -    "outcome": {
      -      "enum": [
      -        "estimated",
      -        "provisional",
      -        "insufficient",
      -        "single_store",
      -        "empty",
      -        "blocked"
      -      ],
      -      "type": "string"
      -    },
      -    "ranking": {
      -      "items": {
      -        "$ref": "#/$defs/StoreTotal"
      -      },
      -      "type": "array"
      -    },
      -    "recommended_store": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/StoreTotal"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "single_product_mode": {
      -      "type": "boolean"
      -    }
      -  },
      -  "required": [
      -    "outcome",
      -    "confidence",
      -    "single_product_mode",
      -    "catalog_compiled_at",
      -    "area",
      -    "recommended_store",
      -    "ranking",
      -    "items",
      -    "below_minimum_stores",
      -    "browser_handoff_truncated"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / GroceryComparisonResponse
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "data": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/GroceryComparison"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "links": {
      -      "$ref": "#/$defs/Links"
      -    },
      -    "meta": {
      -      "$ref": "#/$defs/ResponseMeta"
      -    }
      -  },
      -  "required": [
      -    "meta",
      -    "data",
      -    "links"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / Links
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "docs": {
      -      "type": "string"
      -    },
      -    "next": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "open_in_browser": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "self": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "self",
      -    "next",
      -    "open_in_browser",
      -    "docs"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / $defs / OfferAt / properties / sale_mode / type
      Removed value: -"string"
    • removedOutput schema / $defs / OfferAt / properties / unit / type
      Removed value: -"string"
    • removedOutput schema / $defs / ResponseMeta
      Removed value: -{
      -  "additionalProperties": true,
      -  "required": [
      -    "api_version",
      -    "content_language",
      -    "generated_at",
      -    "currency",
      -    "attribution",
      -    "disclaimer",
      -    "dataset",
      -    "page"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / $defs / StoreTotal / properties / cart
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "add_all_url": {
      +      "type": "null"
      +    },
      +    "items": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "packs": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "text": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "method": {
      +      "const": "links"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / $defs / StoreTotal / properties / estimated_label
      Added value: +{
      +  "const": "items not priced at this store — estimated generic price"
      +}
    • removedOutput schema / $defs / StoreTotal / properties / ship_reason / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • addedOutput schema / $defs / StoreTotal / properties / totals
      Added value: +{
      +  "$ref": "#/$defs/EstimateTotals"
      +}
    • removedOutput schema / $defs / StoreTotal / properties / unit / type
      Removed value: -[
      -  "string",
      -  "null"
      -]
    • removedOutput schema / $defs / ToolFailure
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "error": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "code": {
      -          "type": "string"
      -        },
      -        "message": {
      -          "type": "string"
      -        },
      -        "retry_after_s": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "retryable": {
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "code",
      -        "message",
      -        "retryable",
      -        "retry_after_s"
      -      ],
      -      "type": "object"
      -    },
      -    "request_id": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "required": [
      -    "error",
      -    "request_id"
      -  ],
      -  "type": "object"
      -}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/$defs/GroceryComparisonResponse"
      -  },
      -  {
      -    "$ref": "#/$defs/ToolFailure"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "data": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "area": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "ok": {
      +                    "type": "boolean"
      +                  },
      +                  "reason": {
      +                    "type": [
      +                      "string",
      +                      "null"
      +                    ]
      +                  },
      +                  "value": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "ok",
      +                  "reason",
      +                  "value"
      +                ],
      +                "type": "object"
      +              },
      +              "below_minimum_stores": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "minimum_order_aed": {
      +                      "type": "number"
      +                    },
      +                    "shortfall_aed": {
      +                      "type": "number"
      +                    },
      +                    "store_id": {
      +                      "type": "string"
      +                    },
      +                    "store_name": {
      +                      "type": "string"
      +                    },
      +                    "subtotal_aed": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "store_id",
      +                    "store_name",
      +                    "minimum_order_aed",
      +                    "subtotal_aed",
      +                    "shortfall_aed"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "browser_handoff_truncated": {
      +                "type": "boolean"
      +              },
      +              "catalog_compiled_at": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "confidence": {
      +                "enum": [
      +                  "high",
      +                  "medium",
      +                  "low",
      +                  "none"
      +                ]
      +              },
      +              "items": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "at_recommended_store": {
      +                      "anyOf": [
      +                        {
      +                          "$ref": "#/$defs/OfferAt"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "candidates": {
      +                      "items": {
      +                        "additionalProperties": false,
      +                        "properties": {
      +                          "name": {
      +                            "type": "string"
      +                          },
      +                          "product_id": {
      +                            "type": "string"
      +                          }
      +                        },
      +                        "required": [
      +                          "product_id",
      +                          "name"
      +                        ],
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "cheapest_seen": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "cost_aed": {
      +                          "type": "number"
      +                        },
      +                        "store_id": {
      +                          "type": "string"
      +                        },
      +                        "store_name": {
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "store_id",
      +                        "store_name",
      +                        "cost_aed"
      +                      ],
      +                      "type": [
      +                        "object",
      +                        "null"
      +                      ]
      +                    },
      +                    "estimate": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "as_of": {
      +                          "type": "string"
      +                        },
      +                        "basis": {
      +                          "additionalProperties": true,
      +                          "type": "object"
      +                        },
      +                        "confidence": {
      +                          "enum": [
      +                            "high",
      +                            "medium",
      +                            "low"
      +                          ]
      +                        },
      +                        "kind": {
      +                          "const": "estimate"
      +                        },
      +                        "label": {
      +                          "const": "Estimate — not a store price"
      +                        },
      +                        "method": {
      +                          "enum": [
      +                            "official_same_product",
      +                            "own_last_observed",
      +                            "official_category",
      +                            "category_median",
      +                            "shopper_reports"
      +                          ]
      +                        },
      +                        "packs": {
      +                          "type": [
      +                            "number",
      +                            "null"
      +                          ]
      +                        },
      +                        "range_aed": {
      +                          "additionalProperties": false,
      +                          "properties": {
      +                            "high_aed": {
      +                              "type": "number"
      +                            },
      +                            "low_aed": {
      +                              "type": "number"
      +                            }
      +                          },
      +                          "type": "object"
      +                        },
      +                        "unit": {
      +                          "enum": [
      +                            "kg",
      +                            "l",
      +                            "each"
      +                          ]
      +                        },
      +                        "unit_value_aed": {
      +                          "type": "number"
      +                        },
      +                        "value_aed": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "type": "object"
      +                    },
      +                    "match": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "next_step": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "price": {
      +                      "type": "null"
      +                    },
      +                    "product": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "comparison": {
      +                          "enum": [
      +                            "exact",
      +                            "equivalent"
      +                          ]
      +                        },
      +                        "name": {
      +                          "type": "string"
      +                        },
      +                        "product_id": {
      +                          "type": "string"
      +                        },
      +                        "unit": {
      +                          "enum": [
      +                            "each",
      +                            "kg",
      +                            "l"
      +                          ]
      +                        }
      +                      },
      +                      "required": [
      +                        "product_id",
      +                        "name",
      +                        "comparison",
      +                        "unit"
      +                      ],
      +                      "type": [
      +                        "object",
      +                        "null"
      +                      ]
      +                    },
      +                    "quantity": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "assumed": {
      +                          "type": "boolean"
      +                        },
      +                        "source": {
      +                          "type": "string"
      +                        },
      +                        "unit": {
      +                          "enum": [
      +                            "each",
      +                            "kg",
      +                            "l"
      +                          ]
      +                        },
      +                        "value": {
      +                          "type": "number"
      +                        }
      +                      },
      +                      "required": [
      +                        "value",
      +                        "unit",
      +                        "source",
      +                        "assumed"
      +                      ],
      +                      "type": [
      +                        "object",
      +                        "null"
      +                      ]
      +                    },
      +                    "status": {
      +                      "enum": [
      +                        "compared",
      +                        "not_compared",
      +                        "unresolved"
      +                      ]
      +                    },
      +                    "text": {
      +                      "type": "string"
      +                    },
      +                    "unresolved_reason": {
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "required": [
      +                    "text",
      +                    "status",
      +                    "match",
      +                    "product",
      +                    "quantity",
      +                    "at_recommended_store",
      +                    "cheapest_seen",
      +                    "unresolved_reason",
      +                    "candidates",
      +                    "next_step"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "outcome": {
      +                "enum": [
      +                  "estimated",
      +                  "provisional",
      +                  "insufficient",
      +                  "single_store",
      +                  "empty",
      +                  "blocked"
      +                ]
      +              },
      +              "ranking": {
      +                "items": {
      +                  "$ref": "#/$defs/StoreTotal"
      +                },
      +                "type": "array"
      +              },
      +              "recommended_store": {
      +                "anyOf": [
      +                  {
      +                    "$ref": "#/$defs/StoreTotal"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ]
      +              },
      +              "single_product_mode": {
      +                "type": "boolean"
      +              },
      +              "totals": {
      +                "$ref": "#/$defs/EstimateTotals"
      +              }
      +            },
      +            "required": [
      +              "outcome",
      +              "confidence",
      +              "single_product_mode",
      +              "catalog_compiled_at",
      +              "area",
      +              "recommended_store",
      +              "ranking",
      +              "items",
      +              "below_minimum_stores",
      +              "browser_handoff_truncated"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "links": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "docs": {
      +            "type": "string"
      +          },
      +          "next": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "open_in_browser": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "self": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "self",
      +          "next",
      +          "open_in_browser",
      +          "docs"
      +        ],
      +        "type": "object"
      +      },
      +      "meta": {
      +        "additionalProperties": true,
      +        "required": [
      +          "api_version",
      +          "content_language",
      +          "generated_at",
      +          "currency",
      +          "attribution",
      +          "disclaimer",
      +          "dataset",
      +          "page"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "meta",
      +      "data",
      +      "links"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "code": {
      +            "type": "string"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "retry_after_s": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "retryable": {
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message",
      +          "retryable",
      +          "retry_after_s"
      +        ],
      +        "type": "object"
      +      },
      +      "request_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "error",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Added

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered without help. The description adds one genuinely non-obvious trait — that some figures are "observed" prices while others are "labelled estimates" — which matters for trusting results, but the phrase is compressed and does not say which fields are estimates or how delivery fees/minimums are derived.

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 usage trigger and kept to a few short clauses with no filler prose. It loses a point for redundancy — the same {"items":["milk"]} example is given twice in different forms — and for a fragmentary style that reads more like notes than guidance.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the annotations cover safety. Still, for a two-parameter comparison tool the `area` parameter is unexplained and the meaning of "estimates" versus observed prices is left for the agent to guess, leaving the definition adequate but incomplete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden. It only illustrates the `items` parameter by example (["milk"]) without explaining semantics such as item naming or the 40-item cap, and it never mentions the `area` parameter at all — one of two parameters is effectively undocumented anywhere.

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?

The description names a specific operation on a specific resource: find the cheapest store for a grocery list, returning subtotals, delivery fees, and minimums. That is a real verb+resource statement rather than a restatement of the name, though it is delivered in telegraphic fragments rather than a sentence.

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?

"Use when asked about a grocery basket" gives an explicit trigger condition, which is better than nothing. However, there is no when-not guidance and no named alternative (e.g. browsing individual products vs. comparing a basket), so the agent must infer boundaries from sibling names alone.

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