Skip to main content
Glama

Match regions

match_regions
Read-onlyIdempotent

Datawrapper: check which region values (names or codes) match a basemap, pick the best key automatically, and list unmatched values with spelling suggestions. Pass values, or data + region_column. Use before creating a choropleth 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": {
      "basemap": "<basemap>"
    },
    "name": "match_regions"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoForce a specific basemap key.
dataNoExactly one data source. Use csv/rows/columns for inline data (best below ~10,000 rows; line charts below ~1,000 points).
valuesNo
basemapYesBasemap id from find_basemap.
region_columnNoColumn with region identifiers when `data` is given (default: first text column).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world behavior, so the description's job is to add process detail — and it does: the tool picks the best key automatically and returns unmatched values with spelling suggestions, which tells the agent what to expect back and that results may need correction. It omits any note on cost, latency, or how the auto-key choice is decided.

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?

Three short sentences: capability first, input modes second, timing third. Nothing is repeated from the schema and no sentence is wasted.

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?

With five parameters, a nested data object, and no output schema, the description does the important work of naming the return content (matched/unmatched values plus spelling suggestions) and the calling order. It leaves the exact response shape and the meaning of the auto-selected key slightly under-described, which is a minor gap rather than a blocking one.

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 coverage is 80%, so the baseline is 3 and the schema does most of the work, including the basemap-id-from-find_basemap hint and the region_column default. The description adds real value by framing `values` and `data`+`region_column` as alternative input modes, but says nothing about `key` beyond what the schema already states.

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 specific verbs and resources: check region values against a basemap, auto-pick the best key, and list unmatched values with spelling suggestions. That distinguishes it clearly from find_basemap, whose output it consumes, and from create_chart, which it precedes.

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?

"Use before creating a choropleth map" gives an explicit sequencing rule, and "Pass `values`, or `data` + `region_column`" tells the agent which input shape to choose. It stops short of naming an alternative tool or stating when this step can be skipped, so it is clear context rather than full when/when-not guidance.

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.