Skip to main content
Glama

Xearno Tools

ROI Calculator

roi
Read-only

Return on investment, simple and annualized — comparable numbers instead of raw bragging. Simple ROI from cost and final value, annualized when you give it a time period — because "we doubled our money" means something completely different over 2 years versus 12.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
costNoTotal invested
yearsNoHolding period (yr)
finalValueNoFinal value (or total returned)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The description goes beyond annotations by explaining the conditional behavior: simple ROI when no years, annualized when years provided. Annotations only indicate readOnlyHint=true, so the description adds valuable behavioral context.

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

Conciseness5/5

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

Two sentences, no wasted words, front-loaded with the main purpose. Every sentence adds value and is well-structured.

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?

The description is complete for a simple calculator: explains what it calculates and the two modes. However, without an output schema, it could mention the result format or units to be fully comprehensive.

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?

All three parameters have descriptions in the input schema, so the bar is at baseline 3. The description adds minimal extra context about the role of 'years' in determining simple vs annualized, but does not significantly enhance parameter understanding.

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 clearly states it calculates simple and annualized ROI, and distinguishes between them based on time period. However, it does not explicitly differentiate from the similar sibling tool 'cagr', which also calculates annualized returns.

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?

The description explains the benefit of comparable numbers and gives a relatable example of why time matters, implying when to use it. But it lacks explicit guidance on when not to use or alternatives.

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