Skip to main content
Glama

datasets_apple_maps_places_facets

Read-only

Returns facet counts over the stored Apple Maps place directory for one field: category, country_code, state, city, price_symbol or catalog_country. Accepts the same filters as the search tool to scope the counts. Use facet=category to find the exact category names the category filter accepts.

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

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text search over place name, category, city and address; every term must match. 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, max 128 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, rating_desc, review_count_desc, updated_at_desc, distance_asc. Defaults to relevance with q, otherwise updated_at_desc.
facetYesRequired facet to aggregate. Allowed values: category, country_code, state, city, price_symbol, catalog_country.
stateNoOptional exact state/region filter, max 128 characters.
categoryNoOptional exact Apple category name, max 128 characters, e.g. Coffee Shop; use facet=category to discover values.
radius_mNoOptional radius in meters, from 1 through 50000; requires lat and lon.
has_phoneNoOptional phone presence filter; true keeps only places with a phone number.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
min_ratingNoOptional minimum rating, from 0 through 5. Places Apple shows no rating for have rating null; any value above 0 excludes them.
has_websiteNoOptional website presence filter; true keeps only places with a website.
postal_codeNoOptional exact postal code filter, max 128 characters.
country_codeNoOptional ISO 3166-1 alpha-2 country filter, e.g. US, GB, JP.
min_rating_countNoOptional minimum number of ratings behind the rating, 0 or greater.

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. Added

TDQS

A4.4/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 the safety profile is covered; the description adds that counts are scoped by search-style filters and that only one facet is aggregated per call. It does not clarify whether page/page_size affect the returned facet buckets or only an underlying result set, which is the one behavioral ambiguity left.

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

Conciseness5/5

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

Three short sentences with the core action first, the filter-scoping rule second, and the discovery tip last. No redundant restatement of the title or schema, and every sentence carries information.

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 values need not be described, and 100% schema coverage handles the 17 parameters. The remaining gap is the interaction between pagination parameters and the facet counts, which an agent might reasonably wonder about, but overall the definition is sufficient to invoke correctly.

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 baseline is 3, but the description adds real meaning: it explains the relationship between the facet parameter and the category filter (discover names via facet=category, then pass them to category) and frames the 16 filter parameters as equivalent to the search tool's filters. That cross-parameter guidance is not in the schema.

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 facet counts over the stored Apple Maps place directory' — and enumerates the six valid facet fields (category, country_code, state, city, price_symbol, catalog_country). This clearly separates it from the sibling search/nearby/item tools, which return records rather than aggregates.

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?

Gives concrete usage context: 'Accepts the same filters as the search tool to scope the counts' tells the agent to mirror the search tool's filter set, and 'Use facet=category to find the exact category names the category filter accepts' prescribes a discovery workflow. It lacks an explicit when-not-to-use statement (e.g. when you want records, use search instead), so it falls short of a 5.

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.