Skip to main content
Glama

calculate_simple_interest

Read-onlyIdempotent

Simple interest calculator

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>",
      "annualRatePercent": "<annualRatePercent>",
      "years": "<years>"
    },
    "name": "calculate_simple_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsYesNumber of years, for example: 30.
principalYesStarting amount owed or invested as a plain number, for example: 250000.
startDateNoOptional start date, as YYYY-MM-DD. Adds startDate and maturityDate (the date the total amount is reached). It only labels the timeline; the amounts do not change.
annualRatePercentYesYearly interest rate in percent, for example: 6.5 for 6.5%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / annualRatePercent / description
      Added value: +"Yearly interest rate in percent, for example: 6.5 for 6.5%."
    • addedInput schema / properties / principal / description
      Added value: +"Starting amount owed or invested as a plain number, for example: 250000."
    • addedInput schema / properties / years / description
      Added value: +"Number of years, for example: 30."
  2. Changed1 schema field changed
    • addedInput schema / properties / startDate
      Added value: +{
      +  "description": "Optional start date, as YYYY-MM-DD. Adds startDate and maturityDate (the date the total amount is reached). It only labels the timeline; the amounts do not change.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered elsewhere. The description adds no behavioral context of its own - it does not state that interest is non-compounding, that amounts are returned in the same currency units, or that startDate only labels a timeline. It does not contradict the annotations, but it contributes nothing beyond them.

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

Conciseness3/5

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

The single sentence is free of waste and is front-loaded, but this is achieved by omission rather than by economy. There is no structure to speak of, and the brevity leaves the definition under-specified.

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?

The tool is a low-complexity pure computation with four fully documented parameters and a complete annotation safety profile, so the burden on the description is modest. Still, one clause clarifying that interest is non-compounding and that startDate is optional and label-only would round out the definition.

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%, and each parameter (including the optional startDate and its timeline-labeling note) is documented in the schema itself. The description adds no semantics on top of that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is "Simple interest calculator," which essentially restates the tool name calculate_simple_interest. It does not differentiate from the sibling calculate_compound_interest or explain what distinguishes simple from compound interest, so a reader gets no more information than the identifier already gives.

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 guidance at all: nothing says to pick this over calculate_compound_interest or calculate_loan, nor any prerequisite or exclusion. Usage is left entirely to inference from the name.

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