{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.jenny.mortgage",
    "site": "jenny.mortgage",
    "addresses": [
      {
        "address": "66.241.124.52",
        "endpoints": 2,
        "shared_infrastructure": false,
        "network": {
          "asn": 40509,
          "name": "FLY - Fly.io, Inc.",
          "prefix": "66.241.124.0/23",
          "country": "US"
        }
      },
      {
        "address": "2a09:8280:1::1b0:965b:0",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": null
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "66.241.124.52",
          "2a09:8280:1::1b0:965b:0"
        ],
        "first_seen": "2026-11-21T18:36:03.443Z",
        "last_seen": "2026-11-23T22:06:03.217Z",
        "checks": 3
      }
    ],
    "hosting": [
      {
        "value": "Fly.io",
        "evidence": "Server header \"Fly/a0014a77a (2026-11-20)\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "Mortgage Tools by Jenny",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "Fly/a0014a77a (2026-11-20)"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 1,
      "sample": [
        {
          "id": "26660",
          "url": "https://syntra.tymko.tech/mcp",
          "server_name": "io.github.Syntra-Tymko/syntra",
          "last_state": "auth_required",
          "last_checked_at": "2026-11-21T14:32:01.519Z"
        }
      ]
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "mortgage.jenny",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "44082",
    "server_name": "mortgage.jenny/jenny-mortgage-tools",
    "url": "https://mcp.jenny.mortgage/mcp",
    "host": "mcp.jenny.mortgage",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T22:06:03.217Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "90756a31cbd09bc11f5df67b12242c54a8efe9cc24a3d551cc92894892467122",
    "first_listed_at": "2026-11-21T18:36:03.443Z",
    "created_at": "2026-11-21T12:55:04.287Z",
    "resolved_addresses": [
      "66.241.124.52",
      "2a09:8280:1::1b0:965b:0"
    ]
  },
  "server": {
    "name": "mortgage.jenny/jenny-mortgage-tools",
    "title": "Mortgage Tools by Jenny",
    "description": "Canadian mortgage calculators: renewal offers, extra payments, break-or-stay, debt consolidation.",
    "version": "1.0.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://jenny.mortgage/mortgage-tools/",
    "published_at": "2026-10-13T23:53:42.847Z",
    "updated_at": "2026-10-13T23:53:42.847Z",
    "first_seen": "2026-11-21T12:55:03.488Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T16:03:50.639Z"
  },
  "operator": {
    "key": "jenny.mortgage",
    "name": "jenny.mortgage",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 391,
    "first_check_in_window": "2026-11-21T18:36:03.443Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "90756a31cbd09bc11f5df67b12242c54a8efe9cc24a3d551cc92894892467122",
    "tools": 6,
    "resources": 1,
    "prompts": 0,
    "first_seen": "2026-11-21T18:36:03.849Z",
    "tool_names": [
      "diagnose_mortgage_comparison",
      "compare_renewal_offers",
      "plan_mortgage_prepayments",
      "compare_break_or_stay",
      "compare_debt_consolidation",
      "get_mortgage_guide"
    ],
    "declared": {
      "tools": [
        {
          "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
          }
        },
        {
          "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
          }
        },
        {
          "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
          }
        },
        {
          "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
          }
        },
        {
          "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
          }
        },
        {
          "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
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "mortgage-results",
          "uri": "ui://mortgage-tools-by-jenny/v6/result.html",
          "mimeType": "text/html;profile=mcp-app"
        }
      ],
      "prompts": []
    },
    "instructions": "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."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}