Maps Experience agent tools quick reference

Maps Experience agent tools (formerly Maps Grounding Lite) provides a Model Context Protocol (MCP) server and REST methods that let LLMs and AI agents query Google Maps places (including places along a route), routes, weather, air quality, and pollen data, and resolve location names or Google Maps URLs to place IDs.

Maps Experience agent tools: key facts

  • Product: Maps Experience agent tools
  • Also known as: Maps Grounding Lite, Maps Experience Agent Tools, Maps Grounding Essentials, Maps Grounding Pro
  • Category: Places
  • Platform: Web service (REST)
  • Runs on: Server (backend code)
  • Launch stage: GA
  • Lifecycle: Active
  • Overview: Maps Experience agent tools overview

Maps Experience agent tools: when to use it

Use Maps Experience agent tools when:

  • You build an AI agent with an MCP-compatible framework (such as ADK or Gemini CLI) that needs places, routes, weather, air quality, or pollen data.
  • You want direct control of each tool call (search_places, search_along_route, compute_routes, lookup_weather, resolve_names, resolve_maps_urls).
  • You need to resolve batches of up to 20 place names or Google Maps URLs (maps.app.goo.gl) into place IDs at no charge.
  • You want to render Places UI Kit elements for grounded search_places or search_along_route results at no extra charge using contentToken.

Don't use Maps Experience agent tools when:

  • You build on Gemini API, Google AI Studio, or Gemini Enterprise Agent Platform and want Gemini to run Grounding with Google Maps automatically.
  • You need step-by-step directions, route legs, or turn-by-turn navigation. Use Routes API instead.
  • You need structured place fields or autocomplete directly in application code without an LLM summary. Use Places API (New) instead.

Maps Experience agent tools: setup

Maps Experience agent tools: common mistakes

  • Problem: Any Pro option bills the request under the Maps Grounding Pro SKU ($14 vs. $7 per 1,000), and an LLM can set Pro options on its own: include_extended_details, page_size >5, ROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMAL, >10 intermediate_waypoints, POLLEN or past AIR_QUALITY in lookup_weather, and any search_along_route call. Fix: Tell the model in your instructions when Pro options are appropriate, or never to use them. If your MCP client can restrict tools or arguments, block search_along_route and the Pro argument values, and monitor the Maps Grounding Pro SKU in your billing reports. See /maps/ai/maps-experience-agent-tools#control_pro_usage.
  • Problem: The compute_routes tool omits step-by-step directions, defaults to ROUTING_PREFERENCE_TRAFFIC_UNAWARE, rejects ROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMAL on WALK or BICYCLE with INVALID_ARGUMENT, and rejects intermediate_waypoints on TRANSIT. Fix: Set ROUTING_PREFERENCE_TRAFFIC_AWARE_OPTIMAL only on DRIVE or TRANSIT routes, omit intermediate_waypoints on TRANSIT, and use the Routes API if you need turn-by-turn steps. See /maps/ai/maps-experience-agent-tools/compute-routes.
  • Problem: ResolveNames and ResolveMapsUrls reject batches over 20 items with 400 INVALID_ARGUMENT, don't support categorical queries like "restaurants in New York", and return HTTP 200 with {} entries and failedRequests when individual items fail. Fix: Send at most 20 specific place names or single-place Maps URLs per call, and inspect failedRequests by 0-based index instead of relying only on HTTP status. See /maps/ai/maps-experience-agent-tools/resolution-api.
  • Problem: A contentToken waives Places UI Kit charges for only 10 minutes on supported elements under the same Cloud project (Maps JavaScript API v=beta in Preview, Places SDK for Android 6.1.0+, or GooglePlacesSwift 11.4.0+). Invalid or expired tokens bill at standard rates without an error, and JS addContentTokens() throws on a bare string. Fix: Read contentToken from structuredContent (or top-level REST JSON) in code rather than LLM text, use credentials from the same Cloud project, pass [contentToken] to Settings.getInstance().addContentTokens() on JS v=beta, or pass contentTokens on each Android or iOS Places UI Kit request. See /maps/ai/agentic-data-visualization-token.
  • Problem: Showing grounded tool output without googleMapsLinks sources, or sending Google Maps Content to an LLM that caches, stores, or trains on inputs, violates the Google Maps Platform Terms of Service. Fix: Render attributed googleMapsLinks right after the grounded output (viewable within one user interaction), and verify your model doesn't retain or train on input data. See /maps/ai/maps-experience-agent-tools/attribution.

What you can do with Maps Experience agent tools

See the guides linked below for each task, or compare across products in the Capabilities Explorer.

Maps Experience agent tools: Generative AI

Maps Experience agent tools: Places UI Kit