Skip to main content
Glama

Loan Calculator MCP

personal_loan_generate_amortization_schedule

Read-onlyIdempotent

Personal loan period-by-period amortization table (all monthly rows plus payoff summary), even when there are no extra payments. Input: flat loan fields (loan_amount, loan_term_months, interest_rate; defaults to interest_type='daily') plus optional extra_payments (recurring and/or one_time keyed by 1-based period). This is the only personal loan tool that honors extra_payments; extras change the schedule only and do not change APR or finance charge. Do not use personal_loan_generate_disclosure for a table.

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": {
      "loan_amount": "<loan_amount>",
      "loan_term_months": "<loan_term_months>",
      "interest_rate": "<interest_rate>"
    },
    "name": "personal_loan_generate_amortization_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
loan_amountYesGross loan amount (note face principal) in dollars. Must be a positive number (> 0).
days_in_yearNoDays-in-year basis for `daily` interest. Integer >= 1; defaults to 365. Values outside the typical 361-369 range are accepted but reported in the `warnings` array. Ignored when `interest_type` is `"monthly"`.
interest_rateYesAnnual interest rate as a percentage, not a decimal fraction (e.g. `6.5` means 6.5%). Must be >= 0; `0` is allowed for an interest-free loan.
interest_typeNoInterest accrual method: `"daily"` (default; actual-day interest on the outstanding balance, `actual/days_in_year`) or `"monthly"` (nominal monthly rate).daily
extra_paymentsNoOptional extra principal payments.
loan_term_monthsYesLoan term as the number of monthly payments. Integer >= 1 (e.g. 36 for a 3-year loan).
disbursement_dateNoDisbursement (consummation) date in `YYYY-MM-DD` format (e.g. `2024-01-15`). Optional; defaults to today's date (UTC) when omitted.2026-11-29
first_payment_dateNoOptional first payment date in `YYYY-MM-DD` format. Must be strictly after `disbursement_date`. When omitted it defaults to one month after disbursement. A date more than ~14 days from that expected default (an unusually long or short first period) is accepted but reported in the `warnings` array.
prepaid_finance_chargeNoFlat dollar prepaid finance charge (origination or processing fee, 12 CFR § 1026.2(a)(23)) in dollars (`>= 0`). Defaults to `0`. Combined with any percentage fee from `prepaid_finance_charge_percent` and deducted from `loan_amount` to compute `amount_financed`.
prepaid_finance_charge_percentNoPrepaid finance charge (origination fee) as a percentage of `loan_amount` (e.g. `2` means 2%, NOT dollars; 12 CFR § 1026.2(a)(23)). Must be >= 0; defaults to `0`. Deducted from `loan_amount` to compute `amount_financed` and raises the disclosed APR above the note rate.

Output Schema

