Skip to main content
Glama
app-store-scraper-mcp

app-store-scraper-mcp

Get Aggregate Rating Count and 1–5 Star Histogram

get_app_ratings
Read-onlyIdempotent

Fetch an app's total rating count and 1-to-5 star histogram by numeric trackId and country storefront, enabling comparison of rating volume and star distribution across regions.

Instructions

Fetch the total user ratings count (ratings) and the 1-to-5 star breakdown (histogram with keys '1' through '5') for an application in a regional App Store storefront.

When to use: Call this tool when you already have the app's numeric id (trackId) and only need rating volume and star distribution (for example, comparing star histograms across multiple country storefronts). When NOT to use: If you also need general app metadata (title, price, version, developer) for the same storefront in the same step, call get_app with ratings: true instead to avoid redundant tool calls. If you need written user comments, call get_app_reviews. Does not accept appId (resolve bundle IDs via get_app or search_apps first).

Behavior: Read-only, cached for 5 minutes. Performs 1 lightweight HTML fragment request to Apple's customer-reviews endpoint and computes the exact ratings total by summing the 5 star buckets (fixing upstream's comma-truncation bug). Fails with 404 if the id is not found.

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": {
      "id": "<id>"
    },
    "name": "get_app_ratings"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesNumeric Apple iTunes trackId uniquely identifying the app (e.g. 553834731 for Candy Crush Saga). Obtainable from the `id` field returned by `search_apps`, `list_top_apps`, `list_developer_apps`, or `list_similar_apps`.
countryNoTwo-letter ISO 3166-1 alpha-2 country code selecting the regional App Store storefront (e.g. 'us', 'gb', 'de', 'jp'). Defaults to 'us'. Determines regional app availability, pricing currency, chart rankings, review pool, and default localized text language.

Output Schema

NameRequiredDescriptionDefault
ratingsYesTotal number of user ratings in the storefront, accurately summed across all 5 buckets of `histogram`.
histogramYesStar rating breakdown mapping star level ('1', '2', '3', '4', '5') to its rating count in the storefront.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.0
    • changedInput schema / properties / country / description
      Previous value: -"Two-letter country code of the store (default: us). Also affects result language."New value: +"Two-letter ISO 3166-1 alpha-2 country code selecting the regional App Store storefront (e.g. 'us', 'gb', 'de', 'jp'). Defaults to 'us'. Determines regional app availability, pricing currency, chart rankings, review pool, and default localized text language."
    • addedInput schema / properties / country / pattern
      Added value: +"^[a-zA-Z]{2}$"
    • changedInput schema / properties / id / description
      Previous value: -"Numeric iTunes trackId of the app, e.g. 553834731 (Candy Crush Saga)."New value: +"Numeric Apple iTunes trackId uniquely identifying the app (e.g. 553834731 for Candy Crush Saga). Obtainable from the `id` field returned by `search_apps`, `list_top_apps`, `list_developer_apps`, or `list_similar_apps`."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "description": "Aggregate user rating count and 1–5 star histogram for an app in a country storefront.",
      +  "properties": {
      +    "histogram": {
      +      "additionalProperties": {
      +        "description": "Number of user ratings in this star bucket.",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "description": "Star rating breakdown mapping star level ('1', '2', '3', '4', '5') to its rating count in the storefront.",
      +      "propertyNames": {
      +        "description": "Star bucket key from '1' (1 star) to '5' (5 stars).",
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "ratings": {
      +      "description": "Total number of user ratings in the storefront, accurately summed across all 5 buckets of `histogram`.",
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "ratings",
      +    "histogram"
      +  ],
      +  "type": "object"
      +}
  2. Addedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (which already declare read-only/idempotent/open-world), it discloses 5-minute caching, a single lightweight HTML fragment request to the customer-reviews endpoint, a computed total that corrects an upstream truncation bug, and a 404 failure mode. No contradiction with readOnlyHint=true or destructiveHint=false.

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?

Well front-loaded with labeled When to use / When NOT to use / Behavior sections, so an agent can scan it quickly. Slightly long, but nearly every clause carries actionable information; the upstream bug-fix detail is the only mildly expendable line.

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

Completeness5/5

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

For a two-parameter read with an output schema, an annotation set, and full schema coverage, the description still covers the missing pieces an agent needs: caching, failure mode, cost of the request, and cross-tool routing. Nothing material is left implicit.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already explains `id` and `country` in detail. The description still adds meaning by stating it does not accept `appId` and directing bundle-ID resolution through get_app or search_apps, and by tying `country` to the storefront selection.

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

Purpose5/5

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

States a specific verb and resource ('fetch total user ratings count and 1-to-5 star histogram') plus scope ('regional App Store storefront'), and names the exact return keys. An agent can distinguish it from get_app and get_app_reviews without opening any schema.

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

Usage Guidelines5/5

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

Explicit when-to-use ('already have the numeric id and only need rating volume and star distribution'), explicit when-not-to-use with the alternative named ('call get_app with ratings: true instead to avoid redundant tool calls'), plus a routing rule for reviews via get_app_reviews.

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