Skip to main content
Glama

MapScale

Upload a GeoJSON dataset

mapscale_dataset_upload

Upload a small GeoJSON FeatureCollection (WGS84, up to 1000 features and 256 KB inline) as a dataset and serve it as vector tiles at /tiles/v1/ds_/{z}/{x}/{y}.mvt. Larger files: POST to /v1/datasets directly. Requires a secret (sk_) key. Creates a stored dataset, so confirm with the user first.

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": {
      "name": "<name>",
      "geojson": "<geojson>"
    },
    "name": "mapscale_dataset_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name, 1-120 characters. MCP client UTF-8 budget: 512 bytes.
slugNoOptional layer name inside the tiles: lowercase letters, digits, - and _. Defaults to a slug of name. MCP client UTF-8 budget: 512 bytes.
publicNoLet any key read the tiles. Default false (private to your account).
geojsonYesGeoJSON FeatureCollection, e.g. {"type":"FeatureCollection","features":[...]}. A JSON string is also accepted.

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=false and openWorldHint=true, and the description adds genuine value on top: size caps, the auth key class, and 'Creates a stored dataset, so confirm with the user first,' which flags a persistent write. However, it does not say whether re-uploading produces a new dataset or errors (idempotentHint=false is only in annotations), nor what failures look like at the size boundary.

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?

One tight block, front-loaded with the capability and limits, then the fallback path, then the auth and confirmation caveats. Every clause carries information, though the tile URL template and the 256 KB / 1000-feature numbers make the single sentence dense enough to reward a re-read.

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 four-parameter write tool with no output schema, the description covers payload limits, CRS, auth, resulting tile path, and the confirmation norm. The remaining gap is the return value (does it return the new ds_<id>?), which is not covered anywhere since there is no output schema.

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 100%, so `name`, `slug`, and `public` are already fully documented; the description only adds the FeatureCollection constraints (1000 features, 256 KB, WGS84) which the schema itself omits. That constraint detail is useful but offset by the fact that the schema already carries the per-parameter burden.

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 concrete verb and resource plus the exact scope: 'small GeoJSON FeatureCollection (WGS84, up to 1000 features and 256 KB inline)' and the tile URL it produces, so the agent knows precisely what side effect to expect. It never names a sibling tool for the alternative path, offering only a raw endpoint ('POST to /v1/datasets directly'), so differentiation from tools like mapscale_datasets_list is left implicit.

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 real when-to-use boundaries: this tool is for small inline payloads, and 'Larger files: POST to /v1/datasets directly' redirects the oversized case. It also states the auth precondition ('Requires a secret (sk_) key') and a confirmation requirement, but does not say how to check existing datasets or what to do on name collisions.

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.