Skip to main content
Glama

Detect Property Flips

detect_flips
Read-only

Detects short-hold resales ("flips") in one French commune.

REQUIRED:

  • code_insee: INSEE commune code ("33063", "2A004", "97209"); alias code_commune.

OPTIONAL:

  • type_local: "Maison" (default). "Appartement" returns available: false and is not charged: DVF parcel/address matching can't tell flats in the same building apart, so apartment flips aren't published until matching on the copropriete lot is available.

A flip is a clean DVF sale followed by a resale of the same house 18 to 24 months later. Matching uses cadastral section + plan first, then a conservative normalized-address + surface fallback.

Returns aggregate-only indicators: flip rate, median gross margin, median margin percentage, median holding period, and matching-method counts. It never returns transaction addresses or owners. The medians are over flips_detectes flips (sample_size); under 10, low_sample is true and a notice says so. The 24-month window is anchored to the latest DVF mutation available in the requested commune.

Cost: 10 credits per call

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

Input Schema

NameRequiredDescriptionDefault
code_inseeNoINSEE commune code: '33063', '2A004', '97209'
type_localNoProperty type. Houses are analyzed; "Appartement" returns available: false (apartment flips can't be matched reliably yet). Default: houses.
code_communeNoLegacy alias for code_insee

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / code_commune / description
      Previous value: -"Legacy 5-digit INSEE-code alias for code_insee (not DVF's raw commune fragment)"New value: +"Legacy alias for code_insee"
    • changedInput schema / properties / code_commune / pattern
      Previous value: -"^\\d{5}$"New value: +"^(\\d{5}|2[AB]\\d{3}|97[1-6]0\\d{2})$"
    • changedInput schema / properties / code_insee / description
      Previous value: -"5-digit INSEE commune code (e.g., '33063' for Bordeaux)"New value: +"INSEE commune code: '33063', '2A004', '97209'"
    • changedInput schema / properties / code_insee / pattern
      Previous value: -"^\\d{5}$"New value: +"^(\\d{5}|2[AB]\\d{3}|97[1-6]0\\d{2})$"
  2. Changed1 schema field changed
    • changedInput schema / properties / type_local / description
      Previous value: -"Property type filter (default: both houses and apartments)"New value: +"Property type. Houses are analyzed; \"Appartement\" returns available: false (apartment flips can't be matched reliably yet). Default: houses."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/not-destructive annotations, it discloses pricing (10 credits per call, no charge for the unsupported apartment path), privacy behavior (aggregate-only, never returns addresses or owners), matching methodology (cadastral section + plan first, conservative address + surface fallback), and a sampling caveat (low_sample under 10 flips). The 24-month window's anchoring to the latest DVF mutation is stated, which is unusually thorough.

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?

REQUIRED/OPTIONAL headers make it scannable and the key constraint is front-loaded. A few sentences (the copropriete-lot rationale for apartment unavailability) are longer than strictly necessary, but they justify user-visible behavior rather than padding.

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?

There is no output schema, and the description compensates fully by enumerating the returned indicators (flip rate, median gross margin, margin percentage, holding period, matching-method counts) and the low_sample notice. For a read-only, three-parameter analytics tool, nothing an agent needs to call it correctly 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 already 100%, so the baseline is 3; the description goes further by restating the alias relationship and explaining the operational consequence of type_local='Appartement' (unavailable and uncharged) rather than just its enum value. It doesn't add format detail for the INSEE pattern, but the schema already handles that.

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 and resource: 'Detects short-hold resales ("flips") in one French commune.' It scopes the geographic unit (a single commune via INSEE code) and defines what a flip means (clean DVF sale followed by resale 18-24 months later), which is enough to separate it from sibling analysis tools like search_property_transactions or analyze_price_trends.

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?

It clearly states the input requirement (code_insee, with code_commune as an alias) and an explicit unsupported case: type_local 'Appartement' returns available: false and is not charged. What's missing is any explicit routing to or away from sibling tools (e.g., when to prefer raw transaction search over flip aggregation), so the agent must infer the boundary.

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