Skip to main content
Glama

Amaltash Investment & Retirement Calculators

S&P 500 Return Calculator

sp500_since_date
Read-onlyIdempotent

S&P 500 return calculator with an interactive chart. Shows what a set amount in the S&P 500 would have become between two years from 1928 to 2025, using real yearly returns. It also gives the amount put in after inflation and the worst year in the span. People ask for it as "s&p 500 calculator", "s&p 500 investment calculator" or "s&p 500 return 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": {
      "amount": "<amount>",
      "cadence": "<cadence>",
      "from_year": "<from_year>",
      "to_year": "<to_year>"
    },
    "name": "sp500_since_date"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesDollars invested each time.
cadenceYesHow often the money goes in: day, week, month, year, or once.
to_yearYesLast year, included, from 1928 to 2025. Cannot be before from_year.
from_yearYesFirst year, from 1928 to 2025.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, non-destructive, closed-world), so the bar is lower, and the description still contributes real behavioral detail: real yearly returns only from 1928-2025, and the specific outputs (final amount, inflation-adjusted amount, worst year in span). Gaps remain: no statement about precision, rounding, or what happens on invalid year ordering beyond the schema note. The 'interactive chart' phrasing describes a UI rather than what a tool call returns.

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 first two sentences are front-loaded and information-dense. The third sentence is search-alias keyword stuffing that repeats the tool's own name three times, and 'interactive chart' is padding an agent cannot act on. Trimming to two sentences would lose nothing.

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?

For a 4-required-parameter read-only calculator with no output schema, the description supplies enough: the input domain (1928-2025, real yearly returns) and the three return values an agent would report. Missing only edge-case behavior (from_year after to_year, very short spans) which the schema partially covers.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description adds a modest amount by clarifying that the amount is invested periodically and that results span two years inclusive in range. It does not, however, explain the cadence enum's effect (e.g. that 'once' is a lump sum versus recurring contributions), which is the least obvious parameter.

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 and resource (S&P 500 return calculator) and spells out the computation: what a set amount would have become between two years using real yearly returns, plus inflation-adjusted amount and worst year. That is well beyond a tautology and is distinguishable from generic calculators like calculate_cagr, though it never names a sibling or explicitly excludes an alternative.

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?

Usage is only implied: the 1928-2025 window and the 'set amount' framing tell an agent the situation it fits, and the alias list ('s&p 500 calculator', 's&p 500 investment calculator') helps with selection. There is no explicit when-to-use guidance and no routing away from near-neighbours such as dca_vs_lump_sum or calculate_cagr.

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