Skip to main content
Glama

Analyze Purchasing Power

analyze_purchasing_power
Read-only

Price-to-income ratio: years of median income to buy the median property here. Median sale price (same sales as analyze_market_statistics: no VEFA, 1% €/m² trim) over the INSEE Filosofi commune median income. MCP Apps hosts render a visual card of the years of income, median price and income.

REQUIRED, one of: code_postal ("75011"), commune ("LYON", "PARIS 11", uppercase) or code_commune (5-digit INSEE, "75111"). NOT supported: code_departement alone or latitude + longitude (no single income figure): use analyze_market_statistics or find_property_comparables instead.

Returns ratio_prix_revenu (years of income), prix_bien_median, revenu_median_annuel_uc, annee_reference, vintage_gap_years (sale year minus income year: an older income inflates the ratio). ratio_prix_revenu is null when INSEE suppresses the commune's income (small population). Default window: latest 12 months. Caps: commune without type_local → 1 year, else 2 years. Read window.applied when dates are capped or defaulted; a cap starting after date_fin returns window_unavailable (not charged).

Cost: 5 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_purchasing_power"
  }
}

Input Schema

NameRequiredDescriptionDefault
communeNoCommune name in uppercase (e.g., 'LYON', 'PARIS 15')
date_finNoEnd date (YYYY-MM-DD)
date_debutNoStart date (YYYY-MM-DD) — subject to an auto-applied cap on large scopes
type_localNoProperty type filter (default: all)
code_postalNoPostal code (e.g., '75011')
code_communeNoINSEE commune code, bypasses commune resolution ('75111', '97209')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / code_commune / description
      Previous value: -"5-digit INSEE commune code — bypasses commune resolution (e.g., '75111')"New value: +"INSEE commune code, bypasses commune resolution ('75111', '97209')"
    • removedInput schema / properties / code_commune / maxLength
      Removed value: -5
    • removedInput schema / properties / code_commune / minLength
      Removed value: -5
    • addedInput schema / properties / code_commune / pattern
      Added value: +"^(\\d{5}|2[AB]\\d{3}|97[1-6]0\\d{2})$"
  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. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered; the description goes further with cost (5 credits per call), default window (latest 12 months), scope-dependent caps, window.applied inspection, the 'window_unavailable (not charged)' failure mode, and null ratio under INSEE suppression. These are real operational behaviors an agent cannot infer from the schema. The only gap is that it does not say whether retries or partial-date caps consume credits beyond the not-charged case.

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-loaded with the metric definition, then input contract, then return fields, then defaults/caps, then cost — a sensible order for an agent reading top-down. There is some redundancy between the opening methodology sentence and the return-field list (median price and income are described twice), which keeps it short of a 5.

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?

Despite no output schema, the definition enumerates the return fields, explains when ratio_prix_revenu is null, and warns that vintage_gap_years can inflate the ratio — enough for an agent to interpret results correctly. Combined with documented caps, default window, cap-date inspection, and the window_unavailable outcome, nothing essential for a correct call 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; the description still adds meaning the schema cannot express — namely that exactly one of the three geography parameters must be supplied (the schema declares zero required properties) and that code_commune 'bypasses commune resolution'. It also ties type_local to the cap behavior ('commune without type_local → 1 year, else 2 years'), which is genuine parameter-level semantics.

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 opening sentence names the exact metric ('Price-to-income ratio: years of median income to buy the median property here') and pins down the computation ('median sale price ... over the INSEE Filosofi commune median income'). The methodology parenthetical ('no VEFA, 1% €/m² trim') makes it unambiguously distinguishable from the sibling analyze_market_statistics, which it references.

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 input contract ('REQUIRED, one of: code_postal, commune or code_commune') and an explicit exclusion with redirection ('NOT supported: code_departement alone or latitude + longitude ... use analyze_market_statistics or find_property_comparables instead'). It also qualifies the geography constraint with the reason ('no single income figure'), so the agent knows why the alternative is needed rather than just that it is.

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