Skip to main content
Glama

Home Buyer Nerd: UK stamp duty and mortgages

UK mortgage payment

uk_mortgage_payment
Read-onlyIdempotent

Calculates a UK mortgage payment from a loan (or price and deposit), interest rate and term: monthly payment, total interest, total cost, loan to value, yearly balances and the effect of overpayments. Repayment or interest-only. Exact penny maths, so prefer it to estimating. The rate is the one you supply.

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>",
      "years": "<years>"
    },
    "name": "uk_mortgage_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
loanNoAmount borrowed in pounds. Give this, or price and deposit.
typeNorepayment
priceNoProperty price in pounds. With deposit it gives the loan; on its own it gives loan to value.
yearsYesTerm in years.
depositNoDeposit in pounds. Used with price.
lumpSumNoOne-off extra payment at the start (repayment only).
ratePctYesAnnual interest rate as a percentage, e.g. 4.5.
monthlyOverpaymentNoExtra paid each month (repayment only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds two genuinely useful behavioral facts: the arithmetic is exact to the penny (so results are authoritative rather than approximate), and the rate used is the one supplied rather than a fetched market rate. It does not describe output shape or rounding conventions, which matters given there is no output schema, so this goes beyond annotations but not far.

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?

Two compact sentences are front-loaded with the calculation and its outputs, with no filler or repetition. The trailing 'The rate is the one you supply' is slightly cryptic in isolation but earns its place by pre-empting an assumption about live rate lookup.

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

Completeness5/5

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

With no output schema and eight parameters, the description carries the burden well: it enumerates the returned figures, both mortgage modes, the price/deposit relationship, and the overpayment modelling. An agent has enough to call it correctly and to know what comes back.

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 coverage is 88%, so the baseline is 3 and the schema already documents nearly every parameter. The description restates the loan-versus-price-and-deposit alternative and the repayment/interest-only choice, both of which are already in the schema descriptions, and adds no new detail on units, edge cases, or how price alone degrades to an LTV calculation.

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 names a specific verb and resource ('Calculates a UK mortgage payment') and then enumerates the required inputs (loan or price and deposit, rate, term) and every output produced (monthly payment, total interest, total cost, LTV, yearly balances, overpayment effect). An agent can tell immediately that this is a mortgage repayment calculator, distinct in domain from the stamp-duty siblings, without opening the schema.

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?

'Prefer it to estimating' gives one clear directive on when to reach for this tool, and 'Repayment or interest-only' tells the agent both modes exist. However, there is no guidance on when NOT to use it, no prerequisites, and no explicit contrast with the stamp-duty siblings, so the routing guidance is implied rather than complete.

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