Skip to main content
Glama

datasets_apps_charts_facets

Read-only

Return up to 50 facet buckets with counts for one apps-charts field using the filters from datasets_apps_charts_search. facet accepts store, collection, chart_type, platform, category, country, app_id, snapshot_date, or free; page and page_size do not change counts; sort is validated but does not change bucket order. A snapshot_date facet without date spans all history. Other facets use the same search date scope: latest snapshot by default when applicable, full history for a single-app filter or sort=date_desc, and only the requested day when date is supplied. Use datasets_apps_charts_search to find chart records.

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": {
      "facet": "<facet>"
    },
    "name": "datasets_apps_charts_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over chart-entry title and developer, max 256 characters.
dateNoOptional snapshot date filter, yyyy-MM-dd. Defaults to the latest available snapshot (today's chart).
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: rank (chart order), rank_desc, date_desc (rank over time). Defaults to rank.
facetYesrequired,Required facet. Allowed values: store, collection, chart_type, platform, category, country, app_id, snapshot_date, free.
storeNoOptional store filter. Allowed values: ios, android.
app_idNoOptional exact app filter — the iOS numeric track id or the Android package name; pair with sort=date_desc for an app's rank history.
countryNoOptional storefront country filter, max 128 characters, e.g. us.
overallNoOptional. True keeps only the overall (all-category) charts by dropping category chart rows; cannot be combined with category.
categoryNoOptional store category/genre filter, max 128 characters. Empty for the overall (all-category) charts.
platformNoOptional Apple device-platform filter, iOS charts only. Allowed values: phone, pad, mac.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
chart_typeNoOptional chart filter. Allowed values: top_free, top_paid, top_grossing, new.
collectionNoOptional raw store collection id filter (e.g. topgrossingapplications, GROSSING), max 128 characters.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / overall
      Added value: +{
      +  "description": "Optional. True keeps only the overall (all-category) charts by dropping category chart rows; cannot be combined with category.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses the 50-bucket ceiling, that page and page_size are no-ops for counts, that sort is accepted but does not reorder buckets, and the full date-scoping matrix per facet type including the snapshot_date special case. These are non-obvious behaviors that would otherwise cause wasted pagination and wrong assumptions about result ordering.

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 action and its 50-bucket cap are front-loaded, and each subsequent sentence carries a distinct behavioral rule. The nine-value facet enumeration duplicates the schema and could be cut without loss, and the date-scope sentence is dense enough to need a second read.

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

Completeness4/5

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

With an output schema present, return shape need not be explained, and the description covers the behaviors an agent would otherwise get wrong: bucket cap, inert paging/sort, and date scope. What remains thin is the filter pass-through — it points at datasets_apps_charts_search's filters rather than confirming that q, store, country, and the rest all constrain the counts identically.

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 baseline is 3; the description earns above that by adding meaning the schema lacks — that page/page_size do not alter counts, that sort is validated but inert, and that facet date scope depends on whether date, app_id, or sort=date_desc is supplied. The facet enum list largely repeats the schema's own enum documentation.

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?

The opening sentence gives a specific verb ('Return'), resource ('facet buckets with counts'), scope ('one apps-charts field'), and a hard cap ('up to 50'). It explicitly names datasets_apps_charts_search as the record-level counterpart, so an agent can separate aggregation from lookup without opening either schema.

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

Usage Guidelines4/5

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

The closing sentence routes the agent to datasets_apps_charts_search 'to find chart records', which is a clear when-not-to-use signal. The usage context is otherwise implied — it never states the positive case (use this to discover value distributions across a field) nor prerequisites such as needing a valid facet value.

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.