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.

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

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuinely useful behavior: the return is a terms aggregation count, and the filters are inherited from search to scope the aggregation. Pagination caps are stated but largely duplicate the schema.

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?

Front-loaded and readable, but it repeats the facet allowed values twice (as 'Facet enum:' and again in the 'facet:' sentence) and re-states the page constraint verbatim from the schema. Two of its sentences are largely redundant with structured fields.

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 a 100%-covered schema, an output schema, and annotations, the description needs only to frame the operation, which it does. The remaining gap is a positive when-to-use signal versus search, but nothing required to invoke it correctly is missing.

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 description coverage is 100%, so the schema already documents all 13 parameters including the facet enum and page/page_size constraint. The description restates the facet values and page rule rather than adding meaning (e.g. what 'market' means beyond crawl provenance, or how facets interact with q). Baseline 3 is correct.

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 immediately names the facet dimension it aggregates over. An agent can distinguish it from its siblings (search, item, nearby) without opening the 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?

Explicitly routes the agent: use datasets_starbucks_stores_search to search, and notes this tool accepts the same filters 'to scope the aggregation'. This makes the search-vs-facet split clear, though it never states the positive case for facets (e.g. 'use when you need counts/breakdowns, not individual stores').

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.