Skip to main content
Glama

Clara Mortgage Assistant

Calculate GDS and TDS

calculate_debt_service
Read-onlyIdempotent

MUST use this tool when the user supplies a monthly mortgage payment and asks for Canadian GDS or TDS. Calculate the ratios directly from that payment, income, and monthly obligations. Do not request principal, contract rate, or amortization, and do not use calculate_qualification when the monthly payment is already supplied. Ratios are not an approval or suitability decision. Use only with explicit, non-identifying numeric inputs. Calculation only: never use this tool to approve, deny, underwrite, recommend, select a lender or product, or fill missing inputs from prior chats, files, accounts, documents, websites, or web search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
housingNo
tolerancesNo
jurisdictionNoCanadian calculations only.CA
effectiveDateYesDate the supplied rates and policy assumptions were confirmed.
monthlyPaymentYesMonthly mortgage principal-and-interest payment in Canadian dollars.
grossAnnualIncomeYesGross annual household income in Canadian dollars.
otherMonthlyDebtsNoTotal other monthly debt obligations in Canadian dollars.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYes
currencyYes
disclaimerYes
calculationYes
jurisdictionYes
effectiveDateYes
calculationVersionYes

TDQS

A4.4/5.0
Behavior4/5

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

The description discloses that the tool is calculation-only and not an approval or suitability decision, and it limits inputs to non-identifying numeric values. It also says it will not fill missing inputs from external sources. Annotations already declare readOnlyHint, idempotentHint, and non-destructive; the description adds context about usage scope, so it scores high without contradiction.

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

Conciseness5/5

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

The description is concise, with multiple sentences that are all informative. It starts with the MUST-use rule, then explains the calculation, then restrictions, and then prohibitions. No redundant or unnecessary phrases. Each sentence adds value.

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?

Considering the tool is a calculation with an output schema and detailed input schema, the description covers the essential usage. It explains the input scenario, the forbidden alternatives, and the boundaries of the tool's purpose. Minor gap: not describing the output or the fact that it can accept housing costs for GDS/TDS calculation, but the schema covers these. Overall, complete for its purpose.

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 71%, covering parameters like monthlyPayment, grossAnnualIncome, housing, and tolerances. The description clarifies the core parameters but does not elaborate on housing or tolerances beyond the schema. It adds the overall logic of direct calculation but doesn't compensate for some parameters not described, like jurisdiction and otherMonthlyDebts, which are self-explanatory.

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 specifies 'MUST use this tool when the user supplies a monthly mortgage payment and asks for Canadian GDS or TDS' and clearly states the calculation purpose, distinguishing it from calculate_qualification. It names the resource (GDS/TDS ratios) and the verb (calculate), which is specific and unambiguous.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use instructions: 'MUST use this tool when...' and when-not-to-use: 'do not use calculate_qualification when the monthly payment is already supplied.' It also states what not to do, such as not requiring principal or rate, and mentions the tool is not for approval or suitability decisions.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each calculation tool targets a distinct mortgage calculation (debt service ratios, LTV, qualification, scenario comparison, prepayment penalty), and the refuse tool exists solely for disallowed requests, creating clear boundaries between tools. The descriptions are explicit about when to use each tool and how they differ, minimizing misselection risk.

Naming Consistency4/5

Most tools follow a consistent verb_noun pattern (calculate_debt_service, calculate_ltv, calculate_qualification, compare_mortgage_scenarios, estimate_prepayment_penalty). One tool deviates with the verb 'refuse' rather than 'calculate' or 'estimate', which is appropriate given its distinct refusal purpose but slightly inconsistent in naming style.

Tool Count4/5

With 6 tools, the count is well-scoped for a specialized mortgage calculation assistant. Each tool addresses a specific calculation or a necessary refusal flow, and the count is neither too thin nor too heavy for the stated purpose.

Completeness4/5

The set covers the main mortgage calculations an agent would need (debt service, LTV, qualification, comparisons, prepayment penalties), with a dedicated refusal tool for unsupported requests. A minor gap might be tools for other common calculations like maximum purchase price or payment amount, but the core domain appears covered.

Resources