Skip to main content
Glama
mapbox

Mapbox MCP Server

Official

Static Map Image Tool

static_map_image_tool
Read-onlyIdempotent

Generate static map images with custom center, zoom, size, style, and overlays. Supports markers, paths, and GeoJSON for geospatial visualization.

Instructions

Generates a static map image from Mapbox Static Images API. Supports center coordinates, zoom level (0-22), image size (up to 1280x1280), various Mapbox styles, and overlays (markers, paths, GeoJSON). Returns PNG for vector styles, JPEG for raster-only styles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeYesImage size as object with width and height properties in pixels. Each dimension must be between 1 and 1280 pixels
zoomYesZoom level (0-22). Fractional zoom levels are rounded to two decimal places
styleNoMapbox style ID in the format username/style-id (e.g., mapbox/streets-v12, mapbox/satellite-v9, mapbox/dark-v11)mapbox/streets-v12
centerYesCenter point of the map as coordinate object with longitude and latitude properties. Longitude: -180 to 180, Latitude: -85.0511 to 85.0511
overlaysNoArray of overlays to add to the map. Overlays are rendered in order (last item appears on top)
highDensityNoWhether to return a high-density (2x) image
Behavior4/5

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

Annotations already provide readOnlyHint, openWorldHint, idempotentHint, and destructiveHint. The description adds value by specifying return image formats (PNG for vector styles, JPEG for raster-only styles) and overlay rendering order. No contradictions 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.

Conciseness4/5

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

The description is a single sentence that efficiently conveys the main purpose and capabilities. It front-loads the core function. Could be slightly improved with bullet points for readability but is still effective.

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?

For a tool with 6 parameters and no output schema, the description covers the return format (PNG/JPEG) and mentions overlays. It is adequate for an agent to understand what the tool produces, though it does not specify the exact binary or encoding format.

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 the schema already documents all parameters. The description lists features but does not add significant meaning beyond what is in the schema. Baseline score of 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 that the tool generates a static map image from Mapbox Static Images API, specifying key features like center, zoom, size, styles, and overlays. It is specific with a verb and resource, and is easily distinguished from sibling tools which are spatial analysis and geocoding tools.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool (generating static map images). However, it does not explicitly state when not to use it or provide alternatives, though sibling tools are so different that confusion is unlikely.

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