Mortgage Tools by Jenny is an MCP server published by mortgage.jenny, hosted at mcp.jenny.mortgage. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 6 tools, including diagnose_mortgage_comparison, compare_renewal_offers, plan_mortgage_prepayments, compare_break_or_stay, compare_debt_consolidation.
Canadian mortgage calculators: renewal offers, extra payments, break-or-stay, debt consolidation.
1 connections through 4 shared values. Tap any node.
Inferred from the host name and headers: what a server runs on, not who runs it.
Use this first when a user wants a Canadian mortgage renewal, extra-payment, break-or-stay or debt-consolidation comparison but has not yet given the key figures. From the facts already supplied, returns the missing ones in priority order and up to three questions to ask (balance, rate, remaining amortization, term, switching costs, lender-quoted penalty). Flags a request to borrow additional cash (cash-out refinance) as unsupported. Do not use when the figures are already supplied: call the matching calculator. Does not calculate, rank, check qualification or search rates.
| Parameter | Type | Description |
|---|---|---|
| task * | string | Which comparison the user wants. |
| facts | object | Facts the user has already given; any may be left out. Other keys are ignored, and the result says so. |
None yet. Changes appear after a server's second daily check.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
{
"name": "diagnose_mortgage_comparison",
"title": "Check missing Canadian mortgage facts",
"description": "Use this first when a user wants a Canadian mortgage renewal, extra-payment, break-or-stay or debt-consolidation comparison but has not yet given the key figures. From the facts already supplied, returns the missing ones in priority order and up to three questions to ask (balance, rate, remaining amortization, term, switching costs, lender-quoted penalty). Flags a request to borrow additional cash (cash-out refinance) as unsupported. Do not use when the figures are already supplied: call the matching calculator. Does not calculate, rank, check qualification or search rates.",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"task"
],
"properties": {
"task": {
"enum": [
"renewal",
"prepayments",
"break_or_stay",
"debt_consolidation"
],
"type": "string",
"description": "Which comparison the user wants."
},
"facts": {
"type": "object",
"properties": {
"penalty": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string",
"description": "The figure as digits, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The figure as a number, for example 300."
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string",
"description": "\"user\" when the user stated it (the default)."
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string",
"description": "The plain figure, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The plain figure, for example 412000 or 300."
}
],
"description": "A figure: {state:\"known\",value:\"412000\",origin:\"user\"}, or the plain value (\"412000\", 412000, \"4.89\"), or {state:\"unknown\"}. A leading $, a trailing % and thousands commas (\"412,000\") are removed. Unknown is never treated as zero."
},
"termMonths": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string",
"description": "The figure as digits, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The figure as a number, for example 300."
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string",
"description": "\"user\" when the user stated it (the default)."
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string",
"description": "The plain figure, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The plain figure, for example 412000 or 300."
}
],
"description": "Term length in months, never years: a 5-year term is 60. A figure: {state:\"known\",value:\"412000\",origin:\"user\"}, or the plain value (\"412000\", 412000, \"4.89\"), or {state:\"unknown\"}. A leading $, a trailing % and thousands commas (\"412,000\") are removed. Unknown is never treated as zero."
},
"switchingCosts": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string",
"description": "The figure as digits, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The figure as a number, for example 300."
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string",
"description": "\"user\" when the user stated it (the default)."
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string",
"description": "The plain figure, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The plain figure, for example 412000 or 300."
}
],
"description": "A figure: {state:\"known\",value:\"412000\",origin:\"user\"}, or the plain value (\"412000\", 412000, \"4.89\"), or {state:\"unknown\"}. A leading $, a trailing % and thousands commas (\"412,000\") are removed. Unknown is never treated as zero."
},
"startingBalance": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string",
"description": "The figure as digits, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The figure as a number, for example 300."
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string",
"description": "\"user\" when the user stated it (the default)."
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string",
"description": "The plain figure, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The plain figure, for example 412000 or 300."
}
],
"description": "Mortgage balance now, in CAD. A figure: {state:\"known\",value:\"412000\",origin:\"user\"}, or the plain value (\"412000\", 412000, \"4.89\"), or {state:\"unknown\"}. A leading $, a trailing % and thousands commas (\"412,000\") are removed. Unknown is never treated as zero."
},
"cashOutRequested": {
"type": "boolean",
"description": "True when the user wants to borrow additional cash. This is not modeled and returns unsupported."
},
"annualRatePercent": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string",
"description": "The figure as digits, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The figure as a number, for example 300."
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string",
"description": "\"user\" when the user stated it (the default)."
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string",
"description": "The plain figure, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The plain figure, for example 412000 or 300."
}
],
"description": "Annual interest rate as a percent: 4.89% is \"4.89\", never \"0.0489\". A figure: {state:\"known\",value:\"412000\",origin:\"user\"}, or the plain value (\"412000\", 412000, \"4.89\"), or {state:\"unknown\"}. A leading $, a trailing % and thousands commas (\"412,000\") are removed. Unknown is never treated as zero."
},
"amortizationMonths": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string",
"description": "The figure as digits, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The figure as a number, for example 300."
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string",
"description": "\"user\" when the user stated it (the default)."
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string",
"description": "The plain figure, for example \"412000\" or \"4.89\"."
},
{
"type": "number",
"description": "The plain figure, for example 412000 or 300."
}
],
"description": "Remaining amortization in months, never years: 25 years is 300. Never inferred from the payment. A figure: {state:\"known\",value:\"412000\",origin:\"user\"}, or the plain value (\"412000\", 412000, \"4.89\"), or {state:\"unknown\"}. A leading $, a trailing % and thousands commas (\"412,000\") are removed. Unknown is never treated as zero."
},
"amortizationExtended": {
"type": "boolean",
"description": "True when the new mortgage would run over a longer amortization than the current one has left, for example stretching back to 30 years. Adds a warning that a lower payment from a longer amortization is not a lower cost."
},
"financedCostsPresent": {
"type": "boolean",
"description": "True when fees or a penalty would be added to the mortgage balance."
}
},
"description": "Facts the user has already given; any may be left out. Other keys are ignored, and the result says so."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"schemaVersion",
"calculationVersion",
"currency",
"scope",
"reasons",
"assumptions",
"missingInputs",
"nextQuestions",
"sources",
"links",
"status",
"classification",
"financedCostsPresent"
],
"properties": {
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"relation",
"title",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"relation": {
"enum": [
"methodology",
"guide",
"contact"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"scope": {
"type": "string",
"const": "Canadian educational scenarios"
},
"status": {
"enum": [
"complete",
"needs_input",
"unsupported"
],
"type": "string"
},
"reasons": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message",
"severity"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"severity": {
"enum": [
"info",
"warning",
"blocking"
],
"type": "string"
},
"fieldPath": {
"type": "string"
}
},
"additionalProperties": false
}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"title",
"url",
"reviewedAt"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"reviewedAt": {
"type": "string"
}
},
"additionalProperties": false
}
},
"currency": {
"type": "string",
"const": "CAD"
},
"assumptions": {
"type": "array",
"items": {
"type": "object",
"required": [
"fieldPath",
"value",
"reason"
],
"properties": {
"value": {
"type": "string"
},
"reason": {
"type": "string"
},
"fieldPath": {
"type": "string"
}
},
"additionalProperties": false
}
},
"missingInputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"fieldPath",
"question",
"impact"
],
"properties": {
"impact": {
"type": "string"
},
"question": {
"type": "string"
},
"fieldPath": {
"type": "string"
}
},
"additionalProperties": false
}
},
"nextQuestions": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 3
},
"schemaVersion": {
"type": "string",
"const": "1.2.0"
},
"classification": {
"enum": [
"comparison_preparation",
"refinance_features_present",
"unsupported_additional_cash_out"
],
"type": "string"
},
"calculationVersion": {
"type": "string"
},
"financedCostsPresent": {
"type": "boolean"
}
},
"additionalProperties": false
},
"annotations": {
"title": "Check missing Canadian mortgage facts",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when a user has two or three Canadian mortgage offers for the same balance, such as a renewal letter from the current lender and a quote to switch lender at renewal, and wants them compared. Compares the user-supplied rates, terms, amortizations, cashback and switching costs over a common horizon. Returns payments, interest, debt left, modeled borrowing cost and missing facts. Do not use for leaving a mortgage before the term ends (use compare_break_or_stay). Does not search or predict rates, confirm qualification or recommend a lender. An unknown cost is never treated as zero. Example: {"startingBalance":"412000","offers":[{"label":"Renewal","annualRatePercent":"4.89","convention":"nominal_semiannual","termMonths":60,"amortizationMonths":300,"frequency":"monthly","paymentMode":"recalculate_payment","costs":[]},{"label":"Switch","annualRatePercent":"4.59","convention":"nominal_semiannual","termMonths":60,"amortizationMonths":300,"frequency":"monthly","paymentMode":"recalculate_payment","costs":[]}]}
| Parameter | Type | Description |
|---|---|---|
| offers * | array | |
| horizonMonths | integer | Comparison horizon in months. Defaults to the shortest supplied term, at most 120. |
| currentPayment | any | A fact is {state:"known",value,origin:"user"} when the user stated it; {state:"assumed",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:"unknown"} otherwise. Unknown is never treated as zero. |
| scheduleWindow | object | |
| startingBalance * | any | Mortgage balance now, in CAD: digits, optionally with a leading $ and thousands commas, for example "412000", "412000.50" or "$412,000". Before any costs are added. |
{
"name": "compare_renewal_offers",
"title": "Compare Canadian mortgage renewal offers",
"description": "Use this when a user has two or three Canadian mortgage offers for the same balance, such as a renewal letter from the current lender and a quote to switch lender at renewal, and wants them compared. Compares the user-supplied rates, terms, amortizations, cashback and switching costs over a common horizon. Returns payments, interest, debt left, modeled borrowing cost and missing facts. Do not use for leaving a mortgage before the term ends (use compare_break_or_stay). Does not search or predict rates, confirm qualification or recommend a lender. An unknown cost is never treated as zero. Example: {\"startingBalance\":\"412000\",\"offers\":[{\"label\":\"Renewal\",\"annualRatePercent\":\"4.89\",\"convention\":\"nominal_semiannual\",\"termMonths\":60,\"amortizationMonths\":300,\"frequency\":\"monthly\",\"paymentMode\":\"recalculate_payment\",\"costs\":[]},{\"label\":\"Switch\",\"annualRatePercent\":\"4.59\",\"convention\":\"nominal_semiannual\",\"termMonths\":60,\"amortizationMonths\":300,\"frequency\":\"monthly\",\"paymentMode\":\"recalculate_payment\",\"costs\":[]}]}",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"startingBalance",
"offers"
],
"properties": {
"offers": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"annualRatePercent",
"convention",
"termMonths",
"amortizationMonths",
"frequency",
"paymentMode",
"costs"
],
"properties": {
"costs": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"amount",
"funding",
"atPeriod"
],
"properties": {
"label": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"amount": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"funding": {
"enum": [
"cash",
"financed",
"lender_paid"
],
"type": "string",
"description": "cash: paid out of pocket. financed: added to the mortgage balance, at the start only (atPeriod 0). lender_paid: paid by the lender and not counted."
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
}
}
},
"maxItems": 30,
"description": "Fees for this offer (legal, discharge, appraisal). A cost the user cannot confirm must be listed with amount {state:\"unknown\"}; leaving it out means there is no such cost."
},
"label": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"credits": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"amount",
"atPeriod",
"destination",
"clawback"
],
"properties": {
"label": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"amount": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
},
"clawback": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "object",
"required": [
"amount",
"atPeriod"
],
"properties": {
"amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0
}
}
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Cashback repayment condition from the lender's agreement. amount: how much of the cashback must be repaid if the mortgage ends early. atPeriod: the payment number that condition refers to (with monthly payments, the month). A known clawback is reported as a warning and is not counted as a cost: the figures assume the mortgage is kept. {state:\"unknown\"} adds a warning to ask the lender and changes no figure. No clawback: {state:\"known\",value:{amount:\"0\",atPeriod:0},origin:\"user\"}."
},
"destination": {
"enum": [
"cash",
"principal"
],
"type": "string",
"description": "cash: paid to the borrower. principal: applied to reduce the balance."
}
}
},
"maxItems": 20,
"description": "Cashback or other credits, with any clawback."
},
"ratePath": {
"type": "array",
"items": {
"type": "object",
"required": [
"atPeriod",
"annualRatePercent"
],
"properties": {
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
},
"annualRatePercent": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual interest rate as a percent number, with or without a trailing % sign: 19.99% is \"19.99\", never \"0.1999\"."
}
}
},
"maxItems": 20,
"description": "Rate changes during the term. Each entry: after payment number atPeriod, the annual rate becomes annualRatePercent (a percent number in a string, for example \"5.25\")."
},
"frequency": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"monthly",
"semi_monthly",
"biweekly",
"weekly",
"accelerated_biweekly",
"accelerated_weekly"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"monthly",
"semi_monthly",
"biweekly",
"weekly",
"accelerated_biweekly",
"accelerated_weekly"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Payment frequency. biweekly is 26 payments a year sized to the stated amortization. accelerated_biweekly is the monthly payment divided by 2, paid 26 times a year, so more is paid each year. weekly and accelerated_weekly are the same idea with 52 payments and division by 4. \"Every two weeks\" alone does not say which: mark unknown or ask."
},
"convention": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Compounding convention of the quoted rate: nominal_semiannual or nominal_monthly. The mortgage documents state it. Mark unknown if the user has not said; do not guess."
},
"termMonths": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "integer",
"maximum": 120,
"minimum": 1
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "integer",
"maximum": 120,
"minimum": 1
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Term length in months, never years: a 5-year term is 60."
},
"paymentMode": {
"enum": [
"recalculate_payment",
"fixed_payment"
],
"type": "string",
"description": "How the payment is set. recalculate_payment: the payment is calculated from the rate and amortization; use it for an ordinary mortgage, including a fixed-rate mortgage. fixed_payment: hold the dollar payment given in fixedPayment; it does not mean a fixed interest rate."
},
"fixedPayment": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Dollar payment per payment period in CAD. Needed only when paymentMode is fixed_payment."
},
"annualRatePercent": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual interest rate as a percent number, with or without a trailing % sign: 4.89% is \"4.89\", never \"0.0489\". Wrapped as a fact."
},
"amortizationMonths": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "integer",
"maximum": 600,
"minimum": 1
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "integer",
"maximum": 600,
"minimum": 1
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Remaining amortization in months, never years: 25 years is 300. Never inferred from the payment."
},
"continuationSegments": {
"type": "array",
"items": {
"type": "object",
"required": [
"durationMonths",
"annualRatePercent",
"convention",
"amortizationMonthsAtStart",
"paymentMode",
"assumptionAcknowledged"
],
"properties": {
"convention": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"paymentMode": {
"enum": [
"recalculate_payment",
"fixed_payment"
],
"type": "string",
"description": "How the payment is set. recalculate_payment: the payment is calculated from the rate and amortization; use it for an ordinary mortgage, including a fixed-rate mortgage. fixed_payment: hold the dollar payment given in fixedPayment; it does not mean a fixed interest rate."
},
"fixedPayment": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Dollar payment per payment period in CAD. Needed only when paymentMode is fixed_payment."
},
"durationMonths": {
"type": "integer",
"maximum": 120,
"minimum": 1
},
"annualRatePercent": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual interest rate as a percent number, with or without a trailing % sign: 19.99% is \"19.99\", never \"0.1999\"."
},
"assumptionAcknowledged": {
"type": "boolean",
"const": true
},
"amortizationMonthsAtStart": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "integer",
"maximum": 600,
"minimum": 1
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "integer",
"maximum": 600,
"minimum": 1
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
}
}
},
"maxItems": 20
}
}
},
"maxItems": 3,
"minItems": 2
},
"horizonMonths": {
"type": "integer",
"maximum": 120,
"minimum": 1,
"description": "Comparison horizon in months. Defaults to the shortest supplied term, at most 120."
},
"currentPayment": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"scheduleWindow": {
"type": "object",
"required": [
"startPeriod",
"count"
],
"properties": {
"count": {
"type": "integer",
"maximum": 600,
"minimum": 1
},
"startPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0
}
}
},
"startingBalance": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Mortgage balance now, in CAD: digits, optionally with a leading $ and thousands commas, for example \"412000\", \"412000.50\" or \"$412,000\". Before any costs are added."
}
}
},
"outputSchema": {
"truncated": true,
"chars": 34433
},
"annotations": {
"title": "Compare Canadian mortgage renewal offers",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when a user asks what paying extra on one Canadian mortgage would do: a higher regular payment, recurring extra payments, or up to 50 lump sums. Compares the supplied mortgage with and without the extras: interest, debt left and modeled payoff period. Checks the extras against prepayment-privilege limits only when the user supplies them; otherwise reports the limits as not checked. Do not use to find a prepayment penalty or the cost of breaking a mortgage: no tool calculates a penalty, the lender quotes it. Results beyond the term need explicit monthly continuation assumptions. Example: {"startingBalance":"412000","mortgage":{"label":"Mortgage","annualRatePercent":"4.89","convention":"nominal_semiannual","termMonths":60,"amortizationMonths":300,"frequency":"monthly","paymentMode":"recalculate_payment","costs":[]},"events":[{"amount":"10000","atPeriod":12}]}
| Parameter | Type | Description |
|---|---|---|
| events | array | Lump-sum extra payments by due period. Use datedEvents for calendar dates. |
| mortgage * | object | |
| startDate | string | |
| datedEvents | array | Lump-sum extra payments by calendar date. Needs startDate; each is modeled on the next due date and must carry mappingAcknowledged:true. |
| contractCaps | object | |
| horizonMonths | integer | Horizon in months. Defaults to the mortgage term. |
| recurringExtra | object | Extra amount added to every payment from the given period (1 or later). |
| scheduleWindow | object | |
| startingBalance * | any | Mortgage balance now, in CAD: digits, optionally with a leading $ and thousands commas, for example "412000", "412000.50" or "$412,000". Before any costs are added. |
| semiMonthlyAnchors | array | |
| pastPaymentsIncludedInBalance | boolean |
{
"name": "plan_mortgage_prepayments",
"title": "Model extra payments on a Canadian mortgage",
"description": "Use this when a user asks what paying extra on one Canadian mortgage would do: a higher regular payment, recurring extra payments, or up to 50 lump sums. Compares the supplied mortgage with and without the extras: interest, debt left and modeled payoff period. Checks the extras against prepayment-privilege limits only when the user supplies them; otherwise reports the limits as not checked. Do not use to find a prepayment penalty or the cost of breaking a mortgage: no tool calculates a penalty, the lender quotes it. Results beyond the term need explicit monthly continuation assumptions. Example: {\"startingBalance\":\"412000\",\"mortgage\":{\"label\":\"Mortgage\",\"annualRatePercent\":\"4.89\",\"convention\":\"nominal_semiannual\",\"termMonths\":60,\"amortizationMonths\":300,\"frequency\":\"monthly\",\"paymentMode\":\"recalculate_payment\",\"costs\":[]},\"events\":[{\"amount\":\"10000\",\"atPeriod\":12}]}",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"startingBalance",
"mortgage"
],
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"amount",
"atPeriod"
],
"properties": {
"amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
}
}
},
"maxItems": 50,
"description": "Lump-sum extra payments by due period. Use datedEvents for calendar dates."
},
"mortgage": {
"type": "object",
"required": [
"label",
"annualRatePercent",
"convention",
"termMonths",
"amortizationMonths",
"frequency",
"paymentMode",
"costs"
],
"properties": {
"costs": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"amount",
"funding",
"atPeriod"
],
"properties": {
"label": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"amount": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"funding": {
"enum": [
"cash",
"financed",
"lender_paid"
],
"type": "string",
"description": "cash: paid out of pocket. financed: added to the mortgage balance, at the start only (atPeriod 0). lender_paid: paid by the lender and not counted."
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
}
}
},
"maxItems": 30,
"description": "Fees for this offer (legal, discharge, appraisal). A cost the user cannot confirm must be listed with amount {state:\"unknown\"}; leaving it out means there is no such cost."
},
"label": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"credits": {
"type": "array",
"items": {
"type": "object",
"required": [
"label",
"amount",
"atPeriod",
"destination",
"clawback"
],
"properties": {
"label": {
"type": "string",
"maxLength": 100,
"minLength": 1
},
"amount": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
},
"clawback": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "object",
"required": [
"amount",
"atPeriod"
],
"properties": {
"amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0
}
}
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Cashback repayment condition from the lender's agreement. amount: how much of the cashback must be repaid if the mortgage ends early. atPeriod: the payment number that condition refers to (with monthly payments, the month). A known clawback is reported as a warning and is not counted as a cost: the figures assume the mortgage is kept. {state:\"unknown\"} adds a warning to ask the lender and changes no figure. No clawback: {state:\"known\",value:{amount:\"0\",atPeriod:0},origin:\"user\"}."
},
"destination": {
"enum": [
"cash",
"principal"
],
"type": "string",
"description": "cash: paid to the borrower. principal: applied to reduce the balance."
}
}
},
"maxItems": 20,
"description": "Cashback or other credits, with any clawback."
},
"ratePath": {
"type": "array",
"items": {
"type": "object",
"required": [
"atPeriod",
"annualRatePercent"
],
"properties": {
"atPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0,
"description": "Payment number, not a month: 0 is the start. With biweekly payments, payment 26 is about month 12."
},
"annualRatePercent": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual interest rate as a percent number, with or without a trailing % sign: 19.99% is \"19.99\", never \"0.1999\"."
}
}
},
"maxItems": 20,
"description": "Rate changes during the term. Each entry: after payment number atPeriod, the annual rate becomes annualRatePercent (a percent number in a string, for example \"5.25\")."
},
"frequency": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"monthly",
"semi_monthly",
"biweekly",
"weekly",
"accelerated_biweekly",
"accelerated_weekly"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"monthly",
"semi_monthly",
"biweekly",
"weekly",
"accelerated_biweekly",
"accelerated_weekly"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Payment frequency. biweekly is 26 payments a year sized to the stated amortization. accelerated_biweekly is the monthly payment divided by 2, paid 26 times a year, so more is paid each year. weekly and accelerated_weekly are the same idea with 52 payments and division by 4. \"Every two weeks\" alone does not say which: mark unknown or ask."
},
"convention": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Compounding convention of the quoted rate: nominal_semiannual or nominal_monthly. The mortgage documents state it. Mark unknown if the user has not said; do not guess."
},
"termMonths": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "integer",
"maximum": 120,
"minimum": 1
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "integer",
"maximum": 120,
"minimum": 1
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Term length in months, never years: a 5-year term is 60."
},
"paymentMode": {
"enum": [
"recalculate_payment",
"fixed_payment"
],
"type": "string",
"description": "How the payment is set. recalculate_payment: the payment is calculated from the rate and amortization; use it for an ordinary mortgage, including a fixed-rate mortgage. fixed_payment: hold the dollar payment given in fixedPayment; it does not mean a fixed interest rate."
},
"fixedPayment": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Dollar payment per payment period in CAD. Needed only when paymentMode is fixed_payment."
},
"annualRatePercent": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual interest rate as a percent number, with or without a trailing % sign: 4.89% is \"4.89\", never \"0.0489\". Wrapped as a fact."
},
"amortizationMonths": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "integer",
"maximum": 600,
"minimum": 1
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "integer",
"maximum": 600,
"minimum": 1
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Remaining amortization in months, never years: 25 years is 300. Never inferred from the payment."
},
"continuationSegments": {
"type": "array",
"items": {
"type": "object",
"required": [
"durationMonths",
"annualRatePercent",
"convention",
"amortizationMonthsAtStart",
"paymentMode",
"assumptionAcknowledged"
],
"properties": {
"convention": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"nominal_semiannual",
"nominal_monthly"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
},
"paymentMode": {
"enum": [
"recalculate_payment",
"fixed_payment"
],
"type": "string",
"description": "How the payment is set. recalculate_payment: the payment is calculated from the rate and amortization; use it for an ordinary mortgage, including a fixed-rate mortgage. fixed_payment: hold the dollar payment given in fixedPayment; it does not mean a fixed interest rate."
},
"fixedPayment": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Dollar payment per payment period in CAD. Needed only when paymentMode is fixed_payment."
},
"durationMonths": {
"type": "integer",
"maximum": 120,
"minimum": 1
},
"annualRatePercent": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual interest rate as a percent number, with or without a trailing % sign: 19.99% is \"19.99\", never \"0.1999\"."
},
"assumptionAcknowledged": {
"type": "boolean",
"const": true
},
"amortizationMonthsAtStart": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"type": "integer",
"maximum": 600,
"minimum": 1
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "integer",
"maximum": 600,
"minimum": 1
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "A fact is {state:\"known\",value,origin:\"user\"} when the user stated it; {state:\"assumed\",value,acknowledged:true,reason} only after the user has agreed to the assumption; {state:\"unknown\"} otherwise. Unknown is never treated as zero."
}
}
},
"maxItems": 20
}
}
},
"startDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"datedEvents": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"amount",
"mappingAcknowledged"
],
"properties": {
"date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"mappingAcknowledged": {
"type": "boolean",
"const": true
}
}
},
"maxItems": 50,
"description": "Lump-sum extra payments by calendar date. Needs startDate; each is modeled on the next due date and must carry mappingAcknowledged:true."
},
"contractCaps": {
"type": "object",
"required": [
"basis"
],
"properties": {
"basis": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"enum": [
"absolute",
"original_principal",
"current_balance"
],
"type": "string"
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"enum": [
"absolute",
"original_principal",
"current_balance"
],
"type": "string"
},
{
"enum": [
"unknown"
],
"type": "string"
}
],
"description": "Basis of the annual limit: absolute uses annualCap; original_principal and current_balance use percentage."
},
"annualCap": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual prepayment limit in CAD. Omitted means the contract has no dollar annual limit; {state:\"unknown\"} means a limit may exist, so limits are not checked. With a percentage basis, a supplied amount is also checked and the stricter applies; an absolute basis requires this amount."
},
"startDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Date of period 0; due dates follow the illustrative calendar."
},
"percentage": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Annual prepayment limit as a percent number in a string: 15% is \"15\". Used with basis original_principal or current_balance."
},
"resetMonth": {
"type": "integer",
"maximum": 12,
"minimum": 1,
"description": "Month whose first day starts each prepayment year."
},
"perEventCap": {
"anyOf": [
{
"type": "object",
"required": [
"state"
],
"properties": {
"state": {
"enum": [
"known",
"assumed",
"unknown"
],
"type": "string"
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"origin": {
"enum": [
"user",
"approved_reference"
],
"type": "string"
},
"reason": {
"type": "string",
"maxLength": 240,
"minLength": 1
},
"acknowledged": {
"type": "boolean",
"const": true
}
}
},
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Per-payment prepayment limit in CAD. Omitted means the contract has no per-payment limit; {state:\"unknown\"} means a limit may exist, so limits are not checked."
}
}
},
"horizonMonths": {
"type": "integer",
"maximum": 600,
"minimum": 1,
"description": "Horizon in months. Defaults to the mortgage term."
},
"recurringExtra": {
"type": "object",
"required": [
"amount",
"fromPeriod"
],
"properties": {
"amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"fromPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0
}
},
"description": "Extra amount added to every payment from the given period (1 or later)."
},
"scheduleWindow": {
"type": "object",
"required": [
"startPeriod",
"count"
],
"properties": {
"count": {
"type": "integer",
"maximum": 600,
"minimum": 1
},
"startPeriod": {
"type": "integer",
"maximum": 3000,
"minimum": 0
}
}
},
"startingBalance": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
}
],
"description": "Mortgage balance now, in CAD: digits, optionally with a leading $ and thousands commas, for example \"412000\", \"412000.50\" or \"$412,000\". Before any costs are added."
},
"semiMonthlyAnchors": {
"type": "array",
"items": {
"type": "integer",
"maximum": 31,
"minimum": 1
},
"maxItems": 2,
"minItems": 2
},
"pastPaymentsIncludedInBalance": {
"type": "boolean",
"const": true
}
}
},
"outputSchema": {
"truncated": true,
"chars": 34433
},
"annotations": {
"title": "Model extra payments on a Canadian mortgage",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when a user is partway through a Canadian mortgage term and asks whether to break the mortgage early (to refinance the same debt, switch lender or take a lower rate) or stay until the term ends. Compares keeping it with a user-supplied replacement offer, counting the lender-quoted penalty, such as an interest rate differential (IRD) or three months' interest. Shows cashflow payback separately from borrowing-cost crossover. Do not use to calculate or estimate a penalty: the lender must quote it, and an unknown penalty prevents an unconditional ranking. No cash-out or rate search. Example, each offer shaped like {"label":"A","annualRatePercent":"5.49","convention":"nominal_semiannual","termMonths":60,"amortizationMonths":300,"frequency":"monthly","paymentMode":"recalculate_payment","costs":[]} (label "B" in the second): {"startingBalance":"412000","currentMortgage":{...},"replacementOffer":{...},"remainingTermMonths":24,"penalty":"unknown","penaltyFunding":"cash"}
Schema too large to show here (26,044 characters).
{
"name": "compare_break_or_stay",
"title": "Compare breaking or keeping a Canadian mortgage",
"description": "Use this when a user is partway through a Canadian mortgage term and asks whether to break the mortgage early (to refinance the same debt, switch lender or take a lower rate) or stay until the term ends. Compares keeping it with a user-supplied replacement offer, counting the lender-quoted penalty, such as an interest rate differential (IRD) or three months' interest. Shows cashflow payback separately from borrowing-cost crossover. Do not use to calculate or estimate a penalty: the lender must quote it, and an unknown penalty prevents an unconditional ranking. No cash-out or rate search. Example, each offer shaped like {\"label\":\"A\",\"annualRatePercent\":\"5.49\",\"convention\":\"nominal_semiannual\",\"termMonths\":60,\"amortizationMonths\":300,\"frequency\":\"monthly\",\"paymentMode\":\"recalculate_payment\",\"costs\":[]} (label \"B\" in the second): {\"startingBalance\":\"412000\",\"currentMortgage\":{...},\"replacementOffer\":{...},\"remainingTermMonths\":24,\"penalty\":\"unknown\",\"penaltyFunding\":\"cash\"}",
"inputSchema": {
"truncated": true,
"chars": 26044
},
"outputSchema": {
"truncated": true,
"chars": 34433
},
"annotations": {
"title": "Compare breaking or keeping a Canadian mortgage",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when a user asks about rolling other debts into a Canadian mortgage (debt consolidation), for example credit-card, car-loan or existing line-of-credit or HELOC balances, each entered with a fixed monthly payment or as interest-only. Compares three scenarios over a common horizon: keep the mortgage and debts, consolidate at the new minimum payment, and consolidate while keeping the same monthly repayment budget. Shows interest, debt left, fees and limits. Monthly mortgage payments only; 1 to 10 debts. Do not use for a new HELOC, additional cash-out or qualification: none is modeled. Example, each offer shaped as in the compare_break_or_stay example (label "B" in the second): {"startingBalance":"412000","mortgage":{...},"debts":[{"label":"Card","balance":"8500","annualRatePercent":"19.99","monthlyPayment":"300","type":"fixed_monthly","convention":"nominal_monthly"}],"replacementOffer":{...},"penalty":"unknown","penaltyFunding":"cash"}
Schema too large to show here (30,326 characters).
{
"name": "compare_debt_consolidation",
"title": "Compare debt consolidation into a Canadian mortgage",
"description": "Use this when a user asks about rolling other debts into a Canadian mortgage (debt consolidation), for example credit-card, car-loan or existing line-of-credit or HELOC balances, each entered with a fixed monthly payment or as interest-only. Compares three scenarios over a common horizon: keep the mortgage and debts, consolidate at the new minimum payment, and consolidate while keeping the same monthly repayment budget. Shows interest, debt left, fees and limits. Monthly mortgage payments only; 1 to 10 debts. Do not use for a new HELOC, additional cash-out or qualification: none is modeled. Example, each offer shaped as in the compare_break_or_stay example (label \"B\" in the second): {\"startingBalance\":\"412000\",\"mortgage\":{...},\"debts\":[{\"label\":\"Card\",\"balance\":\"8500\",\"annualRatePercent\":\"19.99\",\"monthlyPayment\":\"300\",\"type\":\"fixed_monthly\",\"convention\":\"nominal_monthly\"}],\"replacementOffer\":{...},\"penalty\":\"unknown\",\"penaltyFunding\":\"cash\"}",
"inputSchema": {
"truncated": true,
"chars": 30326
},
"outputSchema": {
"truncated": true,
"chars": 34433
},
"annotations": {
"title": "Compare debt consolidation into a Canadian mortgage",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}Use this when a user asks how to prepare for or understand a supported Canadian mortgage topic and is not asking for a calculation: renewal, switching costs, unequal terms, payment versus cost, renewal checklist, prepayments, break or stay, debt consolidation, or the calculation method. Returns one short, dated preparation guide written for Ontario and reviewed by an Ontario mortgage agent, with its public source, review status and follow-up questions. Do not use for general financial, legal or tax advice, current rates, arbitrary URLs or live web search. Example: {"topic":"renewal"}
| Parameter | Type | Description |
|---|---|---|
| topic * | string | One of the nine guide topics. |
| detail | string | brief returns the first two sentences; full returns the whole guide. |
{
"name": "get_mortgage_guide",
"title": "Read an Ontario mortgage preparation guide",
"description": "Use this when a user asks how to prepare for or understand a supported Canadian mortgage topic and is not asking for a calculation: renewal, switching costs, unequal terms, payment versus cost, renewal checklist, prepayments, break or stay, debt consolidation, or the calculation method. Returns one short, dated preparation guide written for Ontario and reviewed by an Ontario mortgage agent, with its public source, review status and follow-up questions. Do not use for general financial, legal or tax advice, current rates, arbitrary URLs or live web search. Example: {\"topic\":\"renewal\"}",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"topic"
],
"properties": {
"topic": {
"enum": [
"renewal",
"switching_costs",
"unequal_terms",
"payment_vs_cost",
"renewal_checklist",
"prepayments",
"break_or_stay",
"debt_consolidation",
"methodology"
],
"type": "string",
"description": "One of the nine guide topics."
},
"detail": {
"enum": [
"brief",
"full"
],
"type": "string",
"description": "brief returns the first two sentences; full returns the whole guide."
}
}
},
"outputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"schemaVersion",
"calculationVersion",
"currency",
"scope",
"reasons",
"assumptions",
"missingInputs",
"nextQuestions",
"sources",
"links",
"status",
"topic",
"title",
"body",
"jurisdiction",
"reviewedAt",
"reviewDueAt",
"contentVersion",
"reviewStatus",
"limitations"
],
"properties": {
"body": {
"type": "string"
},
"links": {
"type": "array",
"items": {
"type": "object",
"required": [
"relation",
"title",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"relation": {
"enum": [
"methodology",
"guide",
"contact"
],
"type": "string"
}
},
"additionalProperties": false
}
},
"scope": {
"type": "string",
"const": "Canadian educational scenarios"
},
"title": {
"type": "string"
},
"topic": {
"enum": [
"renewal",
"switching_costs",
"unequal_terms",
"payment_vs_cost",
"renewal_checklist",
"prepayments",
"break_or_stay",
"debt_consolidation",
"methodology"
],
"type": "string"
},
"status": {
"enum": [
"complete",
"partial"
],
"type": "string"
},
"reasons": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"message",
"severity"
],
"properties": {
"code": {
"type": "string"
},
"message": {
"type": "string"
},
"severity": {
"enum": [
"info",
"warning",
"blocking"
],
"type": "string"
},
"fieldPath": {
"type": "string"
}
},
"additionalProperties": false
}
},
"sources": {
"type": "array",
"items": {
"type": "object",
"required": [
"title",
"url",
"reviewedAt"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"reviewedAt": {
"type": "string"
}
},
"additionalProperties": false
}
},
"currency": {
"type": "string",
"const": "CAD"
},
"reviewedAt": {
"type": "string"
},
"assumptions": {
"type": "array",
"items": {
"type": "object",
"required": [
"fieldPath",
"value",
"reason"
],
"properties": {
"value": {
"type": "string"
},
"reason": {
"type": "string"
},
"fieldPath": {
"type": "string"
}
},
"additionalProperties": false
}
},
"limitations": {
"type": "array",
"items": {
"type": "string"
}
},
"reviewDueAt": {
"type": "string"
},
"jurisdiction": {
"type": "string",
"const": "Ontario"
},
"reviewStatus": {
"enum": [
"source_checked",
"professional_approval_pending",
"professionally_approved",
"expired_suppressed"
],
"type": "string"
},
"missingInputs": {
"type": "array",
"items": {
"type": "object",
"required": [
"fieldPath",
"question",
"impact"
],
"properties": {
"impact": {
"type": "string"
},
"question": {
"type": "string"
},
"fieldPath": {
"type": "string"
}
},
"additionalProperties": false
}
},
"nextQuestions": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 3
},
"schemaVersion": {
"type": "string",
"const": "1.2.0"
},
"contentVersion": {
"type": "string"
},
"calculationVersion": {
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"title": "Read an Ontario mortgage preparation guide",
"readOnlyHint": true,
"openWorldHint": false,
"destructiveHint": false
}
}These tools compare Canadian mortgage scenarios in CAD from figures the user supplies. If key figures are missing, call diagnose_mortgage_comparison first; otherwise call the matching calculator directly. No tool finds or predicts rates, calculates a penalty or IRD, checks qualification, affordability or the stress test, models new borrowing or cash-out, or sends or contacts anyone: say so plainly. For a penalty, ask the user for the lender's dated payout quote. Never treat an unknown cost as zero. The calculations do not depend on province and apply anywhere in Canada; the guides are written for Ontario. If the user names another province, still calculate and say that the guides are Ontario-based. Do not ask for the user's location.
Names, descriptions and schemas were written by the server and are shown as data.