Skip to main content
Glama

Sizing Sheet: FHA multifamily program chooser and loan sizer

Size an FHA 223(f) or 221(d)(4) loan

size_loan
Read-onlyIdempotent

Estimates the maximum FHA 223(f) or 221(d)(4) loan the way HUD Form 92264-A does, with the fhamultifamily.loan sizer: statutory limit (2026 per-unit limits x high-cost %), loan to value or cost, debt service coverage with 0.25% MIP, the 223(f) cash-out or acquisition test, large-loan ratios at $130M+. Returns each test, the one that controls, payment, MIP, fees, DSCR and LTV.

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": {
      "program": "<program>",
      "state": "<state>",
      "units": "<units>",
      "value": "<value>",
      "noi": "<noi>"
    },
    "name": "size_loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
noiYesUnderwritten annual net operating income in dollars.
rateNoNote rate in percent. Default 5.54, the median note rate on apartment loans HUD endorsed in the year to September 30, 2026 (not a quote).
tierNoRents: market (87% / 1.15), affordable (tax credit or Section 8 rents at least 10% below market), assisted (90%+ of units with rental assistance), middle (221(d)(4) only; on 223(f) it sizes as market). Default market.market
priceNo223f_purchase only: price plus repairs and closing costs, for the acquisition cost test.
stateYesTwo-letter state or territory code, e.g. TX. AK, HI, GU and VI use the 405% high-cost percentage; all others 270%.
unitsYesUnit count by bedroom, e.g. {"br1": 48, "br2": 60, "br3": 12}. Keys: studio, br1, br2, br3, br4 (four or more bedrooms). Omitted keys are 0.
valueYes223(f): property (or appraised) value in dollars. 221(d)(4): total replacement cost in dollars.
payoffNo223f_refinance only: existing debt plus closing costs, for the cash-out test.
programYes223f_refinance, 223f_purchase, 221d4_new_construction or 221d4_substantial_rehab.
elevatorNoElevator building (higher per-unit limits). Default false.
build_monthsNo221(d)(4) only: construction period in months, for the upfront MIP. Default 20 (the sizer page default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds substantial context beyond them: the methodology (statutory limit, LTV/LTC, DSCR with 0.25% MIP), program-specific tests, the $130M large-loan threshold, and an explicit enumeration of what is returned (each test, the controlling constraint, payment, MIP, fees, DSCR and LTV). That is exactly the return-value disclosure an agent needs given there is no output schema.

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?

A single dense sentence, but front-loaded with what the tool does and the method, then the outputs at the end. Every clause carries information (tests, thresholds, returned fields); the only cost is a run-on structure that takes a careful read.

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?

For an 11-parameter, nested-object calculator with no output schema, the description is unusually complete: it explains the sizing method, the program-specific tests, the threshold behavior, and the return contents. Remaining gaps (e.g. precision/rounding of results or failure modes for infeasible deals) are minor.

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 description coverage is 100%, so the baseline is 3. The description still adds meaning by tying parameters to tests — payoff to the cash-out test, price to the acquisition cost test, state to the high-cost percentage, rate/MIP to debt service coverage — which tells the agent why these inputs matter rather than just what they are.

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?

The description names a specific verb (estimates the maximum FHA loan) and a precise resource scope (223(f) / 221(d)(4) sized per HUD Form 92264-A), so the agent knows exactly what computation it performs. It never mentions the siblings choose_program or get_limits_and_costs, so the differentiation is implicit rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the program-specific test names ('the 223(f) cash-out or acquisition test', 'large-loan ratios at $130M+'), which hint at when each branch applies, and the schema supplies per-parameter conditions. However, there is no explicit when-to-use-this-vs-alternatives guidance, e.g. whether to call get_limits_and_costs first or choose_program to pick a program before sizing.

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.

Resources