Skip to main content
Glama

datasets_housing_markets_facets

Read-only

Returns terms aggregation counts over the US housing markets dataset, honoring the same filters as search. Use alongside the related search tool to inspect filter counts under the same query filters.

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": {
      "facet": "<facet>"
    },
    "name": "datasets_housing_markets_facets"
  }
}

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.
facetYesRequired facet to aggregate. Allowed values: region_type, state_code, property_type, parent_metro, parent_metro_code, income_vintage, is_latest, period_begin.
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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds the useful claim that filtering mirrors the search tool, which helps an agent reason about the 25 filter parameters. It does not address the non-idempotent hint or say whether counts are computed before or after pagination, which matters for interpreting the numbers.

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?

Two tight sentences with the core behavior front-loaded and the practical usage hint second. No filler; the only softness is the unspecific phrase 'the related search tool'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 25 parameters, an output schema, and full annotations, the description is adequate for identifying the tool but thin on the one thing facets commonly get wrong: whether the counts reflect all matching rows or only the paged slice. That ambiguity is not resolved anywhere in the structured fields.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including the required 'facet' enum-style list is already documented. The description adds only the general hint that filters behave like the search tool's filters, with no facet-specific meaning or interaction details beyond the schema.

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 verb and resource: terms aggregation counts over the US housing markets dataset. It also implicitly separates itself from the row-returning sibling by saying counts are returned 'alongside the related search tool', so an agent can tell this is the count/facet companion rather than the search itself.

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?

Clear usage context: run it with the same query filters as search to inspect how those filters distribute across a facet. There are no explicit when-not-to-use statements or named alternatives beyond 'the related search tool', which is slightly vague given the actual siblings including datasets_housing_markets_item.

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.