Skip to main content
Glama

ScorpTech x402 Tools

Loan Apr

loan_apr
Read-onlyIdempotent

True cost of a loan including fees: the US Truth in Lending APR (Regulation Z actuarial method) and the EU APRC (Consumer Credit Directive annual effective rate), plus the payment, amount financed, finance charge and total of payments for a level-payment loan. Handles origination fees and points paid upfront or rolled into the loan, a balloon payment, and weekly to annual payments. Compares the note rate with the real borrowing rate so offers can be ranked. Returns JSON with: payment, finalPayment, numberOfPayments, paymentsPerYear, amountFinanced, loanBalance, prepaidFinanceCharges, feesFinanced. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/loan-apr

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": {
      "amount": "<amount>",
      "ratePct": "<ratePct>",
      "termMonths": "<termMonths>"
    },
    "name": "loan_apr"
  }
}

Input Schema

NameRequiredDescriptionDefault
feesNoPrepaid finance charges (origination, points, broker fees)
amountYesLoan amount (principal before financed fees)
pointsNoDiscount points as % of the loan amount (added to fees)
balloonNoExtra amount due with the last payment
paymentNoUse this payment instead of computing it
ratePctYesNominal annual note rate
termMonthsYes
feesFinancedNotrue: fees are added to the loan balance; false: paid upfront / deducted from proceeds
paymentsPerYearNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare it read-only, idempotent, open-world and non-destructive, so the description carries real extra weight: it discloses the per-call price ($0.002 USDC via x402 on Base or Solana), the parallel HTTPS endpoint, and the regulatory methodology used. It also describes how fees, points and balloons are treated, which is behavioral context the annotations cannot supply.

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 definition is front-loaded with what the tool computes and what it returns, and the pricing/endpoint details sit at the end where they belong. It is on the long side and the returned-field list partly duplicates what the description already described in prose, but no sentence is purely 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?

With nine parameters, no output schema and a non-trivial regulatory calculation, the description supplies the return field list and the treatment of fees, points and balloons, which is enough for correct invocation. Minor gaps remain around edge-case behavior (e.g. when the supplied `payment` conflicts with amount/rate/term) but nothing that blocks a correct call.

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 78%, above the point where the schema does most of the work, yet the description still adds meaning: fees and points may be paid upfront or rolled in, balloon amounts fall due with the last payment, and payment frequencies span weekly to annual. The `payment` override parameter and `termMonths` bounds are left to the schema, which keeps this from a 5.

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 a precise computation (US Truth in Lending APR under Reg Z actuarial method and EU APRC) and enumerates the derived outputs (payment, amount financed, finance charge, total of payments). It is unmistakably a loan-APR calculator, though it never explicitly contrasts itself with the sibling loan_amortization tool, so it stops short of full sibling differentiation.

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?

Usage is only implied via the phrase 'Compares the note rate with the real borrowing rate so offers can be ranked,' which suggests a shopping/ranking context. There is no explicit when-to-use or when-not-to-use guidance, and no routing to loan_amortization or any alternative for schedule-style output.

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