Skip to main content
Glama
mapbox

Mapbox MCP Server

Official

Search and Geocode Tool

search_and_geocode_tool
Read-onlyIdempotent

Search for points of interest, brands, chains, and geocode addresses or cities. Use proximity to bias results toward a location for more relevant local results.

Instructions

Search for POIs, brands, chains, geocode cities, towns, addresses. Do not use for generic place types such as 'museums', 'coffee shops', 'tacos', etc, because category_search_tool is better for that. Setting a proximity point is strongly encouraged for more local results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesSearch query text. Limited to 256 characters.
bboxNoBounding box to limit results within [minLon, minLat, maxLon, maxLat]
typesNoArray of feature types to filter results (e.g., ["poi", "address", "place"])
originNo
countryNoArray of ISO 3166 alpha 2 country codes to limit results
eta_typeNoRequest estimated time of arrival (ETA) to results
languageNoISO language code for the response (e.g., "en", "es", "fr", "de", "ja")
proximityNoLocation to bias results towards as {longitude, latitude}. If not provided, defaults to IP-based location. STRONGLY ENCOURAGED for relevant results.
poi_categoryNoArray of POI categories to include (e.g., ["restaurant", "cafe"])
auto_completeNoEnable partial and fuzzy matching
navigation_profileNoRouting profile for ETA calculations

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYes
featuresYes
attributionNo
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint false. The description adds behavioral context beyond annotations: it encourages proximity for local results and implies search results are limited to specific entities. No contradiction with annotations.

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?

The description is two sentences with no unnecessary words. First sentence states purpose, second sentence gives usage guidelines. Front-loaded and efficient.

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?

Given the 11 parameters, high schema coverage, and existence of output schema, the description provides sufficient context for tool selection and basic usage. It does not elaborate on all parameters or return format, but the schema and annotations fill gaps. Could be slightly more comprehensive but adequate.

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 91%, so the input schema already provides detailed descriptions for most parameters. The description reinforces the proximity parameter by stating it is 'strongly encouraged' but does not add new semantic meaning beyond what the schema provides. Baseline 3 is appropriate.

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?

The description clearly states it searches for POIs, brands, chains, and geocodes cities, towns, addresses. It distinguishes from the sibling category_search_tool by explicitly listing what not to use it for (generic place types), providing a specific verb ('Search for', 'geocode') and resource types.

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?

It explicitly advises against using for generic place types and directs to category_search_tool as a better alternative. It encourages setting a proximity point for local results, giving clear when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mapbox/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server