Skip to main content
Glama

datasets_housing_markets_search

Read-only

Search monthly U.S. housing-market statistic records from Redfin, joined with Census income for affordability. Costs 1 credit per record returned (minimum 2), so keep page_size to what you need. Filter by region_type (national, metro, county, city, or ZIP), property type, price, inventory, or affordability; use datasets_housing_markets_facets for filter values or datasets_housing_markets_item for one region.

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

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over region name and city, max 256 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, price_desc, price_asc, list_price_desc, list_price_asc, price_to_income_desc, price_to_income_asc, salary_to_buy_desc, salary_to_buy_asc, dom_asc, dom_desc, inventory_desc, homes_sold_desc, period_desc. Defaults to relevance with q, price_to_income_desc with latest=true, otherwise period_desc.
latestNoOptional filter for the most recent period per region and property type; true keeps only each series' latest row.
periodNoOptional exact period start date filter in YYYY-MM-DD form, e.g. 2026-05-01.
zip_codeNoOptional exact zip code filter (zip-level rows only), e.g. 60616.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
state_codeNoOptional exact two-letter state code filter, e.g. CA.
region_typeNoOptional region level filter. Allowed values: national, metro, county, city, zip.
max_inventoryNoOptional maximum active inventory, 0 or greater.
min_inventoryNoOptional minimum active inventory (listings for sale), 0 or greater.
property_typeNoOptional property type filter. Allowed values: All Residential, Single Family Residential, Condo/Co-op, Townhouse, Multi-Family (2-4 Unit), Single Units Only.
max_median_domNoOptional maximum median days on market, 0 or greater.
min_homes_soldNoOptional minimum homes sold in the period, 0 or greater.
min_median_domNoOptional minimum median days on market, 0 or greater.
max_salary_to_buyNoOptional maximum salary needed to buy in USD per year, 0 or greater.
min_salary_to_buyNoOptional minimum salary needed to buy the median home in USD per year, 0 or greater.
parent_metro_codeNoOptional exact parent metro (CBSA) code filter, e.g. 16980 for Chicago.
max_price_to_incomeNoOptional maximum price-to-income ratio, 0 or greater.
min_price_to_incomeNoOptional minimum price-to-income ratio (median sale price over ACS median household income), 0 or greater.
max_median_list_priceNoOptional maximum median list price in USD, 0 or greater.
max_median_sale_priceNoOptional maximum median sale price in USD, 0 or greater.
min_median_list_priceNoOptional minimum median list price in USD, 0 or greater.
min_median_sale_priceNoOptional minimum median sale price in USD, 0 or greater.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-idempotent, so the safety profile is covered; the description adds real context the annotations cannot: billing at 1 credit per record with a 2-credit minimum, and the practical consequence of keeping page_size small. It stops short of describing result shape or rate limits, but the cost disclosure is a substantive behavioral disclosure.

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?

Three sentences ordered purpose → cost → filtering/alternatives, with the highest-stakes fact (credit cost) front-loaded near the top. The third sentence is a dense semicolon-joined clause, but every element (alternative routing) earns its place.

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?

With 24 optional parameters, an output schema, and full schema coverage, the description does not need to restate parameter or return details; it covers the pieces an agent cannot infer — dataset provenance, the affordability join, credit cost, and sibling routing. It could note that all filters are optional and how scoring/sort defaults behave, but nothing critical 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 goes further by grouping the 24 filter parameters into conceptual families (region level, property type, price, inventory, affordability) and spelling out the region_type levels, which helps an agent decide which of the many optional filters to use. It does not explain sort semantics or the latest flag, keeping it below 5.

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 (search), the exact resource (monthly U.S. housing-market statistic records from Redfin), and the enrichment (Census income joined for affordability), which no sibling name would convey. It also immediately distinguishes itself from datasets_housing_markets_facets and datasets_housing_markets_item.

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?

Explicitly routes the agent: use datasets_housing_markets_facets to resolve filter values and datasets_housing_markets_item to fetch a single region, leaving this tool for multi-record searches. That is a clear when-to-use/how-alternatives split rather than implied guidance.

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.