Skip to main content
Glama

Color countries by level

set_levels

Geo maps: color countries from 0 (faint) to 4 (the full accent), like a heat map, and show a legend under the title. Or rate them on a labeled scale: pass steps ("live" for where I'd live, "been", "visit", "tier", or your own labels and colors) and give each place a step label. levels is an object of country (code or name) to level, null takes the color off. On a map of one country (region us, de, fr...), the keys are its states, provinces or regions, by name or code ("California", "US-CA", "Bavaria"). legend sets its label and end labels and turns it on ({on: false} hides it). With the legend on, clicking a country on the page steps through the levels.

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": {
      "mapId": "<mapId>",
      "token": "<token>"
    },
    "name": "set_levels"
  }
}

Input Schema

NameRequiredDescriptionDefault
mapIdYesThe map id from create_map.
stepsNoGeo maps: rate mode, a labeled color scale such as Never to Absolutely. "live" (Never, Probably not, Maybe, Yes, Absolutely), "been" (Never been to Lived there), "visit" (No interest to Top of my list), "tier" (F to S), or your own list of 2 to 10 labels or {label, color} (lowest first; colors are hex). With steps, a level is a step number (0 is the first step) or a step label, and the legend lists the labels. Use it for "where I'd live", "states I've been to", a tier list of countries, or a categorical choropleth.
tokenYesThe editToken from create_map. Required for every change.
legendNo
levelsNoFor example {"DE": 4, "FR": 2, "Spain": 1, "IT": null}. With steps, a step number (0 is the first) or a step label: {"Texas": "Absolutely", "Ohio": "Maybe"}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses that null removes a color, that the legend can be hidden with {on: false}, and that clicking a country steps through levels when the legend is on. These are meaningful behavioral details an agent would not get from the annotations alone. It does not describe error behavior or response shape.

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?

The description is dense but front-loads the primary capability and every clause carries useful information about modes, legend behavior, or key formats. It is a long run-on paragraph rather than structured sections, which slightly hurts scanability.

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 5-parameter mutation tool with no output schema, the description covers both operating modes, legend configuration, null removal, and the single-country key format. It is nearly complete; only edge-case behavior (invalid mapId, confirmation of success) is left unspecified.

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 80%, so the schema already documents most parameters. The description adds real meaning: levels maps country codes or names to levels, null clears a color, and on single-country maps the keys are state/province names or codes ("California", "US-CA"). The steps explanation reinforces the schema's enum and custom-label options.

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?

The description states a specific verb and resource: coloring countries on geo maps by a 0-4 level or by labeled steps, with a legend. It distinguishes the two modes (heat-map levels vs. labeled scale) clearly. It does not explicitly differentiate itself from siblings like update_map or update_items, which keeps it from a 5.

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 concrete use cases ("where I'd live", "states I've been to", a tier list of countries) and explains that steps mode is for a labeled scale while levels mode is for a numeric heat map. It also covers single-country maps where keys are states/provinces. It stops short of naming when to use a sibling like update_items instead.

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.

Resources