datasets_apple_maps_places_facets
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
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional full-text search over place name, category, city and address; every term must match. Max 256 characters. | |
| lat | No | Optional latitude for radius filtering or distance sort, from -90 through 90; supply together with lon. | |
| lon | No | Optional longitude for radius filtering or distance sort, from -180 through 180; supply together with lat. | |
| city | No | Optional exact city filter, max 128 characters. | |
| page | No | Result page number, 1-based, default 1; page times page_size must not exceed 10000. | |
| sort | No | Optional sort order. Allowed values: relevance, rating_desc, review_count_desc, updated_at_desc, distance_asc. Defaults to relevance with q, otherwise updated_at_desc. | |
| facet | Yes | Required facet to aggregate. Allowed values: category, country_code, state, city, price_symbol, catalog_country. | |
| state | No | Optional exact state/region filter, max 128 characters. | |
| category | No | Optional exact Apple category name, max 128 characters, e.g. Coffee Shop; use facet=category to discover values. | |
| radius_m | No | Optional radius in meters, from 1 through 50000; requires lat and lon. | |
| has_phone | No | Optional phone presence filter; true keeps only places with a phone number. | |
| page_size | No | Page size, default 20, max 100; page times page_size must not exceed 10000. | |
| min_rating | No | Optional minimum rating, from 0 through 5. Places Apple shows no rating for have rating null; any value above 0 excludes them. | |
| has_website | No | Optional website presence filter; true keeps only places with a website. | |
| postal_code | No | Optional exact postal code filter, max 128 characters. | |
| country_code | No | Optional ISO 3166-1 alpha-2 country filter, e.g. US, GB, JP. | |
| min_rating_count | No | Optional minimum number of ratings behind the rating, 0 or greater. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The tool result payload (shape varies per tool; see each tool's docs resource). |