Skip to main content
Glama

MapScale

Geocode a Thai address

mapscale_geocode
Read-onlyIdempotent

Geocode a query to coordinates. Accepts Thai-script or English queries (addresses, POIs, Thai administrative areas such as province, district and subdistrict) and returns a Mapbox-shaped GeoJSON FeatureCollection built on OpenStreetMap data. Requires a secret (sk_) key.

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": {
      "q": "<q>"
    },
    "name": "mapscale_geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesFree-text query, e.g. "siam paragon" or "ซีคอน สแควร์" MCP client UTF-8 budget: 2048 bytes.
bboxNominLng,minLat,maxLng,maxLat bias MCP client UTF-8 budget: 128 bytes.
langNoResult language MCP client UTF-8 budget: 512 bytes.
limitNo
countryNoISO-2 filter, e.g. TH MCP client UTF-8 budget: 512 bytes.
proximityNo"lng,lat" bias MCP client UTF-8 budget: 128 bytes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new context beyond them: the return payload is a Mapbox-shaped GeoJSON FeatureCollection over OpenStreetMap data, and calls require a secret (sk_) key, which signals an authentication prerequisite the agent would otherwise not know.

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 sentences, front-loaded with the action and followed by accepted inputs, return shape and auth requirement. There is no filler or repetition of the schema.

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 no output schema, the description takes on the burden of describing the return value and does so (GeoJSON FeatureCollection), and it flags the key requirement. It is slightly incomplete on failure modes and on how the bias parameters affect results, but nothing essential to invoking the tool is missing.

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 83%, so the baseline is 3 and the schema already documents q, bbox, lang, limit, country and proximity. The description only clarifies the semantic scope of `q` (Thai script or English, addresses/POIs/admin areas), adding modest value but no detail on the biasing or filtering parameters.

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?

"Geocode a query to coordinates" gives a specific verb and resource, and the description enumerates the accepted query classes (addresses, POIs, Thai administrative areas). It never names a sibling tool, so an agent must infer on its own that mapscale_reverse or mapscale_autocomplete are the alternatives for reverse lookups or partial input.

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?

Acceptable inputs are implied by the list of query types, which is useful context, but there is no explicit when-to-use/when-not-to-use statement and no pointer to alternatives such as reverse geocoding or autocomplete. The agent must infer the boundary conditions itself.

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.