Skip to main content
Glama
mapbox

Mapbox Developer MCP Server

Official
by mapbox

Create Mapbox Style Tool

create_style_tool

Create a new Mapbox style by providing a name and a complete style specification including version, sources, and layers.

Instructions

Create a new Mapbox style

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHuman-readable name for the style
styleYesComplete Mapbox Style Specification object. Must include: version (8), sources, layers. Optional: sprite, glyphs, center, zoom, bearing, pitch, metadata, etc. See https://docs.mapbox.com/mapbox-gl-js/style-spec/

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique style identifier
fogNoFog properties
nameYesHuman-readable name for the style
zoomNoDefault zoom level
draftNoWhether this is a draft version
lightNoGlobal light source (deprecated, use lights)
ownerYesUsername of the style owner
pitchNoDefault pitch in degrees
centerNoDefault map center [longitude, latitude]
glyphsNoURL template for glyph sets
layersYesLayers in draw order
lightsNoArray of 3D light sources
spriteNoBase URL for sprite image and metadata
bearingNoDefault bearing in degrees
createdYesISO 8601 timestamp when style was created
importsNoImported styles
sourcesYesData source specifications
terrainNoGlobal terrain elevation
versionYesStyle specification version number. Must be 8
metadataNoArbitrary properties for tracking
modifiedYesISO 8601 timestamp when style was last modified
protectedNoWhether style is protected from modifications
projectionNoMap projection
transitionNoDefault transition timing
visibilityYesStyle visibility setting
Behavior2/5

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

The description adds no behavioral context beyond the annotations. It states 'Create' which is consistent with annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), but does not disclose side effects, limits, or response behavior. Given annotations are present, the description fails to add supplementary value.

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 concise sentence. It is front-loaded and appropriate for a simple create operation, but could be expanded slightly without sacrificing brevity (e.g., noting required fields).

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description does not explain what the tool returns (e.g., the created style object ID). The tool expects a complex nested object (style specification) without any usage hints. For a create operation with two required parameters, the description is insufficiently informative.

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?

The input schema covers both parameters with descriptions, achieving 100% schema description coverage. The description does not add meaning beyond what the schema provides; it simply implies the purpose. A score of 3 reflects adequate schema coverage but no additional insight from the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a new Mapbox style, but it does not differentiate from sibling tools like style_builder_tool, which may also create styles. The verb 'Create' and resource 'Mapbox style' are specific enough for basic understanding, but lack explicit distinction.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives such as style_builder_tool or update_style_tool. There is no mention of prerequisites, use cases, or exclusions, leaving the agent without decision-making support.

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-devkit-server'

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