Skip to main content
Glama

Analyze Price Trends

analyze_price_trends
Read-only

Price evolution over time, for market timing. MCP Apps hosts render an interactive line chart of prices and sales volume.

REQUIRED: one of code_postal, commune (uppercase; Paris by arrondissement: "PARIS 11"), code_departement, or latitude + longitude (mapped to a nearby DVF postal code, not a radius trend; an area filter wins). Optional: type_local, pieces_min/pieces_max (rooms, with Appartement|Maison; not code_departement alone), granularity ("month" | "quarter" default | "year"), date_debut/date_fin.

Returns median/avg prices per period, YoY changes, the total change and overall_trend on median €/m² (summary.change_basis) between the first and last whole periods (summary.change_periods): beyond ±2 %/year "increasing" | "decreasing", else "stable". Under 10 sales in the first or last period: overall_trend and change % are null, summary.low_sample true (summary.sample_size). A YoY change needs 10 sales in both periods. A window under 12 months gets overall_trend: null. Default window: 5 years. Caps, back from date_fin (period-aligned): code_departement alone → 3 years; commune or code_postal → 2 years. Read window.applied when dates are capped or defaulted; a cap starting after date_fin returns window_unavailable (not charged).

Example: {commune: "PARIS 11", type_local: "Appartement"}

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

Input Schema

NameRequiredDescriptionDefault
communeNoCity/commune name (e.g., 'PARIS')
date_finNoEnd date YYYY-MM-DD (default: data_as_of)
latitudeNoPoint latitude (requires longitude)
longitudeNoPoint longitude
date_debutNoStart date YYYY-MM-DD
pieces_maxNoMax pièces
pieces_minNoMin pièces (rooms, not bedrooms)
type_localNoProperty type
code_postalNoPostal code (e.g., '75001')
granularityNoTime granularity (default: quarter)quarter
exclude_vefaNo
code_departementNoDepartment code (e.g., '75')
exclude_bulk_salesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / date_debut / description
      Previous value: -"Start date YYYY-MM-DD (default: 5 years before data_as_of; postal/commune windows capped at 2 years)"New value: +"Start date YYYY-MM-DD"
    • changedInput schema / properties / latitude / description
      Previous value: -"Point latitude; requires longitude. Resolved to a nearby DVF postal code, not a radius trend."New value: +"Point latitude (requires longitude)"
    • changedInput schema / properties / longitude / description
      Previous value: -"Point longitude; requires latitude. Ignored when an area filter is given."New value: +"Point longitude"
    • addedInput schema / properties / pieces_max
      Added value: +{
      +  "description": "Max pièces",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / pieces_min
      Added value: +{
      +  "description": "Min pièces (rooms, not bedrooms)",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / date_debut / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / date_fin / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
  3. Changed4 schema fields changed
    • changedInput schema / properties / date_debut / description
      Previous value: -"Start date YYYY-MM-DD (default: 5 years ago)"New value: +"Start date YYYY-MM-DD (default: 5 years before data_as_of; postal/commune windows capped at 2 years)"
    • changedInput schema / properties / date_fin / description
      Previous value: -"End date YYYY-MM-DD (default: today)"New value: +"End date YYYY-MM-DD (default: data_as_of)"
    • addedInput schema / properties / latitude
      Added value: +{
      +  "description": "Point latitude; requires longitude. Resolved to a nearby DVF postal code, not a radius trend.",
      +  "maximum": 90,
      +  "minimum": -90,
      +  "type": "number"
      +}
    • addedInput schema / properties / longitude
      Added value: +{
      +  "description": "Point longitude; requires latitude. Ignored when an area filter is given.",
      +  "maximum": 180,
      +  "minimum": -180,
      +  "type": "number"
      +}
  4. Changed3 schema fields changed
    • removedInput schema / properties / latitude
      Removed value: -{
      -  "description": "Latitude for radius search",
      -  "type": "number"
      -}
    • removedInput schema / properties / longitude
      Removed value: -{
      -  "description": "Longitude for radius search",
      -  "type": "number"
      -}
    • removedInput schema / properties / radius_m
      Removed value: -{
      -  "description": "Radius in meters",
      -  "minimum": 1,
      -  "type": "number"
      -}
  5. Changed1 schema field changed
    • removedInput schema / properties / exclude_outliers
      Removed value: -{
      -  "default": true,
      -  "type": "boolean"
      -}
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes far beyond the readOnly/non-destructive annotations: it discloses the 10-credit cost, the interactive chart rendering in MCP Apps hosts, the ±2%/year threshold defining increasing/decreasing/stable, null-trend behavior under 10 sales, the 12-month minimum for overall_trend, and that a capped window returning window_unavailable is not charged. These are exactly the operational facts an agent needs before calling.

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-loads purpose, then REQUIRED / Optional / Returns / Defaults / Cost in a scannable telegraphic style, so nearly every line carries information. It is dense and slightly cryptic in places, and the granularity enum with its default is restated from the schema, but there is little genuine waste.

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 carries the full burden of explaining returns and does so: per-period median/avg prices, YoY changes, overall_trend on median €/m², summary.change_basis, summary.change_periods, and the low-sample nulls with summary.sample_size. Window defaults, caps, and the window.applied read-back are all covered for a 13-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 85%, yet the description still adds real meaning: uppercase commune format with the 'PARIS 11' arrondissement convention, latitude/longitude being mapped to a nearby DVF postal code (not a radius), the pieces + type_local + non-department constraint, and granularity's default. These interaction rules are absent from the schema and materially change how parameters are set.

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?

States a specific resource and output: 'Price evolution over time, for market timing', plus the rendered line chart of prices and sales volume. It is clearly a time-series trend tool, distinguishable in intent from static distribution or market-overview siblings, though it never names an alternative explicitly.

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?

Gives substantial conditional usage rules — one of four location inputs is required, latitude/longitude is mapped to a nearby postal code rather than a radius, and pieces filters require type_local and cannot be used with code_departement alone. However, it never says when to prefer this over siblings such as get_zonal_price_distribution or analyze_market_statistics, so routing guidance is implied rather than stated.

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