Skip to main content
Glama

HomeCalc — Canadian Mortgage & Tax Calculators

Canadian Mortgage Stress Test (OSFI B-20)

mortgage_stress_test
Read-only

Check a purchase, renewal or refinance against the OSFI stress test: qualifying rate (higher of contract + 2% or 5.25%), GDS/TDS at 39/44, pass/close/fail, max home price for a purchase, and how far off a fail is. Straight-switch renewals are exempt unless the amount or amortization increases.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "homePrice": 400000,
      "downPayment": 40000,
      "annualIncome": 100000
    },
    "name": "mortgage_stress_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioNoBuying, renewing, or refinancingpurchase
homePriceYesPurchase price, or current home value for renewal/refinance, in CAD
downPaymentNoPurchase only: down payment in CAD
annualIncomeYesMain applicant gross annual income in CAD
monthlyHeatingNoMonthly heating cost in CAD
renewalRatePctNoRenewal only: rate you are renewing into, percent
contractRatePctNoContract interest rate as a percent
additionalBorrowNoRefinance only: extra cash to borrow in CAD
monthlyCondoFeesNoMonthly condo fees in CAD (50% counts)
amortizationYearsNoAmortization in years (5–30)
coApplicantIncomeNoCo-applicant gross annual income in CAD (0 if none)
renewalIncreasingNoRenewal only: increasing the amount or amortization (then the stress test applies)
monthlyPropertyTaxNoMonthly property tax in CAD
outstandingBalanceNoRenewal/refinance only: balance owing in CAD
monthlyDebtPaymentsNoOther monthly debt payments in CAD
renewalWithNewLenderNoRenewal only: switching to a new lender

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / renewalRatePct / default
      Previous value: -5.23New value: +5.25
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds substantive domain behavior beyond that: the exact qualifying-rate rule (higher of contract + 2% or 5.25%), the 39/44 GDS/TDS thresholds, the pass/close/fail outcome classes, and the exemption logic for straight-switch renewals. It does not describe precision, assumptions, or edge-case handling (e.g., how heating/condo fees are normalized), leaving a small gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads what is computed and ends with the exemption rule, plus no filler, repetition, or hedging. Every clause (rate formula, ratios, verdict, max price, shortfall, exemption) carries distinct information.

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?

Despite 16 parameters and no output schema, the description summarizes the return surface (pass/close/fail, max home price, distance from passing) and the governing rules, which is what an agent needs to decide to call it and interpret results. The scenario-specific exemption is also covered, leaving nothing material an agent would have to guess.

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 and the schema already documents each of the 16 fields. The description still adds interpretive value by stating how the rate inputs are used ('higher of contract + 2% or 5.25%') and by tying the renewal exemption to amount/amortization increases, which explains the intent behind renewalRatePct, contractRatePct, and renewalIncreasing. It does not clarify conditional requirements among the scenario-gated parameters, so it is a 4.

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 opens with a specific verb and resource ('Check a purchase, renewal or refinance against the OSFI stress test') and enumerates exactly what is computed: qualifying rate formula, GDS/TDS at 39/44, pass/close/fail verdict, max home price, and shortfall on a fail. This clearly separates it from generic affordability tools by naming the regulatory regime (OSFI B-20). It stops short of naming a specific sibling to contrast with, so it lands at a strong 4 rather than 5.

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?

The description states the applicable scenarios (purchase, renewal, refinance) and an explicit exclusion rule: 'Straight-switch renewals are exempt unless the amount or amortization increases.' That is real when-not-to-apply guidance tied to the renewalIncreasing flag. It does not point to an alternative tool for cases outside scope, so it is not a full 5.

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