Skip to main content
Glama

ConvertIt.pro — Calculators, Unit Converters & US Hardscape Catalog

Return on Investment (ROI) & Annualized CAGR Calculator

calculate_roi
Read-onlyIdempotent

Compute net profit/loss, total return percentage, annualized CAGR, and average annual/monthly return over an investment period. Canonical page: https://convertit.pro/roi-calc

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": {
      "initialInvestment": "<initialInvestment>",
      "finalValue": "<finalValue>"
    },
    "name": "calculate_roi"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNo
monthsNo
finalValueYes
initialInvestmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare this a safe, read-only, idempotent, closed-world computation, so the description does not need to restate safety. What it does add is the set of computed outputs, which is valuable because no output schema exists; however, it says nothing about the years/months interaction, rounding or unit conventions of the returned 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?

One front-loaded sentence enumerating outputs, with no filler. The trailing canonical URL adds little value for an agent and is the only wasted element.

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 output enumeration partly compensates for the absent output schema, which is the main thing an agent needs here. But with zero parameter documentation and an ambiguous years/months period model, an agent could easily mis-construct the period argument.

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 0% for all four parameters, so the description carries the full burden. The phrase 'over an investment period' loosely gestures at 'years' and 'months' but never explains how the two combine (are they additive, does months override years, what does the default of years=0/months=0 mean), nor that initialInvestment uses an exclusive minimum.

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 specific verb ('Compute') with a precisely enumerated set of outputs (net profit/loss, total return %, annualized CAGR, average annual/monthly return) scoped to an investment period, which clearly separates it from siblings like calculate_compound_interest or calculate_margin_markup. It does not explicitly name or contrast those siblings, so it stops short of 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 guidance on when to use this versus calculate_compound_interest, calculate_break_even, or calculate_margin_markup, and no prerequisites (e.g. requires initialInvestment > 0) are stated. The only 'extra' sentence is a canonical URL, which does not help tool selection.

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