Skip to main content
Glama

Brainy Prices — UAE Cost of Living

grocery_compare_list

Read-onlyIdempotent

Cheapest store for a shopping list: per-store subtotals, delivery fees, minimums. Observed + labelled estimates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
areaNo
itemsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. 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"
      +  }
      +]
  3. Added

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description does add one genuine behavioral disclosure beyond the annotations — that results mix observed data with labelled estimates, which affects how much the agent should trust the numbers — but says nothing about coverage, freshness, or failure modes.

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?

Two tight fragments, front-loaded with the tool's core promise and zero filler. It is arguably over-compressed, but nothing in it is wasted.

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 spelled out. For a simple two-parameter tool the definition is nearly adequate, but the total silence on the 'area' input leaves a real gap for correct invocation.

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% for both parameters. The description gestures at the 'items' list but gives no format or granularity guidance (product names? free text?), and the 'area' parameter is never mentioned, leaving half the input 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 outcome (cheapest store for a shopping list) plus the comparison dimensions it returns (subtotals, delivery fees, minimums), so the agent can distinguish it from grocery_products or grocery_stores. It stops short of explicitly differentiating itself from shopper_price_reports, which is the closest sibling.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives such as grocery_products, grocery_stores or shopper_price_reports. The usage context is only weakly implied by 'for a shopping list'.

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