Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Loan Payment

calculate_loan_payment
Read-onlyIdempotent

Calculate monthly loan payment for any generic loan. Returns: {principal, monthly_payment, total_cost, total_interest}.

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>",
      "annual_rate": "<annual_rate>",
      "months": "<months>"
    },
    "name": "calculate_loan_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthsYesLoan duration in months
principalYesLoan amount
annual_rateYesAnnual interest rate in %

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result (fields depend on the tool).
sourceNoLegal or official source.
formulaNoMethod used.
reference_urlNomacalculatriceenligne.com page to share.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / formula / description
      Previous value: -"Human-readable formula or method used (e.g. \"I=P·r·t\", \"Magnus formula\")."New value: +"Method used."
    • changedOutput schema / properties / reference_url / description
      Previous value: -"Link to a calcul2 page documenting the calculation in detail."New value: +"macalculatriceenligne.com page to share."
    • changedOutput schema / properties / result / description
      Previous value: -"Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools)."New value: +"Computed result (fields depend on the tool)."
    • changedOutput schema / properties / source / description
      Previous value: -"Authoritative source for the rule or formula (e.g. \"Article 197 CGI\", \"NF DTU 21\")."New value: +"Legal or official source."
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety behavior is fully covered by structured data. The description adds nothing beyond that: the only extra sentence enumerates return fields, which duplicates the existing output schema. It omits behavioral facts that matter, such as the amortization formula used and rounding/precision of the payment figure.

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 short sentences, front-loaded with the purpose, with no filler or rambling. The second sentence listing the four return fields does not earn its place because an output schema already exists, which keeps this from a 5.

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 simple three-parameter calculator with complete schema descriptions, full annotations, and an output schema, most of what an agent needs is already in structured fields. However, financial correctness depends on unstated assumptions (amortization type, rate handling, rounding) that neither the schema nor the description covers, leaving a meaningful gap.

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%, with each of the three required parameters already documented in the schema along with min/max bounds. The description adds no semantic detail about how annual_rate is handled (e.g., whether it is divided by 12) or how months interacts with the rate. Baseline 3 is appropriate when the schema carries the full parameter burden.

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 states a specific verb and resource: 'Calculate monthly loan payment' for 'any generic loan'. An agent can immediately tell this computes a loan amortization payment rather than a geometric area or a tax, so it is distinguishable from the sibling calculators. It stops short of explicitly naming how it differs from related tools like calculate_compound_interest, which is why it is not a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no statement of the crucial assumptions (fixed-rate, fully amortizing, no fees or insurance, currency-agnostic). The phrase 'for any generic loan' gestures at scope but does not tell the agent which real-world loan scenarios are out of scope. The agent must infer applicability entirely.

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.