Skip to main content
Glama

Resolve Location

resolve_location
Read-only

Resolve free-form French place text ("Paris 11e", "75011", "Saint-Étienne", "st etienne") to canonical Normi filters. Use it before another tool when the location is informal, accented, abbreviated or ambiguous.

Returns ranked commune, postal-code, department and INSEE filters. "Paris" returns all 20 arrondissements rather than picking one; "Montpellier 34000" returns that commune.

match_type postal_code, exact, official_name or merged_commune_part is the place asked for; prefix and fuzzy (spelling look-alike) are guesses to confirm with the user. "ambiguous": true means the name exists in several departments (Saint-Denis 93 and 974): ask the user, then pass its code_postal or code_departement with the commune, since DVF tools reject the bare name. Always read "notice": it flags guesses, empty results and places DVF does not cover ("coverage").

Cost: 1 credit per call

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": "resolve_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFree-form administrative location, e.g. 'Paris 11e', '75011', 'Saint-Étienne', or 'st etienne'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations: it explains match_type confidence tiers (exact vs prefix/fuzzy guesses), the meaning of ambiguous:true and the downstream consequence that DVF tools reject bare names, the coverage notice for unsupported places, and the 1-credit cost per call.

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?

Front-loaded with purpose then usage, with cost last and quoted example tokens doing real work. It is dense but nearly every sentence carries operational guidance; a little compression of the example set would tighten it further.

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

Completeness5/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 still tells the agent exactly what comes back (ranked commune, postal-code, department and INSEE filters, match_type values, ambiguous flag, notice field) and how to act on each. Nothing essential for correct invocation or interpretation 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 description coverage is 100% and the single query parameter already carries the same examples, so the description adds only modest extra meaning about acceptable input forms (accents, abbreviations, bare INSEE text). Baseline 3 is appropriate when the schema already documents the parameter fully.

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?

Names a specific verb and resource: resolve free-form French place text to canonical Normi filters, with four concrete example inputs. It is clearly not a search tool itself but a pre-processing step, which distinguishes it from the analysis siblings, though it never names a specific sibling tool.

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?

Explicitly states when to call it ("Use it before another tool when the location is informal, accented, abbreviated or ambiguous") and prescribes the follow-up action on ambiguity (ask the user, then pass code_postal or code_departement). It omits an explicit when-not-to-use case, such as skipping the call when a postal code is already known.

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.

Resources