Skip to main content
Glama

MapScale

MapLibre style URL

mapscale_style_url
Read-onlyIdempotent

Build the MapScale MapLibre style URL (self-contained: tiles+glyphs on the same origin). Drop straight into new maplibregl.Map({ style }). Params: lang (th/en), accent (6-digit hex), hide (layer groups).

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_style_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
hideNo
langNoMCP client UTF-8 budget: 512 bytes.th
accentNo6-digit hex, # optional (e.g. 0c4a4a) MCP client UTF-8 budget: 512 bytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and openWorldHint=false. The description adds meaningful detail beyond that: the URL is self-contained (tiles + glyphs on the same origin), so no external requests or keys are implied. It does not mention auth requirements, URL stability/expiry, or whether the returned URL is cacheable.

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?

Three short, front-loaded sentences with no filler; the core purpose and the drop-in usage appear first, params last. The final sentence is telegraphic ('hide (layer groups)') but still parses.

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 zero-required-param, three-optional-param URL builder with no output schema, the description covers what is produced (a style URL), its self-contained nature, and how to consume it. Only return-value details (string URL, determinism per param combo) are left implicit, which is acceptable here.

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 67% and the description restates all three params: lang (th/en), accent (6-digit hex), hide (layer groups). The 'layer groups' gloss adds a little framing over the raw enum list, but hex/how accent is applied and what hiding a group visually does are not explained beyond the schema.

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?

States a specific verb+resource: 'Build the MapScale MapLibre style URL', and adds scope detail (self-contained, tiles+glyphs on same origin). It's clearly a URL-builder rather than a data-fetch tool, but it does not explicitly contrast with mapscale_styles_list or the map-rendering siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Drop straight into `new maplibregl.Map({ style })`' implies the intended consumer (a MapLibre map instance), which is useful usage context. However there is no explicit when-to-use vs. when-not, and no routing between this and sibling tools like mapscale_styles_list or mapscale_show_thailand_map.

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.