Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

Create Style

create_style

Create a Magic Lane Studio map style from a template ID or full style JSON, returning its summary and version plus warnings for layers that need fixing.

Instructions

Create a Magic Lane Studio style in the account from a template (templateId from list_templates) or from full style JSON, given inline (data) or as the path of a JSON file on this computer (path). Exactly one of the three. To duplicate one of your own styles, get_style it and pass its data (a style id is not accepted as templateId). Returns the new style's summary and version; description, tags and purposes, when given, are applied with a second write. Requires a key with "Studio: Read & write". Not idempotent: two calls with the same name create two styles; after a timeout the tool checks the list before reporting failure. Some templates have layers to fix: the result lists them as warnings, each with its fix or the change to make (checked once per template per hour); fix them with update_style and tell the user what you fixed; if one cannot be fixed or the user keeps it, say so and leave it. Style JSON follows the style format, with its traps (colours are ABGR integers): get_style_reference: the essentials with no arguments (resource magiclane://docs/style-essentials), the full format with page "style-file-format" (https://developer.magiclane.com/docs/guides/map-studio/reference/style-file-format/). Publishing, reverting and deleting styles, previews, thumbnails and privacy settings are Studio actions (https://developer.magiclane.com/studio) and are not available through these tools; a save here only saves.

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

Input Schema

NameRequiredDescriptionDefault
dataNoFull style JSON to create the style from.
nameYesStyle name, 1–100 characters, no line breaks or tabs.
pathNoPath of a style JSON file on this computer, used instead of data, for example a file written by download_style and then edited. Prefer an absolute path: a relative one is taken from the folder MAGICLANE_FILES_DIR names when the server has one, otherwise the server's working directory, which may not be yours. A path that starts with ~/ or ~user/ is refused: ~ is not read as a home folder.
tagsNoTags: up to 20, each 1–16 characters, no commas; set with a second write after creation.
purposesNoPurposes, any of browse, navigation-car, navigation-truck, navigation-bike, navigation-pedestrian, satellite, elevation; set with a second write after creation.
templateIdNoTemplate variation id from list_templates to copy the content from. Must be a template, not one of your styles (to duplicate a style, get_style it and pass its data here instead).
descriptionNoDescription, up to 1000 characters; set with a second write after creation.

Output Schema

NameRequiredDescriptionDefault
fromNoThe style file the JSON was read from: on the local server only.
notesYesThings to know about this result.
styleYesA style, without its JSON.
warningsNoWhat to fix in the style. Fix them before saving (or save again), also when they came from a template: apply each "fix", ask the user where askUser is true, make the change the message names where there is neither, and tell the user what you fixed. If one cannot be fixed, or the user keeps it, say so and leave it: warnings never block a save. Only the checks this server makes: an empty list does not mean Studio shows no warning.
takenFromListNoThe answer to the create request was lost, and this style, which has the name and was not in the list before the request, was taken as the new one. Check it with get_style before writing to it.
detailsAppliedYesWhether description, tags and purposes were saved too.
warningsTruncatedNowarnings counted but not listed: validate again after fixing the listed ones.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the required API key scope, the fact that description/tags/purposes require a second write, non-idempotent behavior, timeout handling, and warning behavior for unfixable template layers. These are concrete operational details an agent needs before invoking the tool.

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 long but front-loads the creation options and then layers in constraints, return behavior, warnings, and format references. Most sentences earn their place, though the density and multiple reference links make it less concise than it could be.

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 complex write tool with nested JSON, multiple input modes, template warnings, and non-idempotent behavior, the description is complete. It covers authentication, side effects, return information, escaping the wrong input mode, and limitations outside the tool's scope.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the schema carries most parameter detail. The description still adds important routing semantics: exactly one of templateId/data/path, templateId must come from list_templates, a style id is not accepted as templateId, and duplicating a style requires get_style data.

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 specific verb and resource: creating a Magic Lane Studio style in the account. It clearly distinguishes creation from sibling operations such as get_style, update_style, and list_templates, including how to duplicate an existing style.

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 explicitly states that exactly one of templateId, data, or path must be supplied, and explains the duplication workflow through get_style. It also names actions that are not available through these tools, such as publishing, reverting, deleting, previews, thumbnails, and privacy settings.

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