Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_finance_loan_amortization

Read-onlyIdempotent

Generate amortizing-loan monthly payment, interest total and sample schedule from principal, annual rate and months. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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>",
      "annual_rate_pct": "<annual_rate_pct>",
      "months": "<months>"
    },
    "name": "api_finance_loan_amortization"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthsYesRepayment months from 1 to 600
principalYesLoan principal
annual_rate_pctYesNominal annual interest percent

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open world), and the description adds genuinely new operational context: a per-call cost of 0.01 USDC via Base x402 and an X-Provider-Key header path for customer-owned credentials. These are the two facts an agent most needs before invoking a metered endpoint. The vague qualifier "where needed" on the header is the only weak spot.

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 sentences, front-loaded with what is computed and from what inputs, with the operational/payment detail demoted to the second sentence. Dense but every clause carries information; only "where needed" is filler-adjacent.

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?

There is no output schema, so the description helpfully enumerates the return shape (payment, total interest, sample schedule). Combined with the cost and credential handling, an agent has enough to call it correctly; it stops short of describing schedule granularity or rounding conventions.

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% (including the 1–600 month range), so the schema already documents every parameter fully. The description only restates the three inputs in prose ("principal, annual rate and months") without adding units, constraints, or edge-case meaning beyond what is structured. Baseline 3 applies.

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 pairs a specific verb ("Generate") with concrete outputs ("monthly payment, interest total and sample schedule") and the three inputs that drive them, so the purpose is unambiguous. It does not explicitly differentiate itself from near-neighbors like api_bank_loan_compare or api_investment_return, which keeps it below a 5.

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: an agent can infer this is the right tool when it needs an amortization schedule from principal/rate/term, but there is no explicit when-to-use or when-not-to-use statement and no named alternative. The payment note tells you how to call it, not when to prefer it.

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