Skip to main content
Glama

Amaltash Investment & Retirement Calculators

DCA vs Lump Sum Calculator

dca_vs_lump_sum
Read-onlyIdempotent

Dollar-cost averaging vs lump sum calculator with an interactive chart. Compares investing a fixed amount at each price in a list with investing the same total at the first price, both valued at the last price. Use it when the person provides the price series.

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_per_period": "<amount_per_period>",
      "prices": "<prices>"
    },
    "name": "dca_vs_lump_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
pricesYesOne price per period, oldest first, from 1 to 120 prices.
amount_per_periodYesDollars invested at each price, from 0 to 1,000,000,000.

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds real behavioral value by describing the comparison model (fixed amount per price vs same total at first price, both valued at the last price) and that it emits an interactive chart, not just numbers. It stops short of stating edge-case behavior for a single price or how the two results are 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?

Three short sentences, front-loaded with the tool's identity and then the mechanics, then the usage condition. Every clause is relevant; the only mild excess is the "with an interactive chart" clause, which is still useful output information.

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?

This is a simple two-parameter, read-only computation with no output schema and no nested structures, and the description explains the calculation model well enough to call it correctly. Minor gaps remain around the shape of the returned comparison and handling of degenerate inputs like a single price.

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 both parameters are already documented with types, ranges, and the 1–120 item limit, giving a baseline of 3. The description's phrasing loosely maps to the two parameters (a per-period amount and an ordered price list, with the last price as the valuation point) but adds no syntax or format detail beyond the schema.

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 states a specific verb and resource — comparing dollar-cost averaging against a lump-sum investment — and spells out the exact mechanics: a fixed amount at each price versus the same total at the first price, both valued at the last price. An agent can tell this is a price-series backtest calculator. It does not explicitly distinguish itself from plausible siblings such as replay_past_investing, which keeps it at a 4.

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?

"Use it when the person provides the price series" gives a concrete triggering condition tied to the required input. No exclusions or named alternatives are offered, so an agent must infer when a different investing tool is the better fit.

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