Skip to main content
Glama
tresor4k

macalc

calculate_loan_payment

Read-onlyIdempotent

Calculate fixed monthly payment for an amortizing loan given principal, annual interest rate, and term in months. Returns monthly payment, total cost, and total interest.

Instructions

Calculate the fixed monthly payment of a generic amortizing loan when the term is expressed in months. Inputs: principal (amount borrowed), annual_rate (annual interest rate in percent), months (term in months). Returns monthly payment, total cost and total interest. Read-only and deterministic. Prefer calculate_mortgage if you want a term in years or an amortization schedule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthsYesLoan duration in months
principalYesLoan amount
annual_rateYesAnnual interest rate in %
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive. The description adds explicit statements 'Read-only and deterministic' and lists the return values (monthly payment, total cost, total interest), providing useful behavioral context beyond annotations.

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?

Two sentences: first sentence states purpose and inputs, second adds returns and sibling guidance. Front-loaded and no extraneous words. Every sentence earns its place.

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?

Despite no output schema, the description specifies the return values. Parameters are fully documented in schema. The description covers the tool's purpose, inputs, outputs, and appropriate use context. No gaps identified.

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 has 100% coverage with descriptions for all three parameters. The description reaffirms the meanings (e.g., 'principal (amount borrowed)') but does not add new information beyond what the schema already provides. Baseline 3 is appropriate.

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 verb ('Calculate'), the resource ('fixed monthly payment of a generic amortizing loan'), and the key condition ('when the term is expressed in months'). It also explicitly distinguishes from the sibling 'calculate_mortgage' which handles years or schedules.

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?

The description explicitly tells when to use this tool (term in months) and when to prefer the sibling 'calculate_mortgage' (term in years or amortization schedule). This is clear usage guidance with 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/tresor4k/macalc-mcp'

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