Skip to main content
Glama

MapScale

Make a Thailand map by link

mapscale_newsroom_map
Read-onlyIdempotent

Make a choropleth map of Thailand by province or district with NO API key and no studio clicks: returns the MapScale newsroom studio link, a bare-map link, ready-to-paste responsive embed code and SVG/PNG image links, for a curated dataset (elderly share, rainfall, income, population density, forest, rice...) or the user's own numbers by province/district name (English or Thai). Free for editorial use with a 'Map: MapScale' credit linking to mapscale.io. Use for any "map these numbers" / "map X across Thailand" request from a journalist or writer.

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": "mapscale_newsroom_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoBars in the ranking chart.
dataNoThe user's own numbers, one per province or district: [{place, value}]. place is an English or Thai name or a PCODE such as TH10.
langNoMap label language. MCP client UTF-8 budget: 512 bytes.
playNoEmbed link only: play the year-by-year animation once when the map loads (datasets with history).
yearNoYear to show for a dataset with history (it has a year slider, province charts and an animated GIF in the studio): warming and temperature 1900-2024, pm25 and unhealthy-air 2024-2025, flood-extent 2009-2014 (default 2011). Other datasets ignore it; an unknown year is dropped. Images (SVG/PNG) honour it.
chartNoWhich chart tab opens by default in the studio and embed (datasets with history). MCP client UTF-8 budget: 512 bytes.
focusNoZoom to these provinces (PCODEs like TH50 or names); wins over region.
notesNoCallouts pinned to provinces: [{pcode, text}] (text max 80 characters, no statistics).
shapeNoEmbed and image shape. MCP client UTF-8 budget: 512 bytes.wide
statsNoBig-number cards under the map: [{pcode, metric: value|change, label?}]. The number comes from the data.
styleNoMap look; light and dark also work. MCP client UTF-8 budget: 512 bytes.
titleNoMap title (max 200 characters). MCP client UTF-8 budget: 512 bytes.
colorsNoColour ramp. MCP client UTF-8 budget: 512 bytes.
localeNoLanguage of the studio page the links open. MCP client UTF-8 budget: 512 bytes.en
pointsNoPoint data instead of regions: [{lat, lng, label?, value?}].
regionNoZoom to one of the six regions; the rest of Thailand is drawn pale. MCP client UTF-8 budget: 512 bytes.
sourceNoThe data source the journalist should credit (max 300 characters). MCP client UTF-8 budget: 512 bytes.
valuesNoLabel every province with its value.
captionNoText under the map (max 300 characters). Never write numbers: use placeholders such as {TH50.value}, {TH50.change}, {TH50.name}, {TH50.rank}, {median.value}, {median.change}, {year}, {compareYear}, {unit}; the page fills them from the data. MCP client UTF-8 budget: 512 bytes.
compareNoDatasets with history: a second year. The map then shows the CHANGE (year minus compare), with a diverging cool-warm palette centred on 0. Example: dataset=warming, year=2024, compare=1950.
datasetNoCurated Thailand dataset: population, elderly, rain (3-month rainfall vs normal), rainfall-normal, income, city (built-up share), forest, farms, rice, durian (registered durian-growing households by province, 2024), district-population, air (PM2.5, 2024-2025), warming, temperature, flood (2011; flood-extent by year), flash-flood, fires, landslides, sinkholes, earthquake (2025). Used when data and points are absent. MCP client UTF-8 budget: 512 bytes.
subtitleNoMap subtitle (max 200 characters). MCP client UTF-8 budget: 512 bytes.
highlightNoProvinces (PCODEs like TH10 or names) to outline and label with name and value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered. The description adds genuinely useful context beyond them: no API key, no studio clicks, and a mandatory 'Map: MapScale' credit linking to mapscale.io — an editorial obligation an agent must surface to the user. It stops short of disclosure about limits or what happens with large or malformed inputs, so with annotations carrying the safety profile a 3 is fair.

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 deliverable and the no-API-key hook, then packs dataset options, input modes, licensing and the usage trigger into one dense but scannable paragraph. Every clause carries information; slightly long, but nothing is padded.

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 23-parameter, no-output-schema link-builder, the description crucially states the return artefacts (studio link, bare-map link, embed code, image links), which the schema cannot express. The main gap is routing: it never says when to prefer mapscale_show_thailand_map or mapscale_thailand_quickstart, leaving an agent to guess among near-identical map tools.

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% across all 23 parameters, including the curated dataset list, caption placeholders and compare semantics, so the schema already does the heavy lifting. The description only restates the province/district-name and curated-dataset options, adding no format, constraint or interaction detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Make a choropleth map of Thailand by province or district") and enumerates what it returns: studio link, bare-map link, embed code, SVG/PNG links. That is enough for an agent to recognise the tool without opening the schema, but it never distinguishes itself from the sibling mapscale_show_thailand_map, which an agent will see sitting next to it.

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 positive trigger: "Use for any 'map these numbers' / 'map X across Thailand' request from a journalist or writer," and clarifies the two data paths (curated dataset vs. the user's own numbers). It states no exclusions, prerequisites, or which sibling to pick when the request is a plain map view rather than a link/embed.

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.