Skip to main content
Glama

TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures

Future Value

workflow.run_future_value
Read-only

Future value of a starting sum, regular contributions, or both, grown at a fixed rate: what savings or an investment reach after a number of years. annualRate is a fraction (0.07 = 7%) split into periodsPerYear equal periods the nominal way (rate per period = annualRate / periodsPerYear); years x periodsPerYear is the number of periods, which must be whole when a payment is given. Contributions are level and made at the end of each period, or at the start with paymentTiming "begin". A fixed assumed rate, not a forecast and not a market-return simulation (for a range of outcomes use workflow.run_monte_carlo). Edge cases: annualRate from -1 to 100 as a fraction (0.05 is 5%) with the rate per period above -100%; years 0 to 1000; periodsPerYear a whole number 1 to 365 (default 1); paymentTiming end (default) or begin; when a payment is given, years times periodsPerYear must be a whole number. A result too large to represent is an error. Not covered: a rate that changes over time, uneven or growing contributions, inflation, taxes and fees, and any guarantee that the rate is earned. Use when user asks "what will $10,000 plus $500 a month be worth in 30 years at 7%?" or "how much will I have after 10 years of saving?". Returns: futureValue, fvOfPresentValue, fvOfPayments, growthFactor, ratePerPeriod, periods, totalContributions, interestEarned, effectiveAnnualRate.

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": {
      "annualRate": "<annualRate>",
      "years": "<years>"
    },
    "name": "workflow.run_future_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsYesLength in years, 0 to 1000 (fractions allowed for a lump sum; with payments years x periodsPerYear must be a whole number)
paymentNoLevel contribution per period. Default 0
annualRateYesAnnual growth rate as a fraction (0.07 = 7%); may be zero or negative, but the rate per period must stay above -100%
presentValueNoStarting amount, in any currency. Default 0
paymentTimingNo"end" (default) or "begin" (each contribution one period earlier)
periodsPerYearNoCompounding and contribution periods per year, 1 to 365. Default 1 (12 = monthly)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/openWorldHint=false/destructiveHint=false, but the description adds genuine behavior: contributions are level and end-of-period unless paymentTiming is "begin", the rate is a fixed assumption rather than a forecast, and an unrepresentable result is an error. It does lose some points because the "Edge cases" run largely restates numeric bounds the schema already declares, and nothing is said about outcome magnitude or when an error is returned.

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?

It is front-loaded: definition, rate convention, timing convention, exclusions, examples, then return fields. However, the fraction notation is stated twice (0.07 = 7% then 0.05 is 5%) and the long "Edge cases" block duplicates schema bounds nearly verbatim, so it is denser than it needs to be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by enumerating the returned fields (futureValue, fvOfPayments, interestEarned, ratePerPeriod, periods, etc.). Combined with the assumption disclosure and edge cases, an agent has everything needed to call this correctly for a 6-parameter tool.

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 coverage is 100%, so the baseline is 3; the description earns above baseline by explaining the nominal-rate convention (rate per period = annualRate / periodsPerYear) and the coupling constraint that years x periodsPerYear must be whole when a payment is present. Those are semantic rules an agent could not infer from the individual property descriptions alone.

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?

"Future value of a starting sum, regular contributions, or both, grown at a fixed rate" gives a specific verb+resource plus the exact scope (lump sum, annuity, or both). It distinguishes itself from the nearest sibling by naming workflow.run_monte_carlo for outcome ranges, so an agent can route without opening a schema.

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

Usage Guidelines5/5

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

It supplies concrete trigger utterances ("what will $10,000 plus $500 a month be worth in 30 years at 7%?") and an explicit alternative for a different need (run_monte_carlo for a range of outcomes). The "Not covered" sentence enumerates the cases that should be rejected or routed elsewhere: time-varying rates, uneven/growing contributions, inflation, taxes and fees.

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.