Skip to main content
Glama

ScorpTech x402 Tools

Mortgage Affordability

mortgage_affordability
Read-onlyIdempotent

How much house can I afford: maximum home price and loan from income, monthly debts, down payment and rate under front-end / back-end debt-to-income limits (default 28/36), with a full monthly PITI breakdown (principal & interest, property tax, insurance, HOA, PMI below 20% down). Give homePrice instead to get the monthly cost and the income needed. Returns JSON with: maxHomePrice, loanAmount, downPaymentPct, monthlyBudget, limitedBy, monthly, frontEndDtiPct, backEndDtiPct. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/mortgage-affordability

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": {
      "ratePct": "<ratePct>"
    },
    "name": "mortgage_affordability"
  }
}

Input Schema

NameRequiredDescriptionDefault
pmiPctNoAnnual PMI, percent of loan, when down payment < 20%
ratePctYesMortgage rate in percent
homePriceNoOptional: evaluate this price instead of solving for the maximum
termYearsNo
downPaymentNo
hoaPerMonthNo
annualIncomeNoGross annual income
monthlyDebtsNoOther monthly debt payments (cards, car, student loans)
backEndDtiPctNo
frontEndDtiPctNo
propertyTaxPctNoAnnual property tax, percent of price
insurancePerYearNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the paid-call model ($0.002 USDC per successful call via x402 on Base or Solana) and provides an equivalent HTTPS GET endpoint, which an agent must know before invoking. It also explains that PMI is applied below 20% down and enumerates the PITI components, so cost-driving behavior is transparent.

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 capability statement and the mode switch are front-loaded, followed by the return-field list and pricing/endpoint details. The return-field enumeration is long but justified given there is no output schema; each block carries distinct information with minimal filler.

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?

For a 12-parameter, no-output-schema tool, it covers the essential items: both modes, DTI defaults, PMI condition, the returned field names, and the payment/access requirements. The remaining gap is semantic coverage of a few secondary parameters (term length, tax rate, insurance) that the schema itself documents only sparsely.

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

Parameters4/5

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

With only 50% schema description coverage, the description meaningfully compensates: it identifies the income/debts/down-payment/rate drivers, explains that homePrice flips the tool from solving to evaluating, and clarifies the 28/36 DTI defaults and the 20%-down PMI trigger. It leaves termYears, propertyTaxPct, and insurancePerYear unexplained, so the compensation is substantial but incomplete.

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

Purpose4/5

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

The description names the concrete computation ('maximum home price and loan from income, monthly debts, down payment and rate') and spells out what the result contains (monthlyBudget, limitedBy, PITI breakdown). The question-style opening ('How much house can I afford') is slightly less crisp than an imperative verb, and no sibling differentiation is offered, but purpose is unmistakable.

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

Usage Guidelines4/5

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

It explicitly defines the two invocation modes: default behavior solves for maximum price, while 'Give homePrice instead to get the monthly cost and the income needed' selects the alternative evaluation path. It also states the default DTI limits (28/36). There are no explicit when-not conditions, but the mode switch is the only real decision an agent faces here.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources