Search regulations
search_regsFull-text search of US mortgage regulator text (Fannie Mae, Freddie Mac, FHA, VA, USDA, Ginnie Mae, SBA, CFPB). Inputs: query; optional family (one agency), limit (1-25), currency_kind (only sections carrying that currency signal; "any" = any signal). Common abbreviations (DTI, LTV, IRRRL, W-2, VOE, PITI, BK...) are expanded to the regulator's terms. Each result is one section: title, obligation_id, canonical_citation (the citation in the regulator's style, or null) and excerpt, a verbatim fragment near the match, not the whole rule. match is "all_terms" or "partial"; a partial result lists the query words it lacks in missing_terms. Order: rank_score, highest first = text score (title-weighted) x term coverage x title fit, with superseded, pending, incorporated or expired text x0.2, a special program's section (special_program: Home Possible, HomeReady, 203(k), HECM...) x0.5 unless the query names the program, and obligation_type "note" (source-credit notes) or "index" (a chapter heading) x0.2 unless the query asks for them. section_status "deleted" marks a deleted-section stub, ranked last. A query that is a citation returns the cited section first and sets cited; a bare handbook name ("HUD 4000.1") adds handbook, an outline of its parts. currency is null or a version/status signal whose kinds include dual-version, pending, revision-pending, superseded, superseded-in-part (a Mortgagee Letter replaced some provisions, named in headline), modified-by (a later issuance changes it, optional until its mandatory date) and expired. version "in-force" or "update-18-optional" marks the two texts of an FHA section HUD's Update 18 revises (mandatory_date for the revision); other_version is the other text's obligation_id. Empty results carry reason (empty_query, no_match, no_match_above_threshold) and may carry guidance naming shorthand in the query.
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": {
"query": "<query>"
},
"name": "search_regs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| family | No | hud = HUD/FHA Single Family (Handbook 4000.1, Mortgagee Letters); hudmf = HUD/FHA Multifamily (MAP Guide 4430.G, multifamily Mortgagee Letters); va; fnma = Fannie Mae; fhlmc = Freddie Mac; gnma = Ginnie Mae; usda; sba. | |
| currency_kind | No | Restricts results to sections carrying this currency signal; "any" = any signal. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | On an error: the server's explanation. | |
| note | No | A note on this result. | |
| cited | No | When the query is a citation: {citation, register_ids}. | |
| error | No | Present only on an error or refusal: not_found, ambiguous, unparsed, empty_terms, unknown_playbook, unknown_reference, offset_out_of_range, daily_capacity_reached. | |
| notice | No | Terms notice: research use only, not legal advice. | |
| reason | No | With empty results: empty_query, no_match or no_match_above_threshold. | |
| resets | No | On daily_capacity_reached: when capacity resets (00:00 UTC). | |
| results | No | Ranked sections, highest rank_score first (may be empty). | |
| fallback | No | On daily_capacity_reached: where the full corpus can be downloaded. | |
| guidance | No | On a refusal or empty search: the server's explanation. | |
| handbook | No | When the query names a whole handbook: its outline. |