Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_bank_loan_compare

Read-onlyIdempotent

Compare two fixed-rate amortizing loan offers, including upfront fee and total scheduled repayment. 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>",
      "rate_a_pct": "<rate_a_pct>",
      "months_a": "<months_a>",
      "rate_b_pct": "<rate_b_pct>",
      "months_b": "<months_b>"
    },
    "name": "api_bank_loan_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
fee_aNofee a; see operation description for units and format
fee_bNofee b; see operation description for units and format
months_aYesmonths a; see operation description for units and format
months_bYesmonths b; see operation description for units and format
principalYesprincipal; see operation description for units and format
rate_a_pctYesrate a pct; see operation description for units and format
rate_b_pctYesrate b pct; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful context beyond that: a per-call cost of 0.01 USDC on Base x402 and the X-Provider-Key header requirement. It does not address error/refund behavior on paid calls or how partial provider credentials affect the result, keeping this at a solid 3 rather than higher.

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 the tool computes, followed by the payment and auth facts. Zero filler; the second sentence is dense but each clause (cost, chain, header) carries distinct operational information.

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

Completeness3/5

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

For a 7-parameter paid calculator with no output schema, the description covers the commercial model and hints at the returned fields (upfront fee, total scheduled repayment). It is incomplete on input units and on what exactly the comparison returns besides those two figures, both of which an agent needs to craft a correct call and interpret the result.

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 nominally 100%, but every property description is a placeholder that defers units and format to the operation description, and the description never supplies them. Param names imply percentages for rate_a_pct/rate_b_pct and months for durations, and 'upfront fee' maps to fee_a/fee_b, but an agent cannot tell whether rates are 5.5 or 0.055, or whether principal is a currency amount. Baseline 3 for full coverage, with the gap noted.

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 specific verb and resource (compare two fixed-rate amortizing loan offers) and scopes the outputs it covers: upfront fee and total scheduled repayment. It implicitly separates itself from the single-loan sibling api_finance_loan_amortization, but never names that sibling or states the distinction outright.

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 implied by 'compare two ... loan offers' and the note about X-Provider-Key credentials for customer-owned providers, which signals when that header applies. There is no explicit when-to-use/when-not guidance and no reference to the alternative api_finance_loan_amortization for single-loan calculations.

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