Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

Download Style

download_style
DestructiveIdempotent

Download a Magic Lane Studio map style as a JSON file or as a .style file the SDK loads, writing it to disk and replacing an existing file only when overwrite is set.

Instructions

Download a Magic Lane Studio style as a file: format "json" (the style JSON, byte-for-byte the "data" of get_style) or "proto" (the .style file the Magic Lane SDK loads, which the portal builds on request in about a second). Give a path to write the file to disk — required in practice for "proto", which is otherwise returned base64-encoded only when small. The file is new: an existing one is replaced only with overwrite: true. The download reflects the last saved content whether or not the style was published in Studio. When the portal cannot build the .style file, the result carries what it reported, which says what to fix.

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

Input Schema

NameRequiredDescriptionDefault
idYesStyle or template id (UUID).
pathNoFile path to write the download to, absolute or relative to the folder MAGICLANE_FILES_DIR names when the server has one, otherwise the server's working directory, ending in ".json" for "json" and in ".style" for "proto". Recommended for "proto"; without a path a binary is returned base64-encoded only when it is small. The file is new: an existing one is replaced only with overwrite: true. A network path is refused, and so are a name other programs run commands from (such as package.json or kernel.json), any folder or file that starts with a dot, the folders where programs keep their settings (~/Library on macOS, AppData and ProgramData on Windows), and a name holding a character that shows as nothing. A path that starts with ~/ or ~user/ is refused: ~ is not read as a home folder.
formatNo"json": the style JSON file (identical to get_style data). "proto": the .style file the Magic Lane SDK loads; the portal builds it on request in about a second, and when it cannot, the error says why.json
overwriteNoReplace the file at path if it exists. Default false: an existing file is refused. Set it only when the user wants that file replaced, for example to download again a style file you downloaded before.

Output Schema

NameRequiredDescriptionDefault
idYesStyle id.
dataNoThe style JSON, for a json download without a path.
noteYesThings to know about this result.
pathNoAbsolute path the download was written to: on the local server only.
bytesYesSize of the download.
base64NoThe .style file, base64-encoded, for a small proto download without a path.
formatYes"json": the style JSON; "proto": the .style file.
filenameNoFile name the portal suggested.
contentTypeYesContent type the portal sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations mark this as destructive and non-read-only; the description earns that by explaining that an existing file is replaced only with overwrite: true and is otherwise refused. It additionally discloses that the download reflects the last saved content regardless of publish state, that base64 fallback only occurs for small files without a path, and how build failures surface what to fix.

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?

It is a single dense paragraph but front-loads the core action and format choice before edge cases. A few sentences mirror schema content (path restrictions, base64 fallback), which is mild redundancy rather than waste.

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?

With an output schema present, the description needn't describe return shapes, and it covers what it must: format semantics, disk-write behavior, overwrite risk, publish-state independence, and the failure path. Nothing an agent needs to invoke this tool correctly appears missing.

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 100%, so the baseline is 3; the description still adds real meaning beyond the schema, notably that a path is required in practice for proto and that the portal builds the .style file on request in about a second. Some of the path restriction text repeats what the schema already says, keeping it short of a 5.

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 states a specific verb and resource (download a Magic Lane Studio style as a file) and immediately qualifies it with the two output formats. It also pins the relationship to a sibling by saying the json output is byte-for-byte the data of get_style, so the agent can distinguish the two tools without opening either schema.

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?

It gives clear selection guidance between formats (json vs proto, with the ~1 second build cost for proto) and explicit conditions for overwrite (only when the user wants a file replaced, e.g. re-downloading). It does not explicitly say 'use get_style instead if you only want the JSON in the response', so the alternative routing is implied rather than stated.

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