Skip to main content
Glama
Magic Lane MCP DevKit Server

Magic Lane MCP DevKit Server

Official
by magiclane

Get Style Reference

get_style_reference
Read-onlyIdempotent

Read Magic Lane Studio style reference as Markdown to understand style JSON layout, layers, colours, fonts, and paint properties before editing. Filter documentation by section heading.

Instructions

Read the Magic Lane Studio style reference, as Markdown. Without arguments: the style editing essentials (built in, about 7 KB): file layout, drawing order, the data numbers of common layers, paint stop lists, ABGR colours, text codes, icons and fonts, Studio's shared colours, checks before saving. Read them before editing style JSON. The full pages come from developer.magiclane.com: "style-file-format" (the whole format), "map-data-sources" (every layer data number and the POI categories by metaCategoryID) and "layer-types-reference" (every layer type and the paint properties it takes; long, so without "section" you get its outline). "section" returns only the parts whose heading contains it. The same pages are resources magiclane://docs/.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_style_reference"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo"style-essentials" (default, built in): what most edits need. "style-file-format": the full format page. "map-data-sources": which data a layer draws, by type and sourcedata_id, and the POI categories. "layer-types-reference": every layer type and its paint properties (long: pass section).style-essentials
sectionNoReturn only the sections whose heading contains this text (case-insensitive), for example "Colours", "Fonts" or "symbol". Without it the whole page is returned, or for a long page its outline.

Output Schema

NameRequiredDescriptionDefault
pageYesThe page that was read.
outlineYesTrue when the page was too long and only its outline is returned.
sectionNoThe heading text the page was narrowed to.
markdownYesThe page, a section of it, or its outline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds real context beyond them: approximate size of the built-in page (~7 KB), that output is Markdown, that long pages return an outline without 'section', and that the same content is mirrored as magiclane://docs/<page> resources.

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?

Front-loads the core action and the no-argument default before describing pages. It is dense with quoted identifiers and parentheses, which makes it slightly heavy to scan, but nearly every clause carries actionable information.

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?

Two optional parameters, full schema coverage, an output schema, and clear annotations make this an easy tool to call. The description supplies the remaining decision-relevant facts — default content, page semantics, outline behavior, resource mirror — so nothing an agent needs is 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 already 100%, so the baseline is 3, but the description adds meaning beyond the enum labels: it explains that 'section' matches headings containing the text and gives concrete examples, and it clarifies the outline-vs-full-page behavior tied to the 'layer-types-reference' page.

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?

States a specific verb and resource: reading the Magic Lane Studio style reference as Markdown, with a named built-in default and three named external pages. It is clearly documentation-reading rather than style mutation, which separates it from get_style/edit_style_details without needing to name them.

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?

Gives an explicit trigger ('Read them before editing style JSON') and explains which page to pick for which need, plus when to pass 'section' because a long page otherwise returns only an outline. No when-not guidance or named sibling alternatives, but the page-selection mapping covers the practical choice space.

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