NameRequiredDescriptionDefault
rowsYesThe per-period rows.
summaryYesAggregate payoff summary.
warningsYesNon-fatal advisories about the inputs (empty when none apply).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / $defs / ExtraPayments / additionalProperties
      Added value: +false
    • changedInput schema / $defs / ExtraPayments / properties / one_time / description
      Previous value: -"One-time extra principal payments (dollars) keyed by 1-based period\nnumber. Keys must fall within `1..=loan_term_months`; keys outside that\nrange are ignored and reported in the `warnings` array. Example:\n`{\"1\": 2000}` adds $2000 of principal to the first payment."New value: +"One-time extra principal payments (dollars) keyed by 1-based period\nnumber. Keys must be `>= 1`; keys beyond the payoff period are ignored\nand reported in the `warnings` array. Example: `{\"1\": 2000}` adds $2000\nof principal to the first payment."
    • addedInput schema / $defs / ExtraPayments / properties / recurring
      Added value: +{
      +  "default": 0,
      +  "description": "A fixed extra principal amount (dollars, >= 0) applied on top of the\nregular payment every period. Defaults to `0`.",
      +  "format": "double",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • removedInput schema / $defs / ExtraPayments / properties / recurring_monthly
      Removed value: -{
      -  "default": 0,
      -  "description": "A fixed extra principal amount (dollars, >= 0) applied on top of the\nregular payment every period. Defaults to `0`.",
      -  "format": "double",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • addedInput schema / properties / extra_payments / default / recurring
      Added value: +0
    • removedInput schema / properties / extra_payments / default / recurring_monthly
      Removed value: -0
    • changedInput schema / properties / first_payment_date / description
      Previous value: -"Optional first payment date in `YYYY-MM-DD` format. Must be strictly\nafter `disbursement_date`. When omitted it defaults to roughly one month\nafter disbursement. A date more than ~14 days from that expected default\n(an unusually long or short first period) is accepted but reported in the\n`warnings` array."New value: +"Optional first payment date in `YYYY-MM-DD` format. Must be strictly\nafter `disbursement_date`. When omitted it defaults to one month after\ndisbursement. A date more than ~14 days from that expected default\n(an unusually long or short first period) is accepted but reported in the\n`warnings` array."
    • addedInput schema / properties / prepaid_finance_charge
      Added value: +{
      +  "default": 0,
      +  "description": "Flat dollar prepaid finance charge (origination or processing fee,\n12 CFR § 1026.2(a)(23)) in dollars (`>= 0`). Defaults to `0`. Combined\nwith any percentage fee from `prepaid_finance_charge_percent` and\ndeducted from `loan_amount` to compute `amount_financed`.",
      +  "format": "double",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / prepaid_finance_charge_percent
      Added value: +{
      +  "default": 0,
      +  "description": "Prepaid finance charge (origination fee) as a percentage of `loan_amount`\n(e.g. `2` means 2%, NOT dollars; 12 CFR § 1026.2(a)(23)). Must be >= 0;\ndefaults to `0`. Deducted from `loan_amount` to compute `amount_financed`\nand raises the disclosed APR above the note rate.",
      +  "format": "double",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
    • removedInput schema / properties / prepaid_finance_charge_rate
      Removed value: -{
      -  "default": 0,
      -  "description": "Prepaid finance charge (origination fee) as a percentage of `loan_amount`\n(e.g. `2` means 2%, NOT dollars). Must be >= 0; defaults to `0`. Deducted\nfrom `loan_amount` to compute `amount_financed` and raises the disclosed\nAPR above the note rate.",
      -  "format": "double",
      -  "type": [
      -    "number",
      -    "null"
      -  ]
      -}
    • removedOutput schema / $defs / AmortizationSummary / properties / months_saved
      Removed value: -{
      -  "description": "Months saved versus the no-extra baseline.",
      -  "format": "uint32",
      -  "minimum": 0,
      -  "type": "integer"
      -}
    • addedOutput schema / $defs / AmortizationSummary / properties / periods_saved
      Added value: +{
      +  "description": "Scheduled periods (months) saved versus the no-extra baseline.",
      +  "format": "uint32",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / $defs / AmortizationSummary / required
      Previous value: -[
      -  "total_interest",
      -  "total_paid",
      -  "payoff_period",
      -  "payoff_date",
      -  "months_saved",
      -  "interest_saved",
      -  "total_extra_principal"
      -]New value: +[
      +  "total_interest",
      +  "total_paid",
      +  "payoff_period",
      +  "payoff_date",
      +  "periods_saved",
      +  "interest_saved",
      +  "total_extra_principal"
      +]
  2. Changed9 schema fields changed
    • changedInput schema / $defs / ExtraPayments / properties / one_time / type
      Previous value: -"object"New value: +[
      +  "object",
      +  "null"
      +]
    • changedInput schema / $defs / ExtraPayments / properties / recurring_monthly / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedInput schema / properties / days_in_year / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / disbursement_date / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / extra_payments / $ref
      Removed value: -"#/$defs/ExtraPayments"
    • addedInput schema / properties / extra_payments / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/ExtraPayments"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / interest_type / $ref
      Removed value: -"#/$defs/InterestType"
    • addedInput schema / properties / interest_type / anyOf
      Added value: +[
      +  {
      +    "$ref": "#/$defs/InterestType"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / prepaid_finance_charge_rate / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  3. Changed4 schema fields changed
    • changedInput schema / $defs / InterestType / oneOf
      Previous value: -[
      -  {
      -    "const": "daily",
      -    "description": "Interest accrues per actual day on the outstanding balance (`actual/days_in_year`,\ndefaulting to `actual/365`). Permissible under 12 CFR 1026.22(b) as long as the\nresulting APR stays within tolerance of the Appendix J actuarial APR.",
      -    "type": "string"
      -  },
      -  {
      -    "const": "monthly",
      -    "description": "Interest accrues per month using the nominal monthly rate (`annual / 12`).",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "daily",
      +    "description": "Interest accrues per actual day on the outstanding balance (`actual/days_in_year`,\ndefaulting to `actual/365`). Default for personal loans, consistent with auto loans.\nPermissible under 12 CFR 1026.22(b) as long as the resulting APR stays within\ntolerance of the Appendix J actuarial APR.",
      +    "type": "string"
      +  },
      +  {
      +    "const": "monthly",
      +    "description": "Interest accrues per month using the nominal monthly rate (`annual / 12`).",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / disbursement_date / default
      Previous value: -"2026-11-28"New value: +"2026-11-29"
    • changedInput schema / properties / interest_type / default
      Previous value: -"monthly"New value: +"daily"
    • changedInput schema / properties / interest_type / description
      Previous value: -"Interest accrual method: `\"monthly\"` (default; nominal monthly rate) or\n`\"daily\"` (actual-day interest on the outstanding balance, `actual/days_in_year`)."New value: +"Interest accrual method: `\"daily\"` (default; actual-day interest on the\noutstanding balance, `actual/days_in_year`) or `\"monthly\"` (nominal monthly rate)."
  4. Changed4 schema fields changed
    • changedInput schema / $defs / InterestType / oneOf
      Previous value: -[
      -  {
      -    "const": "daily",
      -    "description": "Interest accrues per actual day on the outstanding balance (actual/365).\nPermissible under 12 CFR 1026.22(b) as long as the resulting APR stays\nwithin tolerance of the Appendix J actuarial APR.",
      -    "type": "string"
      -  },
      -  {
      -    "const": "monthly",
      -    "description": "Interest accrues per month using the nominal monthly rate (`annual / 12`).",
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "const": "daily",
      +    "description": "Interest accrues per actual day on the outstanding balance (`actual/days_in_year`,\ndefaulting to `actual/365`). Permissible under 12 CFR 1026.22(b) as long as the\nresulting APR stays within tolerance of the Appendix J actuarial APR.",
      +    "type": "string"
      +  },
      +  {
      +    "const": "monthly",
      +    "description": "Interest accrues per month using the nominal monthly rate (`annual / 12`).",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / interest_type / description
      Previous value: -"Interest accrual method: `\"monthly\"` (default; nominal monthly rate) or\n`\"daily\"` (actual-day interest on the outstanding balance, actual/365)."New value: +"Interest accrual method: `\"monthly\"` (default; nominal monthly rate) or\n`\"daily\"` (actual-day interest on the outstanding balance, `actual/days_in_year`)."
    • changedInput schema / properties / loan_amount / description
      Previous value: -"Gross loan amount in dollars. Must be a positive number (> 0)."New value: +"Gross loan amount (note face principal) in dollars. Must be a positive number (> 0)."
    • changedInput schema / properties / prepaid_finance_charge_rate / description
      Previous value: -"Prepaid finance charge (origination fee) as a percentage of `loan_amount`\n(e.g. `2` means 2%). Must be >= 0; defaults to `0`. Reduces the amount\nfinanced and raises the disclosed APR above the note rate."New value: +"Prepaid finance charge (origination fee) as a percentage of `loan_amount`\n(e.g. `2` means 2%, NOT dollars). Must be >= 0; defaults to `0`. Deducted\nfrom `loan_amount` to compute `amount_financed` and raises the disclosed\nAPR above the note rate."
  5. Changed1 schema field changed
    • changedInput schema / properties / disbursement_date / default
      Previous value: -"2026-11-27"New value: +"2026-11-28"
  6. Changed1 schema field changed
    • changedInput schema / properties / disbursement_date / default
      Previous value: -"2026-11-26"New value: +"2026-11-27"
  7. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description adds real behavioral context beyond that: extras affect only the schedule and never the APR or finance charge, and the default interest_type is 'daily'. It stops short of describing warnings/edge-case reporting, but the safety profile is fully covered by structured data.

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 the resource and output, then constraints in priority order (inputs, the extra_payments exclusivity, the sibling exclusion). Dense but nearly every clause carries information; the parenthetical "even when there are no extra payments" is slight padding.

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?

For a 10-parameter tool with full schema and output-schema coverage, the description supplies the differentiating behavior and routing guidance an agent needs. The only remaining gap is that it does not mention the warnings array that the schema flags for out-of-range inputs.

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 baseline is 3. The description restates the flat loan fields and notes extra_payments are recurring and/or one_time keyed by 1-based period, but the schema already documents all of that (including the 1-based keying and defaults), so it adds little new semantic meaning.

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?

"Personal loan period-by-period amortization table (all monthly rows plus payoff summary)" names a specific verb-equivalent operation, the exact resource, and the output shape. It further distinguishes itself from siblings by asserting it is the only personal loan tool that honors extra_payments and by naming personal_loan_generate_disclosure as the tool not to use for a table.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use (produce a schedule, including when there are no extra payments) and explicit when-not ("Do not use personal_loan_generate_disclosure for a table"). It also states the selection criterion against other personal loan tools (extra_payments support), leaving nothing to inference.

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