Skip to main content
Glama

Mortgage Rates API - US, UK, Canada, Eurozone Official Data

mortgage_rates_api
Read-onlyIdempotent

Official mortgage rates as JSON, no API key: US 30-year and 15-year fixed (Freddie Mac PMMS, weekly since 1971), Canada 1/3/5-year conventional + prime (Bank of Canada), UK 2/3/5/10-year fixed and variable (Bank of England) and the cost of borrowing for house purchase in 21 euro countries by fixation period (ECB). Latest with change and 1-year change, history, cheapest-country compare. Monitor mode returns only new publications. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/mortgage-rates-api.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "latest",
      "sort": "country",
      "country": [
        "US",
        "GB",
        "CA",
        "DE"
      ],
      "frequency": "native"
    },
    "name": "mortgage_rates_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNolatest = newest rate of every country/product with previous value, change and 1-year change; history = past observations of the chosen countries (needs Country); compare = one headline rate per country sorted cheapest first (US 30-year fixe
sortNoFor latest: country (default), rate (cheapest first), rate_desc, change (biggest fall first).
limitNoMaximum rows returned for history (newest kept). Between 1 and 20000.
countryNoISO country codes, for example US, GB, CA, DE, FR, ES, IT, NL. UK, EA (euro area = U2) and full names like Germany also work. Empty = all 25 (latest/compare). Required for history.
endDateNoFor history: last date, YYYY-MM-DD or YYYY-MM. Default today.
productNoOptional filter: 30y-fixed, 15y-fixed, 5-1-arm, 1y-fixed, 2y-fixed, 3y-fixed, 5y-fixed, 10y-fixed, 2y-fixed-95ltv, 2y-variable, tracker, all-fixation, floating-1y, 1-5y-fixed, 5-10y-fixed, over-10y-fixed, prime-rate, policy-rate. US: 30y-fi
frequencyNoFor history: native (weekly for US/Canada, monthly for UK/euro), monthly or yearly (last observation of each period).
startDateNoFor history: first date, YYYY-MM-DD or YYYY-MM. Default = full history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent, but the description adds substantially more: a 5 calls/day free quota per IP, paid options via Radar API key (X-API-Key header) or $0.02/call through x402, and a monitor mode that returns only new publications. The only gap is that freshness/latency of the underlying series and error behavior under quota exhaustion are not spelled out.

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?

Front-loaded with the core purpose and coverage before pricing/auth details, and nearly every clause carries actionable information. It is a long run-on sentence, and the pricing URLs plus monthly-price detail are the least essential parts, but they do serve the access-requirement question.

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?

With 8 all-optional parameters and no output schema, the description does the right work: it explains what each mode returns (change, 1-year change, cheapest-first comparison) and how to obtain access. Remaining gaps are minor — no explicit mention of response pagination beyond 'limit' or of what an empty result means.

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?

Schema coverage is 100%, so the schema already carries most parameter meaning (mode, sort, limit bounds, country codes, product tokens, date formats, native vs monthly frequency). The description still adds value beyond the schema by surfacing the monitor mode, which the schema's mode field does not enumerate, and by explaining the compare output ordering in agent terms.

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?

States a specific resource (official mortgage rates) with concrete coverage per region: US 30y/15y Freddie Mac PMMS since 1971, Canada Bank of Canada 1/3/5-year + prime, UK BoE 2/3/5/10-year, and ECB cost of borrowing for 21 euro countries. An agent can immediately tell this apart from sibling rate tools like central_bank_rates_api or treasury_yields_api by the mortgage-specific product vocabulary.

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?

Describes the distinct usage modes inline (latest vs history vs cheapest-country compare vs monitor-only-new-publications), which tells the agent when each retrieval pattern applies. It does not explicitly exclude or redirect to a sibling tool, so it falls short of a full when/when-not statement.

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