Skip to main content
Glama

datasets_starbucks_stores_facets

Read-only

Returns terms aggregation counts for the Starbucks store directory. Facet enum: country, state, market, amenities, ownership_type_code. Accepts the same filter parameters as search to scope the aggregation. facet: Required facet to aggregate. Allowed values: country, state, market, amenities, ownership_type_code. page: Result page number, 1-based, default 1; page times page_size must not exceed 10000. Use datasets_starbucks_stores_search to search the Starbucks store directory.

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_starbucks_stores_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text search over store name, city, and address, max 256 characters.
latNoOptional latitude for radius filtering or distance sort, from -90 through 90; supply together with lon.
lonNoOptional longitude for radius filtering or distance sort, from -180 through 180; supply together with lat.
cityNoOptional exact city filter.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, distance_asc. Defaults to store number order.
facetYesRequired facet to aggregate. Allowed values: country, state, market, amenities, ownership_type_code.
stateNoOptional state/region code filter, e.g. WA.
marketNoOptional crawl-provenance market filter, one of us or ca (the Starbucks host the store was discovered through, not its geography).
amenityNoOptional amenity code filter, e.g. DT for Drive-Thru or XO for Mobile Order and Pay.
countryNoOptional ISO-3166-1 alpha-2 country filter, e.g. US, GB, JP.
radius_mNoOptional radius in meters, from 1 through 50000; requires lat and lon.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.

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. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and idempotentHint=false, so safety is covered. The description adds the pagination ceiling (page times page_size must not exceed 10000), but it never says whether facet counts are computed over the entire filtered set or only the requested page slice — a material behavior for an aggregation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The facet value list appears twice (once as 'Facet enum' and again in the facet sentence), and the page constraint is copied straight from the schema. The routing sentence is well placed, but roughly a third of the text is redundant.

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?

With 13 parameters, an output schema and full schema descriptions, the core purpose and routing are adequately covered. The gap is behavioral: how filters, pagination and page_size interact with the returned counts is left unstated.

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

Parameters3/5

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

Schema coverage is 100%, so the facet enum and page semantics are already documented; the description restates them almost verbatim. It adds only one piece of meaning — that filter parameters scope the aggregation — which is modest value beyond the schema's per-parameter text.

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 ('Returns terms aggregation counts for the Starbucks store directory') and names the facet dimensions in scope. It is clearly distinguishable from the sibling search tool, which returns records rather than counts.

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?

Explicitly routes record lookups to datasets_starbucks_stores_search and explains that the same filter parameters scope the aggregation. It stops short of saying when to prefer this over item/nearby siblings, but the count-vs-record distinction is clear.

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.