Skip to main content
Glama

ScorpTech x402 Tools

Loan Amortization

loan_amortization
Read-onlyIdempotent

Loan / mortgage amortization: periodic payment, total interest, payoff date and a yearly or full payment schedule (principal, interest, balance) for any rate, term and payment frequency (monthly, bi-weekly, weekly, quarterly, annual). Extra payments per period show months and interest saved. Fixed-rate, level-payment loans. Returns JSON with: payment, paymentWithExtra, numberOfPayments, scheduledPayments, totalInterest, totalPaid, interestToPrincipalPct, withoutExtra. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/loan-amortization

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": {
      "principal": "<principal>",
      "annualRatePct": "<annualRatePct>"
    },
    "name": "loan_amortization"
  }
}

Input Schema

NameRequiredDescriptionDefault
scheduleNoSchedule detail (full is capped at 600 rows)yearly
principalYesAmount borrowed
startDateNoFirst payment date YYYY-MM-DD (for payoff date)
termYearsNoTerm in years (or use termMonths)
termMonthsNoTerm in months
extraPaymentNoExtra principal paid every period
annualRatePctYesNominal annual interest rate in percent
paymentsPerYearNoPayment frequency

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 cover read-only, idempotent, non-destructive, open-world. The description adds genuinely non-structured behavior: the $0.002 USDC per-successful-call price via x402 on Base or Solana, plus the equivalent HTTPS endpoint — material facts for an agent deciding whether to call. It does not discuss latency, error/refund behavior on failed calls, or the 600-row truncation (left to the schema).

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 purpose and outputs, then constraints, then pricing/hosted endpoint — a sensible priority order with no filler sentences. It is dense, and the explicit 'Returns JSON with: ...' field dump is on the long side, but each item is informative given there is no output schema.

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 no output schema, the description correctly carries the return-shape burden by naming the key fields (payment, paymentWithExtra, totalInterest, scheduledPayments, withoutExtra). Combined with 100%-covered parameters, an agent has nearly everything to call it correctly; the only gaps are currency/rounding assumptions and how termYears and termMonths interact when both are supplied.

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 per the rubric the baseline is 3. The description adds marginal meaning — that extraPayment translates into 'months and interest saved' in the output, and that frequency options include monthly/bi-weekly/weekly/quarterly/annual (noting it omits semi-monthly and semi-annual, which only the enum reveals). It does not clarify the termYears-vs-termMonths precedence or what startDate does when omitted.

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?

Opens with a specific verb+resource ('Loan / mortgage amortization') and immediately enumerates what is computed: periodic payment, total interest, payoff date, and a yearly or full payment schedule. It also scopes the input space (any rate, term, frequency) and the loan type (fixed-rate, level-payment), so an agent knows exactly what this tool produces.

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 'Fixed-rate, level-payment loans' implicitly tells the agent when this tool applies and excludes ARM/interest-only cases, and 'Extra payments per period show months and interest saved' hints at the extraPayment use case. However, there is no explicit when-not guidance and no mention of the loan_apr sibling, which an agent would need to route between cost/APR questions and amortization questions.

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