Skip to main content
Glama

Calculate Canada mortgage stress test

calculate_ca_mortgage_stress_test
Read-onlyIdempotent

Canada mortgage stress test: minimum qualifying rate (greater of 5.25% or contract + 2%), GDS 39% and TDS 44% and the largest mortgage that passes. Financial planning check from official scheme rules, same code as tools.oiyo.net. General information only: not financial, tax or investment advice, and no product is recommended.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "grossAnnualIncome": "<grossAnnualIncome>",
      "contractRatePct": "<contractRatePct>",
      "amortizationYears": "<amortizationYears>"
    },
    "name": "calculate_ca_mortgage_stress_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
heatingMonthlyNoHeating per month
contractRatePctYesContract rate %
condoFeesMonthlyNoCondo fees per month
otherDebtMonthlyNoOther debt payments per month
amortizationYearsYesAmortization years
grossAnnualIncomeYesGross household income (CAD)
propertyTaxMonthlyNoProperty tax per month

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish that the tool is read-only, idempotent, closed-world, and non-destructive. The description adds meaningful behavioral context by disclosing the official stress-test formulas, the GDS/TDS thresholds, and a legal disclaimer, though it omits assumptions and return-shape details.

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

Conciseness4/5

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

The definition is front-loaded with the core calculation rules and remains reasonably compact. The reference to 'same code as tools.oiyo.net' is not essential for invocation, but the disclaimer is relevant and the structure is understandable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given seven parameters, three required fields, full schema coverage, and no output schema, the description supplies enough domain context to understand the calculation and its outputs. It could be stronger by explicitly describing the returned result fields or assumptions, but it is largely complete for a deterministic financial calculator.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all seven parameters. The description adds useful meaning for the qualifying-rate rule ('greater of 5.25% or contract + 2%') and GDS/TDS thresholds, but does not systematically clarify the optional expense parameters beyond what the schema already says.

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

Purpose5/5

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

The description states a specific calculation domain: Canada mortgage stress test, minimum qualifying rate, GDS/TDS ratios, and largest qualifying mortgage. It is clearly distinct from the sibling calculators and leaves no ambiguity about what the tool computes.

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

Usage Guidelines3/5

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

The phrase 'Financial planning check from official scheme rules' implies a planning use case, but the description does not explicitly say when to use this tool versus alternatives or when it is inappropriate. The guidance is contextual but not directive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.