Skip to main content
Glama

loan

Compute monthly repayment, total interest and total cost for a loan. Pure CPU, instant. Use to compare offers.

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>"
    },
    "name": "loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateNoAnnual interest percent
yearsNoTerm in years
principalYesAmount borrowed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed4 schema fields changed
    • addedInput schema / properties / principal
      Added value: +{
      +  "description": "Amount borrowed",
      +  "type": "number"
      +}
    • addedInput schema / properties / rate
      Added value: +{
      +  "description": "Annual interest percent",
      +  "type": "number"
      +}
    • addedInput schema / properties / years
      Added value: +{
      +  "description": "Term in years",
      +  "type": "number"
      +}
    • addedInput schema / required
      Added value: +[
      +  "principal"
      +]
  4. Added

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose two useful traits: 'Pure CPU, instant', signaling no side effects or external calls. But it omits what happens when the optional rate/years are left out, whether results are approximations, and what the response looks like beyond naming three figures.

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?

Three short sentences with the computational scope front-loaded and nothing redundant. The efficiency is good, though the last sentence about comparing offers is thin enough to border on filler.

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 simple three-parameter calculator with no output schema, naming the returned figures (monthly repayment, total interest, total cost) covers the essentials. The remaining gap is the undefined behavior of the optional parameters when omitted.

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

Parameters2/5

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

Schema description coverage is 100%, so the three parameters are documented in the schema itself; the description adds no parameter meaning beyond it. It also doesn't clarify the significance of rate and years being optional while principal is required, leaving default behavior unknown.

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?

States a concrete verb and resource: 'Compute monthly repayment, total interest and total cost for a loan', and even names the three outputs. It does not, however, differentiate itself from close siblings like loan_calculator, mortgage, and mortgage_calculator, which an agent would see in the same list.

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?

'Use to compare offers' implies a comparison scenario but gives no exclusions, prerequisites, or guidance on when to pick this over loan_calculator or mortgage. The usage context is only hinted at rather than specified.

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