Skip to main content
Glama
mapbox

Mapbox Developer MCP Server

Official
by mapbox

Create Mapbox Token Tool

create_token_tool

Create a Mapbox public access token with custom scopes and optional URL restrictions for secure API access.

Instructions

Create a new Mapbox public access token with specified scopes and optional URL restrictions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYesDescription of the token
scopesYesArray of scopes/permissions for the public token. Valid scopes: styles:tiles, styles:read, fonts:read, datasets:read, vision:read.
expiresNoOptional expiration time in ISO 8601 format (maximum 1 hour in the future)
allowedUrlsNoOptional array of URLs where the token can be used (max 100)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe token's unique identifier
noteYesHuman-readable description of the token
tokenYesThe actual access token string
usageYesToken usage type: pk (public), sk (secret), or tk (temporary)
clientYesThe client for the token
scopesYesArray of scopes granted to the token
createdYesISO 8601 creation timestamp
defaultYesWhether this is the default token
expiresNoExpiration time in ISO 8601 format (temporary tokens only)
modifiedYesISO 8601 last modified timestamp
allowedUrlsNoURLs that the token is restricted to
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, indicating a safe write operation. The description adds no additional behavioral context beyond what annotations provide (e.g., rate limits, reversibility, or activation status). Since annotations carry the burden, a score of 3 is appropriate.

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 sentence that efficiently conveys the tool's purpose, verb, resource, and key attributes. It is front-loaded with the most important information and contains no unnecessary words.

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 that an output schema exists (though not shown), the description does not need to explain return values. It adequately defines the tool's function for a creation operation. However, it could mention constraints like maximum number of tokens per account, but this is not essential for basic usage.

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%, with each parameter clearly described (e.g., 'note', 'scopes', 'expires', 'allowedUrls'). The description's mention of 'scopes and optional URL restrictions' does not add meaningful semantics beyond the schema, so the baseline of 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 clearly states the verb 'Create', the resource 'Mapbox public access token', and specifies key attributes ('with specified scopes and optional URL restrictions'). This distinguishes it from sibling tools like list_tokens_tool (which lists tokens) and other create tools for different resources (e.g., create_style_tool).

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

Usage Guidelines3/5

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

The description implies usage for creating a new token with scopes and URL restrictions but does not explicitly state when to use this tool versus alternatives like list_tokens_tool (for listing) or other create tools. No when-not-to-use guidance is provided, leaving some ambiguity for an AI agent.

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