Skip to main content
Glama

Offres Neuf by M2

Comparer des logements

compare_lots
Read-only

Affiche un tableau comparatif de 2 à 4 lots (prix, surface, extérieur, étage, livraison, points forts, statut et fraîcheur). Pour formuler une recommandation, renseigner recommended_lot_id avec le lot le plus adapté au projet exprimé par l'acquéreur (résidence principale, investissement, budget…) et reasons avec 2 à 4 justifications courtes, fondées uniquement sur les données des lots comparés. La recommandation est mise en évidence dans le tableau. Si au moins un lot provient d'un promoteur avec mise en relation disponible (accepts_leads), le tableau se termine par un formulaire de mise en relation (logement, nom, e-mail, téléphone) limité à ces lots, qui transmet directement la demande au conseiller : ne pas redemander ces informations dans la conversation, inviter l'acquéreur à utiliser le formulaire. Sinon, aucun formulaire n'est affiché : ne pas proposer de mise en relation pour ces lots. Le tableau est affiché directement à l'utilisateur : ne pas le recopier dans la réponse.

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": {
      "lot_ids": "<lot_ids>"
    },
    "name": "compare_lots"
  }
}

Input Schema

NameRequiredDescriptionDefault
lot_idsYesIdentifiants des lots à comparer, dans l'ordre d'affichage.
reasonsNoRaisons courtes justifiant la recommandation, ex. « Un bon équilibre entre prix, surface et terrasse ».
recommended_lot_idNoIdentifiant du lot recommandé pour le projet de l'acquéreur (optionnel).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint/destructiveHint; the description adds substantial behavior beyond that: the output is rendered directly to the user (not to be copied into the response), a lead form may appear and transmits the request straight to the advisor, and contact details must not be re-asked in conversation. These are consequential interaction rules an agent could not infer from the 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and each paragraph carries a distinct payload (what is shown, how to recommend, form behavior, don't duplicate output). It is somewhat long for a 3-parameter tool, with mild repetition between the recommendation paragraph and the form paragraph, but no sentence is filler.

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 fully covers what the agent will see (a comparison table, possibly a lead form) and how to behave around it. Nothing needed to call the tool correctly, or to avoid duplicating its output or mishandling lead capture, is missing.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: recommended_lot_id must reflect the buyer's expressed project and reasons must be limited to 2-4 points drawn solely from the compared lots' data, and the recommendation is highlighted in the table. It also fixes the ordering semantics of lot_ids implicitly via the 2-4 range and display order.

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 first sentence states a specific verb and resource ('Affiche un tableau comparatif de 2 à 4 lots') and enumerates the compared fields (prix, surface, extérieur, étage, livraison, points forts, statut, fraîcheur). It is clearly distinguishable from siblings like get_lot or search_lots, which retrieve rather than compare.

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?

It gives explicit instructions on when and how to populate recommended_lot_id (based on the buyer's project: résidence principale, investissement, budget) and reasons (2-4 short justifications grounded only in the compared lots). It also states the conditional case: when at least one lot has a promoter with accepts_leads, invite the buyer to use the form; otherwise, do not offer a lead connection at all.

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