Skip to main content
Glama

datasets_google_map_facets

Read-only

Count facet values for matching businesses in the periodically rebuilt Google Maps dataset. Apply the same search filters as datasets_google_map_search; use this to inspect facet distributions before retrieving individual business records.

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text business search query, 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, updated_at_desc, rating_desc, review_count_desc, distance_asc. Defaults to relevance with q, otherwise updated_at_desc.
townNoOptional exact town filter, max 128 characters.
facetYesRequired facet to aggregate. Allowed values: category, country, state, state_code, county, county_code, city, town, website_status.
stateNoOptional exact state/region filter, max 128 characters.
countyNoOptional exact county filter, max 128 characters.
countryNoOptional exact country filter, max 128 characters.
has_geoNoOptional location presence filter. true keeps only mappable businesses with coordinates; false isolates locationless service-area businesses (online/mobile/home-based) that have no map location.
categoryNoOptional exact category filter, max 128 characters, e.g. hotel.
radius_mNoOptional radius in meters, from 1 through 50000; requires lat and lon when supplied.
has_phoneNoOptional phone presence filter; true keeps only businesses 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. Businesses with no aggregate Google rating are returned with rating null; any value above 0 excludes them.
state_codeNoOptional exact ISO 3166-2 state/region code filter, e.g. US-CA or FR-HDF, max 128 characters; use facet=state_code to discover values.
county_codeNoOptional exact ISO 3166-2 county/district code filter, e.g. FR-59 or IT-RM, max 128 characters; use facet=county_code to discover values.
has_websiteNoOptional website presence filter; true keeps only businesses with a website.
min_review_countNoOptional minimum review count, must be 0 or greater.
permanently_closedNoOptional closure filter. true keeps only businesses Google marks Permanently closed; false excludes those, keeping every business not known to be closed (including the majority whose status has never been checked, which are returned with permanently_closed null).

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.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, openWorldHint=true), so the bar is lower. The description adds genuine behavioral context that the annotations do not: the dataset is "periodically rebuilt" (a freshness/staleness caveat) and the operation is a count rather than a record fetch. It does not address rate limits or whether counts span the whole match set or a page.

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?

Two tight sentences with the purpose front-loaded and the routing/positioning detail second. No filler, no restatement of the name.

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?

An output schema exists, so return values need no explanation, and the workflow context is complete. The one gap is that the schema exposes page/page_size for what is described as a count operation, and the description never clarifies whether aggregation covers the entire matching set or a single page.

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 baseline is 3; every one of the 22 parameters, including the required facet enum list, is documented in the schema. The description only adds the meta-point that the filter set mirrors datasets_google_map_search, which is mild added value rather than new syntax or semantics.

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 — "Count facet values for matching businesses" — and names the dataset it operates on. It is clearly separable from datasets_google_map_search (returns records) and datasets_google_map_item (single record) by virtue of being an aggregation/count operation.

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

Usage Guidelines5/5

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

Explicitly positions the tool in the workflow ("inspect facet distributions before retrieving individual business records") and ties its filter semantics to a named sibling ("apply the same search filters as datasets_google_map_search"). An agent knows both when to reach for it and what to reach for afterwards.

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.