Skip to main content
Glama

nestegg-calculators

Required Return

required-return
Read-onlyIdempotent

Annual return needed to grow a starting value to a target over a number of years, optionally with a fixed annual contribution. With no contribution this equals CAGR. Returns a percent, or null when unreachable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endYesTarget ending value.
beginYesStarting value.
yearsYesNumber of years.
annualContributionNoOptional. Amount added each year (default 0).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ratePctNoAnnual rate, percent (null if unreachable).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With readOnlyHint and idempotentHint annotations already present, the description adds valuable behavioral context such as returning a percent or null when unreachable, and that no contribution simplifies to CAGR. It doesn't specify edge conditions for null, but goes beyond annotations.

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?

Three concise sentences, front-loaded with the core purpose, followed by a clarifying note and return format. Every sentence adds value with no redundancy.

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 calculation tool with an output schema, covering inputs, behavior, and output. The only minor gap is not defining 'unreachable' conditions, but this does not prevent correct selection and invocation.

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 parameters are fully documented. The description restates the optional contribution but adds no new parameter-level detail beyond the schema, meriting the baseline score.

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 clearly states the tool computes the annual return needed to grow a starting value to a target over years, with optional contributions. The phrase 'With no contribution this equals CAGR' explicitly distinguishes it from the CAGR sibling and clarifies its scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool, especially by mentioning the optional annual contribution and the CAGR equivalence. However, it does not explicitly contrast with alternatives like required-contribution or give when-not-to-use guidance.

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.