Skip to main content
Glama
redfin-mcp
by chrischall

Exhaustively sweep a Redfin map area

redfin_sweep_area
Idempotent

Enumerate every for-sale Redfin listing in a bounding box without silent 350-home truncation; recursively quarter capped map tiles, dedupe and filter locally, or sweep ZIPs instead.

Instructions

Enumerate EVERY for-sale Redfin listing inside a bounding box without silent truncation. Redfin's gis API returns at most 350 homes per call and ignores server-side filters, so this tool searches drawn-map polygons, recursively quarters any tile that hits the cap, dedupes by property_id and re-applies the caller's filters locally. Homes outside the box and tiles where Redfin drifted to another region are left out. Alternatively pass zips (ZIP mode) to sweep a list of ZIP regions instead of map tiles, when Redfin ignores drawn-map polygons. Returns a completeness summary (requests, tiles or ZIPs, unique listings, tiles/ZIPs still at the cap, drift warnings) plus the listings inline by default; pass the optional output_path to write them to a new JSON file instead, for large areas (locally: inside the output directory REDFIN_OUTPUT_DIR, default ~/Downloads/redfin-mcp; on a hosted server: a zip containing that file, returned as a signed download link in output_url). Sequential requests with a delay. Read-only against Redfin; the only write is the optional output file.

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

Input Schema

NameRequiredDescriptionDefault
zipsNoZIP mode: sweep these ZIP regions instead of map tiles (fallback when Redfin ignores drawn-map polygons). Each ZIP is checked by the homes' own ZIPs; a ZIP that returns the 350-home cap is reported as capped.
boundsNoBox to sweep (lat/lng). Required unless `zips` is given.
beds_minNo
delay_msNoPause between requests (default 1200).
locationNoOptional city (e.g. "San Jose, CA") whose region lets the polygon probe try region-pinned request shapes.
baths_minNo
max_depthNoMax quarterings per tile (default 6).
price_maxNo
price_minNo
home_typesNo
output_pathNoOptional NEW .json file to write the full results (and per-tile counts) to: a file name (e.g. "san-jose.json") written into the output directory (REDFIN_OUTPUT_DIR, default ~/Downloads/redfin-mcp), or an absolute path inside it. Paths outside that directory are refused, and an existing file is never overwritten. On a hosted server only the file name is used: the file is zipped into the blob store and returned as a signed link (`output_url`, expiring at `output_expires_at`). Omit to get the results inline; use a file for large areas so the listings stay out of the conversation.
max_requestsNoHard request budget (default 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.1
    • changedInput schema / properties / output_path / description
      Previous value: -"Optional NEW .json file to write the full results (and per-tile counts) to: a file name (e.g. \"san-jose.json\") written into the output directory (REDFIN_OUTPUT_DIR, default ~/Downloads/redfin-mcp), or an absolute path inside it. Paths outside that directory are refused, and an existing file is never overwritten. Omit to get the results inline; use a file for large areas so the listings stay out of the conversation."New value: +"Optional NEW .json file to write the full results (and per-tile counts) to: a file name (e.g. \"san-jose.json\") written into the output directory (REDFIN_OUTPUT_DIR, default ~/Downloads/redfin-mcp), or an absolute path inside it. Paths outside that directory are refused, and an existing file is never overwritten. On a hosted server only the file name is used: the file is zipped into the blob store and returned as a signed link (`output_url`, expiring at `output_expires_at`). Omit to get the results inline; use a file for large areas so the listings stay out of the conversation."
  2. Changed1 schema field changedv1.2.5
    • changedInput schema / properties / output_path / description
      Previous value: -"Optional absolute path of a NEW JSON file to write the full results (and per-tile counts) to; a relative path or an existing file is refused rather than overwritten. Omit to get the results inline; use a file for large areas so the listings stay out of the conversation."New value: +"Optional NEW .json file to write the full results (and per-tile counts) to: a file name (e.g. \"san-jose.json\") written into the output directory (REDFIN_OUTPUT_DIR, default ~/Downloads/redfin-mcp), or an absolute path inside it. Paths outside that directory are refused, and an existing file is never overwritten. Omit to get the results inline; use a file for large areas so the listings stay out of the conversation."
  3. Addedv1.2.1

TDQS

A4.6/5.0
Behavior5/5

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

The description explains the 350-home cap and server-side filter ignoring that motivate the tool, the recursive quartering, dedupe by property_id, exclusion of out-of-box and drifted tiles, capped-tile reporting, sequential requests with delay, and the path-traversal/never-overwrite constraints on `output_path`. It also resolves the readOnlyHint=false annotation by explaining that the only write is the optional output file — consistent, not contradictory, and genuinely additive.

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 core contract, then mode selection, then return shape — a sensible order with no filler. The prose is dense and clause-heavy, and the long parenthetical about output directories could be split for readability.

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?

For a 12-parameter, nested-schema tool with no output schema, it still describes the return value (completeness summary fields: requests, tiles/ZIPs, unique listings, capped counts, drift warnings, plus inline listings or `output_url`). Combined with the mode guidance and safety caveats, an agent has everything needed to call it correctly.

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 58%, and the description compensates by clarifying that caller filters (beds/baths/price/home_types) are re-applied locally after fetching because Redfin ignores server-side filters, plus what `zips` mode does differently and what `output_path` writes. The remaining gap is that min/max filter params themselves are never characterized in prose.

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?

"Enumerate EVERY for-sale Redfin listing inside a bounding box without silent truncation" gives a specific verb, resource, and scope, and the truncation framing distinguishes it from the sibling redfin_search_properties at a glance. The exhaustive-sweep intent (recursive quartering, dedupe, local filter re-application) is unambiguous.

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 states the two operating modes and when to pick each: bounds by default, `zips` "when Redfin ignores drawn-map polygons", and `output_path` "for large areas so the listings stay out of the conversation." What is missing is an explicit contrast with redfin_search_properties (e.g. use that for a quick filtered query, this for guaranteed-complete coverage).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.