Skip to main content
Glama

validate_and_geocode_address

Read-onlyIdempotent

Validate, clean, and geocode unformatted Bangladesh delivery addresses into structured boundaries and coordinates, with match quality, review flags, and a deliverability confidence score.

Instructions

Validate, clean, and geocode an unformatted Bangladesh delivery address into structured administrative boundaries (thana_input, thana_resolved, district, division), latitude/longitude coordinates, match_quality (road, house, area), needs_review flag, and a deliverability confidence score (0-100, capped at 60 when location_type != ROOFTOP) via Google Maps Platform Geocoding API with OpenStreetMap gazetteer fallback. READ-ONLY SPATIAL LOOKUP.

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": {
      "address": "<address>"
    },
    "name": "validate_and_geocode_address"
  }
}

Input Schema

NameRequiredDescriptionDefault
thanaNoOptional expected Thana/Upazila name to verify against geocoded components
addressYesFull street or local address (e.g. 'Road 11, House 24, Dhanmondi, Dhaka')
districtNoOptional District name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.5
    • changedInput schema / properties / thana / description
      Previous value: -"Optional Thana/Upazila name"New value: +"Optional expected Thana/Upazila name to verify against geocoded components"
  2. Addedv2.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint and destructiveHint=false, so the description does not need to restate safety. It adds genuine behavior beyond that: the upstream providers (Google Maps Platform Geocoding API with OpenStreetMap gazetteer fallback), a confidence score capped at 60 unless location_type is ROOFTOP, and a needs_review flag — all non-obvious traits an agent should know before trusting low-confidence results.

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?

The core action and its output contract are front-loaded in the first clause, and the trailing tag reinforces the mode of operation. The middle enumeration is long — a single dense sentence carrying six output concepts — but since no output schema exists, that content is load-bearing rather than padding.

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 must describe return values, and it does so thoroughly, including the confidence cap rule and review flag. Remaining gaps are modest: it does not say what happens for out-of-scope or non-Bangladeshi addresses, nor how failures or unresolvable sub-districts surface, which matters for a tool whose whole purpose is validating unreliable input.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents address, thana and district, and the baseline would be 3. The description adds meaning by indicating that thana/district are expected-boundary inputs that get resolved and verified against geocoded components (visible via thana_input vs thana_resolved), which clarifies why the optional params exist rather than merely restating them.

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?

The description opens with a specific verb chain (validate, clean, geocode) and a precisely scoped resource: an unformatted Bangladesh delivery address. It immediately enumerates the structured outputs (thana/district/division, lat-lng, match_quality, deliverability score), so an agent can distinguish it from sibling mutation tools like create_parcel or check_fraud_risk without opening the schema.

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 trailing 'READ-ONLY SPATIAL LOOKUP' tag and the read-only framing imply this is a pre-check step rather than a transactional tool, which is useful context. However there is no explicit when-to-use guidance, no statement that this should be run before create_parcel, and no exclusions such as non-Bangladesh or already-structured inputs, leaving the agent to infer the workflow position.

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