Skip to main content
Glama

Student Loan RAP Calculator

Compare RAP with the Tiered Standard and 10-year Standard plans

compare_rap_vs_standard
Read-onlyIdempotent

Compares the new Repayment Assistance Plan with the Tiered Standard plan (P.L. 119-21: 10 years under $25,000, 15 under $50,000, 20 under $100,000, 25 at $100,000 or more) and, for borrowers with no loan made on or after July 1, 2026, the 10-year Standard plan. Returns monthly payment, months, total paid, interest waived, principal match and the amount cancelled after 360 RAP payments, assuming constant income and on-time payments. Names the plan with the lowest monthly payment and the lowest total paid across all plans shown, and says which count for PSLF (RAP and 10-year Standard yes, Tiered Standard no; HEA 455(m)(1)(A)).

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": {
      "balance": "<balance>",
      "rate": "<rate>",
      "agi": "<agi>"
    },
    "name": "compare_rap_vs_standard"
  }
}

Input Schema

NameRequiredDescriptionDefault
agiYesAdjusted gross income in dollars from the most recent tax return (borrower plus spouse, unless married filing separately).
rateYesWeighted annual interest rate in percent.
balanceYesTotal Direct Loan principal in dollars.
dependentsNoNumber of IRC sec. 152 dependents claimed. Default 0.
has_loan_on_or_after_2026_07_01NoTrue if any Direct Loan (including a consolidation loan) was made on or after July 1, 2026. Then the old 10-year Standard plan is not available. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantive behavioral context beyond them: the modeling assumptions (constant income, on-time payments), the fixed 360-payment RAP horizon, what is measured (interest waived, principal match, amount cancelled), and the PSLF treatment of each plan with a statutory citation. It also discloses a real limitation of the results by framing them as assumption-based projections.

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?

It is a single dense paragraph that front-loads the comparison before detailing outputs and PSLF outcomes, so the important content lands first. The bracketed income-tier enumeration and the HEA citation are heavy, but each carries information the agent would otherwise have to infer.

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

Completeness5/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 carries the burden of describing return values, and it does so thoroughly: monthly payment, months, total paid, interest waived, principal match, cancelled balance, plus the lowest-monthly and lowest-total plan labels and PSLF flags. For a five-parameter read-only calculator, nothing an agent needs to invoke or interpret it is missing.

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 100%, so the baseline is 3, but the description adds meaning by showing how income drives the Tiered Standard term ($25,000/10 years through $100,000+/25 years) and how the loan-date flag suppresses the 10-year Standard option. That connects the agi and has_loan_on_or_after_2026_07_01 inputs to computational consequences rather than merely restating their definitions.

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?

The description opens with a specific verb and resource ("Compares the new Repayment Assistance Plan with the Tiered Standard plan ... and ... the 10-year Standard plan"), making the comparative scope unmistakable. It is clearly distinguished from the sibling calculate_rap_payment, which by name handles a single plan rather than a side-by-side comparison.

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

Usage Guidelines4/5

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

It gives a clear eligibility condition that determines which plans appear (Tiered Standard always; 10-year Standard only when no loan was made on or after July 1, 2026), which tells the agent when this tool's output will include the third column. It never explicitly says to prefer calculate_rap_payment for single-plan figures or names exclusions, so the routing guidance is implicit rather than spelled out.

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.