Skip to main content
Glama

sg_onemap_search

Geocode Singapore addresses, buildings, roads, bus stops, or postal codes via OneMap and return matched locations with latitude/longitude and SVY21 coordinates.

Instructions

Geocode a Singapore address, building, road, bus stop or postal code via OneMap. Returns matched addresses with lat/long and SVY21 x/y. Requires ONEMAP_TOKEN.

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": {
      "query": "<query>"
    },
    "name": "sg_onemap_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoResult page (about 10 results per page).
queryYesAddress text, e.g. a postal code like 200640 or a building name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It usefully discloses the credential requirement (ONEMAP_TOKEN) and the return contents (matched addresses with lat/long and SVY21 x/y), but says nothing about no-match behavior, rate limits, or whether multiple candidate matches are returned.

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?

Two tight sentences: capability and return shape first, prerequisite last. No filler, no restatement of the tool name.

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 two-parameter lookup with no output schema, the description supplies the essential pieces: what can be geocoded, what comes back (coordinates in two systems), and the auth prerequisite. Only edge-case behavior such as failed matches or result ordering is left unstated.

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, including the page size hint of about 10 results. The description only loosely extends query semantics by mentioning road and bus stop inputs beyond the schema's postal-code/building examples, which is marginal added value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Geocode) plus the resource set (Singapore address, building, road, bus stop, postal code) and the data source (OneMap). This is clearly distinguishable from siblings like sg_onemap_planning_areas or sg_singstat_search, which do not geocode free-text addresses.

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 description enumerates the accepted input types, which implies when the tool applies, but gives no explicit when-to-use/when-not guidance and names no alternative for related lookups. An agent can infer usage from the input examples but receives no routing rules.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.