Agency servicer analytics
get_servicer_analyticsAgency (Fannie Mae / Freddie Mac) servicer analytics in one of three modes.
mode='scorecard': largest servicers ranked by disclosed origination UPB for the current and previous year with average FICO and LTV. Returns data.servicers (top_n rows of {rank, name, volume, previous_volume, avg_fico, avg_ltv}), data.current_year, data.previous_year.
mode='performance': monthly CPR and 90+ day delinquency per top servicer for one origination vintage against the whole-book benchmark. Returns data.servicers {name: {cpr: [{date, value}], dq90: [...]}} downsampled to max_points, data.book {cpr, dq90}, data.vintage, data.latest_date.
mode='transfers': where one originator's Fannie Mae loans are serviced today and how servicing moved from the seller. Requires
lender(canonical key from search_lenders). Returns data.seller_name, data.summary {loan_count, origination_upb, loans_with_transfer, pct_loans_with_transfer, total_transfer_events, ...}, data.latest_active_servicers {servicer, loans, upb, upb_share_pct}, data.top_routes and data.top_named_routes {from_servicer, to_servicer, events, event_share_pct}, data.first_to_latest {first_servicer, latest_servicer, loans, original_upb} (top_n rows each).
Use for: "largest servicers", "which servicer prepays fastest or has the worst DQ for the 2021 vintage", "who services Rocket's loans now". Do not use for: HMDA origination volume (get_lender_profile) or book-wide delinquency (get_loan_performance topic='delinquency').
Coverage is disclosed agency loans matched by seller/servicer name, not any servicer's full portfolio. UPB and volume are USD; CPR and DQ90 are percent.
Behavior: read-only, no auth or API key, no PII, idempotent and safe to retry. The public endpoint https://mtgmon.com/mcp allows about 60 requests/min and 250 tool calls/day per client IP. Result shape is {data, meta}; meta carries available, as_of, source_scope, weighting, units, cache_status, caveats, and truncated. If meta.available is false the data is unavailable or the cache is still warming (retry after a few seconds); never report it as zero.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gse | No | 'all' = Fannie Mae + Freddie Mac combined (default), 'fnma' = Fannie Mae only, 'fhlmc' = Freddie Mac only. Used by scorecard and performance; transfers is Fannie Mae only. | all |
| mode | Yes | 'scorecard' (servicers ranked by disclosed volume), 'performance' (per-servicer CPR and DQ90 series for one vintage), or 'transfers' (one lender's servicing-transfer routes; requires `lender`). | |
| top_n | No | Maximum servicers (scorecard, performance) or rows per route list (transfers), 1-25 (default 10). | |
| lender | No | Canonical HMDA lender key: the exact `name` value from a search_lenders result, e.g. 'Rocket/Quicken' or 'United Wholesale Mortgage'. Legal names such as 'Rocket Mortgage, LLC' do not match and return meta.available=false. Required for mode='transfers'; ignored by other modes. | |
| vintage | No | Origination year for mode='performance' (default 2021). Ignored by other modes. | |
| max_points | No | Maximum points per CPR/DQ90 series for mode='performance', 1-120 (default 60). Ignored by other modes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | Yes |