Skip to main content
Glama

Money Sums

Yearly cost of a short loan repaid at once

loan.one_repayment
Read-only

Use this when someone borrows an amount and repays a single larger sum after some days, as with a phone or app loan, a salary advance or a loan from a moneylender, and asks what rate that is a month or a year (for example "I borrowed 1,000 and must repay 1,150 in 30 days"). Do not use it for a loan repaid in instalments (use loan.instalments), and do not use it to judge a lender.

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": {
      "amount": "<amount>",
      "repay": "<repay>",
      "days": "<days>"
    },
    "name": "loan.one_repayment"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesHow many days until it must be repaid.
repayYesThe whole amount to be paid back, including interest and any fees added to it.
amountYesThe amount borrowed.
currencyNoThe currency, as its three-letter code (GHS, NGN, KES, ZAR...). Only labels the answer; leave out if unknown.
upfront_feesNoFees taken from the loan when it is paid out, as an amount. Leave out if none.

Output Schema

NameRequiredDescriptionDefault
costYes
daysYes
noteYes
repayYes
currencyNo
explore_urlNo
how_countedYes
amount_borrowedYes
amount_receivedNo
monthly_rate_percentNo
cost_percent_of_amountNo
yearly_rate_simple_percentYes
yearly_rate_compounded_percentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already establish that this is a safe, closed-world, read-only calculation, so the description need not restate that. What it omits is the calculation convention itself — whether the annualised rate is simple or compound, nominal or effective, and how upfront_fees enter the rate — which is the one behavioural fact that changes the answer. The 'do not use it to judge a lender' line adds useful scope framing but is a boundary, not a computational disclosure.

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?

The trigger condition is front-loaded in the opening clause, and the two prohibitions are packed into one short closing sentence with no filler. The main sentence is long and carries several scenario examples that could be trimmed, but every clause still does routing work.

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?

With an output schema present, the description does not need to explain return values, and it covers the caller's intent, the input shape via an example, and the sibling boundary. The remaining gap is the interest convention assumed by the calculation, which matters for a financial rate tool but is a single missing detail rather than a structural omission.

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%, so all five parameters, including the currency enum and upfront_fees, are already documented. The description contributes a concrete mapping of the example numbers onto amount, repay and days, which aids interpretation, but it never mentions upfront_fees or currency and adds no format or constraint detail beyond the schema. Baseline 3 applies.

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 names the exact scenario (a single larger repayment after some days) and the question answered (what rate that is per month or per year), with a concrete worked example. It explicitly distinguishes itself from loan.instalments, so an agent can route between the two without opening either schema.

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?

It gives a clear positive trigger (phone/app loan, salary advance, moneylender loan, asking for a monthly or yearly rate) and two explicit exclusions: instalment loans go to loan.instalments, and it must not be used to judge a lender. When-to-use, when-not-to-use, and the named alternative are all present.

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