Skip to main content
Glama

loan_amortization

Calculate loan amortization schedules showing payment amounts, interest, and principal breakdown for any loan principal, annual rate, and term.

Instructions

Generate a loan amortization schedule for given principal, rate and term.

Args: principal: Loan principal amount. annual_rate: Annual interest rate (fractional, e.g. 0.05 for 5%). years: Term in years. payments_per_year: Payment frequency (default 12).

Returns: dict: Schedule rows and totals including payment amount, interest, principal breakdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearsYes
principalYes
annual_rateYes
payments_per_yearNo
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the return shape ('dict: Schedule rows and totals including payment amount, interest, principal breakdown') and parameter format (e.g., annual_rate is fractional). However, it omits assumptions like payment timing or rounding, which are small gaps for a calculation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and well-organized: a one-sentence summary, an Args block, and a Returns block. Every sentence contributes valuable information without wasted words.

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?

The tool is moderately complex, and the description explains the return value at a high level but not the exact structure of the schedule rows. Since there is no output schema, a bit more detail would improve completeness, but the core input/output semantics are adequately covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully compensates by explaining each parameter: principal amount, annual rate as fractional, term in years, and payment frequency default. This adds critical meaning beyond raw schema property names.

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 clearly states the tool's function: 'Generate a loan amortization schedule for given principal, rate and term.' This is a specific verb+resource combination and distinguishes it from sibling financial tools like dcf_analysis or break_even_analysis.

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?

The description implies usage when a loan amortization schedule is needed, but provides no explicit guidance on when to prefer this over alternatives or any exclusions. It simply states what the tool does without contextualizing alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mbeps/excel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server