Skip to main content
Glama

Create a map

create_map
Read-onlyIdempotent

Make a production-ready static map and return its URL plus a rendered preview.

The map is a URL: the returned svg_url renders the same image forever, embeds in an tag with no JavaScript, and is the handle the other maproll tools accept.

Use it for choropleths (numeric values per region), flat colour paints, qualitative category maps, and plain highlight maps. Region ids are ISO 3166-1 alpha-2 at the "world" scope ("US", "DE", "BR") and ISO 3166-2 inside a country scope ("RO-B", "RO-CJ").

Numeric values and text categories cannot appear in the same map — pick one.

Do not use it for interactive or zoomable maps, driving directions, or street-level detail; maproll renders static statistical maps, not a slippy map.

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

Input Schema

NameRequiredDescriptionDefault
bboxNoCrop to "minLon,minLat,maxLon,maxLat"; the projection refits to the rectangle.
extraNoEscape hatch for documented parameters without a field here (patterns, annotations, proportional, labelMinArea, ...). Passed through verbatim.
scopeYesGeography to draw. "world", a group ("EU", "NATO", "G20", "ASEAN", "AFRICA"), or a country code for its subnational regions ("RO"). Read maproll://catalog/scopes, or call describe_options with kind "scopes", for the full list.
themeNoColour theme. Defaults to dark.
titleNoHeadline above the map.
widthNoPixel width. Defaults to 1200.
breaksNoBin upper bounds. Required when classification is custom.
detailNoGeometry detail. Defaults to "low" on world and group scopes, "medium" elsewhere. Set "medium" when `bbox` zooms into the world, or coastlines look coarse. "high" is slow and makes a multi-MB SVG; use it only for a PNG.
heightNoPixel height. Defaults to the projection's aspect ratio.
labelsNo"ISO" labels every region above the size threshold; an array labels only those ids.
legendNoShow the legend. Defaults true; set false for flat colour paints, which have no scale to show.
valuesNoPer-region data. Give `value` for a choropleth, `color` to paint a region flat, or `category` for qualitative buckets.
bordersNoShared borders to draw as heavy lines: region-id pairs joined by "-", e.g. ["IN-PK", "AF-PK"] (subnational: "US-CA-US-NV"). Both regions must be in the scope and actually touch. Do not list a pair twice or reversed.
disputedNoWorld and group scopes only (a country scope is rejected). Hatches disputed or occupied areas on top of the map, with transparent stripes so the controlling country's colour shows through. "all", or a list of ids. KASHMIR-PK and KASHMIR-IN are the two sides of the Line of Control; give both to stay neutral.
scaleBarNoKilometre scale bar, bottom left.
subtitleNoSmaller line under the title.
graticuleNoDraw a 10-degree lat/lon grid.
highlightNoRegion ids to highlight with no data behind them. Use instead of `values` when the point is which regions, not how much.
colorScaleNoSequential for magnitudes, diverging for values around a midpoint, categorical for buckets.
northArrowNoCompass arrow, top right.
projectionNoMap projection. Each scope has a sensible default; override only with a reason.
attributionNoOpenStreetMap credit. On by default and should stay on.
borderColorNoHex colour of the `borders` lines ("#22d3ee"). Defaults to the theme's text colour.
borderWidthNoWidth of the `borders` lines in px. Defaults to 2.5, clamped to 0.5-12.
legendItemsNoYour own legend, for maps whose colours you chose with `color` instead of letting the scale pick them: `;`-separated `color:label` pairs, drawn in that order, e.g. "#1d4ed8:Democrat by 15 or more;#93c5fd:Democrat by under 5;#b91c1c:Republican by 15 or more". Up to 20 entries, 40 characters per label. Replaces the computed legend; works in every theme.
legendTitleNoCaption above the legend.
legendLayoutNo
legendNoDataNoLabel for an extra legend swatch, in the map's land colour, covering the regions with no value — so a reader can tell the lowest band from absent data. Pass the label itself, and make it say what blank means on THIS map: "No data" when the regions are simply missing from the dataset, "None recorded" when blank is a real zero (a banana-production map). Omit it for no swatch.
classificationNoHow numeric values are binned. Ignored for diverging and categorical scales.

Output Schema

NameRequiredDescriptionDefault
embedYesReady-to-paste <img> tag.
png_urlYesThe same map as PNG, 900 px wide unless you set width. The SVG has no such default and renders at 1200, so pass width when the two must match exactly.
svg_urlYesEmbeddable SVG. This is also the handle other tools take.
warningsYesNon-fatal problems, e.g. region ids the renderer did not recognise.
editor_urlYesOpen in the maproll editor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the bar is lower, but the description still adds real behavior: the returned URL renders the same image forever, requires no JavaScript, and is the handle accepted by other maproll tools. It does not address limits such as map size, render time, or what the preview contains, so it stops short of full transparency.

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?

Front-loaded with the outcome, then capabilities, then the id convention, then exclusions. Every paragraph carries distinct information — no restatement of the title and no filler.

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?

For a 29-parameter tool with nested objects, an output schema, and 97% schema coverage, the description supplies the framing an agent needs to choose a data mode and a scope, while the schema handles per-parameter detail. It leaves advanced options (classification, legend overrides, disputed hatching) entirely to the schema, which is reasonable but means the description alone doesn't convey the tool's full range.

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 97%, so the baseline is 3, but the description adds cross-cutting meaning the schema only states per-field: region ids are ISO 3166-1 alpha-2 at world scope and ISO 3166-2 within a country scope, with worked examples ("US", "RO-CJ"). It also clarifies the mode-selection rule that spans values, category, and color, which helps an agent reason about 29 parameters at once.

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?

Opens with a specific verb and artifact: "Make a production-ready static map and return its URL plus a rendered preview." It then defines what that artifact is (a stable svg_url embeddable via <img>, the handle other maproll tools accept), which distinguishes it from siblings like add_layers or find_places without needing their schemas.

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?

Explicit positive cases are enumerated (choropleths, flat colour paints, qualitative category maps, plain highlight maps) and explicit exclusions are given (interactive/zoomable maps, driving directions, street-level detail), with the reason: maproll renders static statistical maps, not a slippy map. It also states a hard constraint that selects the data mode: numeric values and text categories cannot coexist.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.