Skip to main content
Glama

Brainy Prices — UAE Cost of Living

grocery_compare_list

Read-onlyIdempotent

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

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior. The description adds useful behavioral context by noting that results include observed prices plus labelled estimates, and that delivery fees and minimums are factored in.

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?

The description is short and front-loaded, with no filler. However, the telegraphic style and embedded example make it slightly less structured than ideal.

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 annotations cover safety. Still, the optional area parameter is undocumented and there is no guidance on alternatives, leaving meaningful gaps for an agent.

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 must compensate. It gives an example for items (["milk"]) but does not explain the optional area parameter, item matching rules, or limits such as max 40 items.

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 states a specific function: finding the cheapest store for a grocery list, including subtotals, delivery fees, and minimums. It is clear enough to distinguish from grocery_products and grocery_stores, though it does not explicitly name those alternatives.

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?

Usage is implied by 'for a list' and the example item, but there is no explicit guidance on when to use this versus grocery_products, grocery_stores, or shopper_price_reports. No exclusions or prerequisites are stated.

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