Skip to main content
Glama
mapbox

Mapbox Developer MCP Server

Official
by mapbox

Validate Style Tool

validate_style_tool
Read-onlyIdempotent

Validate Mapbox style JSON against the Mapbox Style Specification, identifying errors, warnings, and improvement suggestions.

Instructions

Validates Mapbox style JSON against the Mapbox Style Specification, checking for errors, warnings, and providing suggestions for improvement

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
styleYesMapbox style JSON object or JSON string to validate against the Mapbox Style Specification

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
infoYesInformational messages and suggestions for improvement
validYesWhether the style is valid
errorsYesCritical errors that prevent the style from working
summaryYesSummary of style structure
warningsYesNon-critical issues that may cause unexpected behavior
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds behavioral context by specifying that it checks for errors, warnings, and suggestions, which is helpful beyond the annotations. No contradictions.

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 a single, well-structured sentence that front-loads the tool's purpose. Every word contributes meaning, with no unnecessary filler.

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?

For a validation tool with a single well-defined parameter and an output schema (not shown), the description is sufficiently complete. It covers the tool's core function without needing to explain return values since the output schema handles that.

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% (the 'style' parameter is well-described in the schema). The description does not add extra semantics beyond what the schema provides, so the 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 that the tool validates Mapbox style JSON against the Mapbox Style Specification, checking for errors, warnings, and suggestions. This distinguishes it from sibling tools like validate_expression_tool and validate_geojson_tool, which focus on specific sub-formats.

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?

The description provides no guidance on when to use this tool versus alternatives such as preview_style_tool, optimize_style_tool, or style_builder_tool. An agent would have no information about context or when not to use it.

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