Skip to main content
Glama

Geocode a French address

geocode_french_address
Read-onlyIdempotent

Convert free-text French addresses into GPS coordinates, normalized addresses, postcodes and INSEE commune codes using official BAN/IGN data. Filter results by postcode or INSEE citycode.

Instructions

Geocode a free-text French address: GPS coordinates, normalized address, postcode, INSEE commune code and match score. Optional postcode / INSEE citycode filters. Official BAN / IGN Géoplateforme data. Price: $0.003 per call, paid in USDC on Base via x402. You are not charged when the call fails or finds nothing.

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

Input Schema

NameRequiredDescriptionDefault
qYesFree-text French address (3-200 chars), e.g. 10 rue de la Paix Paris
limitNoNumber of results, 1 to 5 (default 1)
citycodeNoOptional INSEE code of the commune (5 chars, Corsica 2A/2B), e.g. 75102
postcodeNoOptional 5-digit French postcode filter, e.g. 75002

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds genuinely new context: per-call cost of $0.003 in USDC on Base via x402, the explicit no-charge policy when the call fails or finds nothing, and the upstream data provenance (BAN / IGN Géoplateforme). The billing-on-failure disclosure is exactly the kind of behavior an agent cannot infer from structured fields.

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 tight sentences: purpose plus return fields first, then filter behavior, then data source and price. No restatement of the title, no filler, and the cost caveat lands at the end where it is easiest to act on.

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 usefully enumerates the returned fields, and it covers cost, data provenance and failure billing. Minor gaps remain: nothing is said about rate limits, latency, or what a zero-result response looks like structurally, though the no-charge note covers the practical concern.

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 the schema already explains q, limit, citycode and postcode with examples and patterns. The description only notes that postcode and INSEE citycode act as optional filters, adding marginal meaning beyond the schema; the baseline 3 applies.

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?

Opens with a specific verb and resource ('Geocode a free-text French address') and enumerates exactly what comes back: GPS coordinates, normalized address, postcode, INSEE commune code, match score. The 'free-text' qualifier implicitly separates it from reverse_geocode_france, but no sibling is named, so it falls short of full differentiation.

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 rather than stated: 'free-text French address' tells the agent this is the forward-geocoding path, and the optional postcode/citycode filters hint at narrowing ambiguous input. There is no explicit when-to-use or when-not guidance, and no alternative tool (reverse_geocode_france, french_address_risk_report) is referenced.

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