Skip to main content
Glama

MapScale

Spatial analysis

mapscale_analysis
Idempotent

Run a spatial analysis on GeoJSON: buffer, aggregate, nearest or intersect. params is the JSON request body for that operation, as documented in the MapScale analysis reference (https://mapscale.io/docs). Requires a secret (sk_) key and an API deployment with the analysis endpoints.

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": {
      "operation": "<operation>",
      "params": "<params>"
    },
    "name": "mapscale_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYesJSON body for the chosen operation.
operationYesMCP client UTF-8 budget: 512 bytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is partly covered. The description adds genuinely useful context beyond that: an sk_ secret key is required and the deployment must have analysis endpoints enabled. However, it never clarifies whether results are persisted or ephemeral — notable given readOnlyHint=false — nor any rate limits or output format.

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?

Two sentences, front-loaded with the capability and the operation list before the prerequisites. No filler, though the external documentation link is doing work that inline text could have done.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with a nested, free-form params object and no output schema, the description should explain what each operation's body expects and what comes back; instead it outsources both to a URL. The prerequisites and operation list make it minimally viable, but an agent still cannot construct a valid params body without leaving the definition.

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%, so both parameters are already documented in the schema, which sets the baseline at 3. The description only restates that params is the JSON request body and defers all field-level meaning to an external URL, adding no per-operation body detail 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?

The description states a specific verb and resource ('Run a spatial analysis on GeoJSON') and enumerates the four supported operations (buffer, aggregate, nearest, intersect), which map directly to the operation enum. An agent can distinguish this from sibling geometry tools like mapscale_isochrone or mapscale_route, though no sibling is named explicitly.

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?

Usage is implied by the operation list rather than stated: use this for buffer/aggregate/nearest/intersect on GeoJSON. There is no guidance on when to prefer this over isochrone or matrix, and no exclusions or decision rules. Prerequisites (secret key, analysis-enabled deployment) are given, which helps selection but is not when-to-use 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.