Skip to main content
Glama

Offres Neuf by M2

Lister les villes avec des logements

list_cities
Read-only

Liste les villes du catalogue où des logements disponibles correspondent aux critères (typologie, budget, surface, extérieur, livraison, dispositif, promoteur), avec leur département, leur nombre de programmes et de lots et leur prix minimum. À appeler avant search_lots quand la zone est large (région, « le Sud », « près de... ») ou que la ville n'est peut-être pas dans le catalogue : cibler un département avec departments (ex. ["13", "83", "84"] pour la Provence). Ne jamais sonder les villes une à une avec search_lots.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_cities"
  }
}

Input Schema

NameRequiredDescriptionDefault
min_areaNoSurface habitable minimum en m².
promoterNoNom ou identifiant (`slug`) du promoteur. Voir list_promoters.
incentiveNoDispositif d'aide ou fiscal éligible.
max_priceNoPrix TTC maximum en euros (budget).
min_priceNoPrix TTC minimum en euros.
unit_typesNoTypologies acceptées.
departmentsNoCodes département à cibler, ex. ["13", "83"]. Absent : toute la France.
outdoor_spacesNoTypes d'extérieur acceptés.
min_outdoor_areaNoSurface minimum de l'extérieur en m².
latest_delivery_dateNoDate de livraison maximale (AAAA-MM-JJ).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered; the description adds that results are enriched with department, program/lot counts and minimum price, which matters for deciding whether this call alone suffices. It does not mention result caps, pagination or ordering, which is the main remaining behavioral gap.

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 sentences: purpose first, then routing guidance, with zero filler. The parenthetical criteria list mirrors the schema's facets and is compact enough not to impede scanning.

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?

Ten optional parameters, no required fields and no output schema, so the description correctly compensates by naming the returned fields and the broad-vs-narrow zone strategy. Only the shape of the result set (ordering, limits, empty behavior) 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 all ten parameters are already documented, including the departments example and the enum values. The description adds strategic framing for `departments` (broad-zone targeting) but no new syntax or default semantics beyond the schema, which is the expected baseline.

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 and resource ('Liste les villes du catalogue') plus the exact filter criteria applied and the fields returned (département, nombre de programmes/lots, prix minimum). It also explicitly contrasts with search_lots, so an agent can distinguish the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit ordering rule ('À appeler avant search_lots quand la zone est large'), concrete triggers (région, « le Sud », « près de... », ville peut-être absente du catalogue), a positive technique (cibler un département via `departments`, with a worked example), and an explicit prohibition ('Ne jamais sonder les villes une à une avec search_lots').

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