Skip to main content
Glama

Relendi — Commercial Real Estate Loan Tools

Analyze a Cash-Out Refinance

analyze_cash_out_refinance
Read-only

Full cash-out refinance waterfall: the largest new loan the property supports across LTV, DSCR and debt-yield, then down through payoff, prepayment penalty and closing costs to net cash in hand. Includes NY CEMA savings when applicable. prepaymentPenaltyPercent is REQUIRED — omitting a penalty overstates the borrower's proceeds by its entire amount, so state 0 explicitly when there is none.

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": {
      "noi": "<noi>",
      "propertyValue": "<propertyValue>",
      "existingLoanBalance": "<existingLoanBalance>",
      "state": "<state>",
      "rate": "<rate>",
      "amortizationYears": "<amortizationYears>",
      "prepaymentPenaltyPercent": "<prepaymentPenaltyPercent>"
    },
    "name": "analyze_cash_out_refinance"
  }
}

Input Schema

NameRequiredDescriptionDefault
noiYes
rateYesNew loan rate, percent (6.85 = 6.85%)
stateYes
maxLtvNo
minDscrNo
cemaEnabledNo
minDebtYieldNo
propertyValueYes
amortizationYearsYes
existingLoanBalanceYes
prepaymentPenaltyPercentYesPercent of payoff balance. Required — state 0 if none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuine behavioral context beyond that: the order of the waterfall, that NY CEMA savings are folded in conditionally, and a concrete failure mode (omitting the penalty overstates proceeds by its full amount). It does not describe the shape of the returned figures, but that is a minor gap given the read-only profile.

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?

The computation order is front-loaded in the first sentence, conditional behavior follows, and the required-parameter warning closes it out — a logical progression with no filler. The final sentence is long, but every clause (required, consequence of omission, state 0) is load-bearing.

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?

For a read-only calculator with no output schema, the description adequately conveys what the result represents (net cash in hand) and the required-input trap. However, with 11 parameters and 7 required, the absence of units, ranges or defaults for most inputs leaves real gaps an agent must guess at when constructing a call.

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

Parameters2/5

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

Schema description coverage is only 18% across 11 parameters, so the description carries most of the burden — yet it explains just one field, prepaymentPenaltyPercent, and does so well (percent of payoff balance, state 0 explicitly). The other nine (noi, propertyValue, existingLoanBalance, state, amortizationYears, maxLtv, minDscr, minDebtYield, cemaEnabled) get no meaning from either source, leaving an agent to infer units and defaults. The waterfall narrative only loosely implies what noi and propertyValue feed.

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 and resource ('Full cash-out refinance waterfall') and enumerates the exact computation chain: max loan across LTV, DSCR and debt-yield, then payoff, prepayment penalty and closing costs down to net cash in hand. This is far more than a restatement of the name and lets an agent distinguish it from narrower sizing or payment tools. It stops short of naming a sibling to route against.

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 waterfall framing — you call this when you need the complete refi outcome rather than a single metric — but there is no explicit when-to-use vs. when-not, and no reference to sibling tools like size_loan or compare_loan_offers. The strongest guidance present is a parameter-level rule (always supply prepaymentPenaltyPercent), not tool-selection guidance.

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