Skip to main content
Glama

Mortgage Tools by Jenny

Compare Canadian mortgage renewal offers

compare_renewal_offers
Read-only

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":[]}]}

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": {
      "startingBalance": "<startingBalance>",
      "offers": "<offers>"
    },
    "name": "compare_renewal_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
offersYes
horizonMonthsNoComparison horizon in months. Defaults to the shortest supplied term, at most 120.
currentPaymentNoA 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.
scheduleWindowNo
startingBalanceYesMortgage 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.

Output Schema

NameRequiredDescriptionDefault
linksYes
scopeYes
payoffNo
statusYes
horizonNo
reasonsYes
sourcesYes
currencyYes
scheduleNo
breakEvenNo
scenariosYes
assumptionsYes
differencesNo
sensitivityNo
dateMappingsNo
missingInputsYes
nextQuestionsYes
schemaVersionYes
evaluatedThroughNo
requestedHorizonNo
illustrativeRatioNo
calculationVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed46 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / currentPayment / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / currentPayment / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • removedInput schema / properties / offers / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offers / items / properties / amortizationMonths / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "maximum": 600,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "maximum": 600,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / amortizationMonths / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "maximum": 600,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "maximum": 600,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / annualRatePercent / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • changedInput schema / properties / offers / items / properties / annualRatePercent / description
      Previous value: -"Annual interest rate as a percent number in a string, without the % sign: 4.89% is \"4.89\", never \"0.0489\". Wrapped as a fact."New value: +"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."
    • removedInput schema / properties / offers / items / properties / annualRatePercent / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d?)(\\.\\d{1,8})?$|^100(\\.0{1,8})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d?)(\\.\\d{1,8})?$|^100(\\.0{1,8})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • removedInput schema / properties / offers / items / properties / continuationSegments / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offers / items / properties / continuationSegments / items / properties / amortizationMonthsAtStart / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "maximum": 600,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "maximum": 600,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / continuationSegments / items / properties / amortizationMonthsAtStart / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "maximum": 600,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "maximum": 600,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / continuationSegments / items / properties / annualRatePercent / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • changedInput schema / properties / offers / items / properties / continuationSegments / items / properties / annualRatePercent / description
      Previous value: -"Annual interest rate as a percent number in a string, without the % sign: 19.99% is \"19.99\", never \"0.1999\"."New value: +"Annual interest rate as a percent number, with or without a trailing % sign: 19.99% is \"19.99\", never \"0.1999\"."
    • removedInput schema / properties / offers / items / properties / continuationSegments / items / properties / annualRatePercent / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d?)(\\.\\d{1,8})?$|^100(\\.0{1,8})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d?)(\\.\\d{1,8})?$|^100(\\.0{1,8})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / continuationSegments / items / properties / convention / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "enum": [
      +          "nominal_semiannual",
      +          "nominal_monthly"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "enum": [
      +      "nominal_semiannual",
      +      "nominal_monthly"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / continuationSegments / items / properties / convention / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "nominal_semiannual",
      -          "nominal_monthly"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "nominal_semiannual",
      -          "nominal_monthly"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / continuationSegments / items / properties / fixedPayment / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / continuationSegments / items / properties / fixedPayment / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / convention / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "enum": [
      +          "nominal_semiannual",
      +          "nominal_monthly"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "enum": [
      +      "nominal_semiannual",
      +      "nominal_monthly"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / convention / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "nominal_semiannual",
      -          "nominal_monthly"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "nominal_semiannual",
      -          "nominal_monthly"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • removedInput schema / properties / offers / items / properties / costs / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offers / items / properties / costs / items / properties / amount / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / costs / items / properties / amount / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • removedInput schema / properties / offers / items / properties / credits / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offers / items / properties / credits / items / properties / amount / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / credits / items / properties / amount / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / credits / items / properties / clawback / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "properties": {
      +          "amount": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "number"
      +              }
      +            ]
      +          },
      +          "atPeriod": {
      +            "maximum": 3000,
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "amount",
      +          "atPeriod"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / credits / items / properties / clawback / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "amount": {
      -            "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -            "type": "string"
      -          },
      -          "atPeriod": {
      -            "maximum": 3000,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "amount",
      -          "atPeriod"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "amount": {
      -            "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -            "type": "string"
      -          },
      -          "atPeriod": {
      -            "maximum": 3000,
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "amount",
      -          "atPeriod"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / fixedPayment / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / fixedPayment / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "pattern": "^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / offers / items / properties / frequency / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "enum": [
      +          "monthly",
      +          "semi_monthly",
      +          "biweekly",
      +          "weekly",
      +          "accelerated_biweekly",
      +          "accelerated_weekly"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "enum": [
      +      "monthly",
      +      "semi_monthly",
      +      "biweekly",
      +      "weekly",
      +      "accelerated_biweekly",
      +      "accelerated_weekly"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / frequency / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "monthly",
      -          "semi_monthly",
      -          "biweekly",
      -          "weekly",
      -          "accelerated_biweekly",
      -          "accelerated_weekly"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "enum": [
      -          "monthly",
      -          "semi_monthly",
      -          "biweekly",
      -          "weekly",
      -          "accelerated_biweekly",
      -          "accelerated_weekly"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • removedInput schema / properties / offers / items / properties / ratePath / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / offers / items / properties / ratePath / items / properties / annualRatePercent / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • changedInput schema / properties / offers / items / properties / ratePath / items / properties / annualRatePercent / description
      Previous value: -"Annual interest rate as a percent number in a string, without the % sign: 19.99% is \"19.99\", never \"0.1999\"."New value: +"Annual interest rate as a percent number, with or without a trailing % sign: 19.99% is \"19.99\", never \"0.1999\"."
    • removedInput schema / properties / offers / items / properties / ratePath / items / properties / annualRatePercent / pattern
      Removed value: -"^(0|[1-9]\\d?)(\\.\\d{1,8})?$|^100(\\.0{1,8})?$"
    • removedInput schema / properties / offers / items / properties / ratePath / items / properties / annualRatePercent / type
      Removed value: -"string"
    • addedInput schema / properties / offers / items / properties / termMonths / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "acknowledged": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "origin": {
      +        "enum": [
      +          "user",
      +          "approved_reference"
      +        ],
      +        "type": "string"
      +      },
      +      "reason": {
      +        "maxLength": 240,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "state": {
      +        "enum": [
      +          "known",
      +          "assumed",
      +          "unknown"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "maximum": 120,
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "state"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "maximum": 120,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  {
      +    "enum": [
      +      "unknown"
      +    ],
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / offers / items / properties / termMonths / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "origin": {
      -        "enum": [
      -          "user",
      -          "approved_reference"
      -        ],
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "known",
      -        "type": "string"
      -      },
      -      "value": {
      -        "maximum": 120,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "origin"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "acknowledged": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "reason": {
      -        "maxLength": 240,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "state": {
      -        "const": "assumed",
      -        "type": "string"
      -      },
      -      "value": {
      -        "maximum": 120,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "state",
      -      "value",
      -      "acknowledged",
      -      "reason"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "state": {
      -        "const": "unknown",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "state"
      -    ],
      -    "type": "object"
      -  }
      -]
    • changedInput schema / properties / offers / items / required
      Previous value: -[
      -  "label",
      -  "annualRatePercent",
      -  "convention",
      -  "termMonths",
      -  "amortizationMonths",
      -  "frequency",
      -  "paymentMode",
      -  "costs",
      -  "credits"
      -]New value: +[
      +  "label",
      +  "annualRatePercent",
      +  "convention",
      +  "termMonths",
      +  "amortizationMonths",
      +  "frequency",
      +  "paymentMode",
      +  "costs"
      +]
    • removedInput schema / properties / scheduleWindow / additionalProperties
      Removed value: -false
    • addedInput schema / properties / startingBalance / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "number"
      +  }
      +]
    • changedInput schema / properties / startingBalance / description
      Previous value: -"Mortgage balance now, in CAD, as digits only: no $ sign, no commas, no spaces, for example \"412000\" or \"412000.50\". Before any costs are added."New value: +"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."
    • removedInput schema / properties / startingBalance / pattern
      Removed value: -"^(0|[1-9]\\d{0,7})(\\.\\d{1,2})?$"
    • removedInput schema / properties / startingBalance / type
      Removed value: -"string"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/no-destruction/no-open-world, and the description still adds real behavioral content: the returned figures (payments, interest, debt left, modeled borrowing cost, missing facts) and the invariant that "An unknown cost is never treated as zero", which governs how partial inputs are handled. It also discloses the advisory limit (no lender recommendation).

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?

Guidance is front-loaded: when-to-use, what it compares, what it returns, exclusions, then the example. Each prose sentence carries distinct information, but the trailing JSON example is long and largely restates a structure the schema already defines, so it is slightly over-weighted relative to the rest.

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?

For a nested, 5-parameter tool with an output schema, the definition covers trigger, scope, exclusions, output shape summary, and the unknown-handling invariant. Nothing an agent needs to decide to call it or to build a valid payload is missing.

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?

The schema is already richly annotated, and the description reinforces the trickiest semantics by example — percent-as-number ("4.89"), convention values, termMonths/amortizationMonths in months, paymentMode. It does not itself explain horizonMonths, currentPayment, or scheduleWindow, leaving those to the schema, so it adds value without fully covering every field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ("compares ... two or three Canadian mortgage offers for the same balance") and pins the inputs it compares — rates, terms, amortizations, cashback, switching costs. It also states boundary conditions that separate it from siblings, e.g. "Do not use for leaving a mortgage before the term ends (use compare_break_or_stay)".

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

Usage Guidelines5/5

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

Gives an explicit trigger scenario (renewal letter from current lender plus a switch quote), an explicit exclusion routed to a named sibling, and a list of things it does not do (no rate search/prediction, no qualification confirmation, no lender recommendation). The only nuance left implicit is when to prefer compare_debt_consolidation, but the stated scope already rules that out.

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