Skip to main content
Glama
Mapbox MCP Server

Mapbox MCP Server

Official
by mapbox

Place Details Tool

place_details_tool
Read-onlyIdempotent

Retrieve detailed place information by Mapbox ID after a search or geocode result, including photos, opening hours, phone numbers, and website URLs.

Instructions

Retrieve detailed information about a specific place using its Mapbox ID. Use after search_and_geocode_tool, category_search_tool, or reverse_geocode_tool to get additional details such as photos, opening hours, phone numbers, and website URLs. Requires the mapbox_id field from a previous search result. Primarily covers points of interest (businesses, addresses, buildings); mapbox_ids for neighborhoods, cities, or other administrative boundaries are also supported but return more limited data (name, address, coordinates — no photos, hours, or contact info). The primary POI lookup is Public Preview with a default quota of 1,000 requests/month; contact Mapbox if you need a higher volume.

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": {
      "mapbox_id": "<mapbox_id>"
    },
    "name": "place_details_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoOnly used when mapbox_id resolves via the legacy Details API fallback (see attribute_sets). BCP 47 language tag for localized results (e.g. "en", "fr", "de", "ja"). Affects place names and address formatting. Ignored for POI lookups.
mapbox_idYesThe Mapbox ID of the place to retrieve details for. Obtained from search results returned by search_and_geocode_tool, category_search_tool, or reverse_geocode_tool (the mapbox_id field in properties).
worldviewNoOnly used when mapbox_id resolves via the legacy Details API fallback (see attribute_sets). Worldview for geopolitically sensitive content such as disputed borders. Options: "ar" (Argentina), "cn" (China), "in" (India), "jp" (Japan), "ma" (Morocco), "ru" (Russia), "tr" (Turkey), "us" (United States, default). Ignored for POI lookups.
attribute_setsNoOnly used when mapbox_id resolves via the legacy Details API fallback (boundaries, neighborhoods, cities, regions — see mapbox_id's description). Which attribute sets to include in that response. Options: "basic" (name/address/coordinates — always requested regardless of whether you list it here), "photos" (place photo URLs), "visit" (opening hours, rating, price level, popularity), "venue" (phone number, website URL, social media links). Ignored for POI lookups, which go through the Places API and have no equivalent parameter.

Output Schema

NameRequiredDescriptionDefault
bboxNo
nameYes
brandNo
phoneNo
scoreNo
photosNo
statusNo
addressNo
contextNo
websiteNo
buildingNo
metadataNo
mapbox_idYes
telemetryNo
attributesNo
categoriesNo
created_atNo
updated_atNo
coordinatesNo
feature_typeNo
full_addressNo
opening_hoursNo
primary_categoryNo
permanently_closedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed33 schema fields changedv0.18.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / attribute_sets / description
      Previous value: -"Which attribute sets to include in the response. Options: \"basic\" (address/coordinates, always included), \"photos\" (place photo URLs), \"visit\" (opening hours, rating, price level, popularity), \"venue\" (phone number, website URL, social media links). When not specified, only basic attributes are returned."New value: +"Only used when mapbox_id resolves via the legacy Details API fallback (boundaries, neighborhoods, cities, regions — see mapbox_id's description). Which attribute sets to include in that response. Options: \"basic\" (name/address/coordinates — always requested regardless of whether you list it here), \"photos\" (place photo URLs), \"visit\" (opening hours, rating, price level, popularity), \"venue\" (phone number, website URL, social media links). Ignored for POI lookups, which go through the Places API and have no equivalent parameter."
    • changedInput schema / properties / language / description
      Previous value: -"BCP 47 language tag for localized results (e.g. \"en\", \"fr\", \"de\", \"ja\"). Affects place names and address formatting."New value: +"Only used when mapbox_id resolves via the legacy Details API fallback (see attribute_sets). BCP 47 language tag for localized results (e.g. \"en\", \"fr\", \"de\", \"ja\"). Affects place names and address formatting. Ignored for POI lookups."
    • changedInput schema / properties / worldview / description
      Previous value: -"Worldview for geopolitically sensitive content such as disputed borders. Options: \"ar\" (Argentina), \"cn\" (China), \"in\" (India), \"jp\" (Japan), \"ma\" (Morocco), \"ru\" (Russia), \"tr\" (Turkey), \"us\" (United States, default)."New value: +"Only used when mapbox_id resolves via the legacy Details API fallback (see attribute_sets). Worldview for geopolitically sensitive content such as disputed borders. Options: \"ar\" (Argentina), \"cn\" (China), \"in\" (India), \"jp\" (Japan), \"ma\" (Morocco), \"ru\" (Russia), \"tr\" (Turkey), \"us\" (United States, default). Ignored for POI lookups."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / address
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / attributes
      Added value: +{
      +  "additionalProperties": {
      +    "type": [
      +      "string",
      +      "boolean",
      +      "number"
      +    ]
      +  },
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / bbox
      Added value: +{
      +  "items": false,
      +  "maxItems": 4,
      +  "minItems": 4,
      +  "prefixItems": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "number"
      +    }
      +  ],
      +  "type": "array"
      +}
    • addedOutput schema / properties / brand
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / building
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / categories
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / context
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / coordinates
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "latitude": {
      +      "type": "number"
      +    },
      +    "longitude": {
      +      "type": "number"
      +    },
      +    "routable_points": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "latitude": {
      +            "type": "number"
      +          },
      +          "longitude": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "latitude",
      +          "longitude"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "source": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "latitude",
      +    "longitude"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / created_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / feature_type
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / full_address
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / geometry
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "coordinates": {
      -      "items": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "number"
      -        }
      -      ],
      -      "type": "array"
      -    },
      -    "type": {
      -      "const": "Point",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "type",
      -    "coordinates"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / mapbox_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / metadata
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • addedOutput schema / properties / name
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / opening_hours
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / permanently_closed
      Added value: +{
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / phone
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / photos
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "height": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "source": {
      +        "type": "string"
      +      },
      +      "url": {
      +        "type": "string"
      +      },
      +      "width": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / primary_category
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / properties
      Removed value: -{
      -  "additionalProperties": {},
      -  "properties": {
      -    "address": {
      -      "type": "string"
      -    },
      -    "bbox": {
      -      "items": [
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "number"
      -        },
      -        {
      -          "type": "number"
      -        }
      -      ],
      -      "type": "array"
      -    },
      -    "brand": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "brand_id": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "context": {
      -      "additionalProperties": {},
      -      "properties": {},
      -      "type": "object"
      -    },
      -    "coordinates": {
      -      "additionalProperties": {},
      -      "properties": {
      -        "latitude": {
      -          "type": "number"
      -        },
      -        "longitude": {
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "longitude",
      -        "latitude"
      -      ],
      -      "type": "object"
      -    },
      -    "external_ids": {
      -      "additionalProperties": {
      -        "type": "string"
      -      },
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "feature_type": {
      -      "type": "string"
      -    },
      -    "full_address": {
      -      "type": "string"
      -    },
      -    "language": {
      -      "type": "string"
      -    },
      -    "maki": {
      -      "type": "string"
      -    },
      -    "mapbox_id": {
      -      "type": "string"
      -    },
      -    "metadata": {
      -      "additionalProperties": {},
      -      "properties": {},
      -      "type": "object"
      -    },
      -    "name": {
      -      "type": "string"
      -    },
      -    "place_formatted": {
      -      "type": "string"
      -    },
      -    "poi_category": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    "poi_category_ids": {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "name",
      -    "mapbox_id",
      -    "feature_type"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / score
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "closed": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "popularity": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "reality": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / telemetry
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {},
      +  "type": "object"
      +}
    • removedOutput schema / properties / type
      Removed value: -{
      -  "const": "Feature",
      -  "type": "string"
      -}
    • addedOutput schema / properties / updated_at
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / website
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "type",
      -  "geometry",
      -  "properties"
      -]New value: +[
      +  "mapbox_id",
      +  "name"
      +]
  2. First observedv0.12.6

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, openWorld), the description discloses the coverage limitation for neighborhoods/cities (name, address, coordinates only, no photos/hours/contacts) and the operational constraint that the POI path is Public Preview with a 1,000 request/month quota. These are exactly the non-obvious facts an agent would otherwise discover only by failure.

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

Conciseness4/5

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

The core routing information is front-loaded in the first two sentences, and the quota note is a useful tail. The parenthetical about administrative boundaries is slightly dense and could be tightened, but every sentence carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 not be described; the description instead covers prerequisites, degraded-coverage cases, and rate limits. For a read-only detail lookup with a simple one-required-parameter schema, nothing an agent needs to call it correctly is missing.

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 100%, so all four parameters are already documented, including the legacy-fallback-only nature of language, worldview, and attribute_sets. The description reinforces that mapbox_id must come from a prior search result but adds no new syntax, format, or constraint beyond the schema, so the baseline 3 applies.

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 opens with a precise verb and resource: 'Retrieve detailed information about a specific place using its Mapbox ID.' It explicitly distinguishes this lookup tool from the search/geocode siblings that produce the ID, and it enumerates the concrete payload (photos, opening hours, phone numbers, website URLs).

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 states exactly when to call it ('Use after search_and_geocode_tool, category_search_tool, or reverse_geocode_tool'), names the prerequisite field, and carves out the alternate case where administrative boundaries are permitted but yield reduced data. Nothing about sequencing or selection is left to inference.

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