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. First observed

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. Beyond that, the description adds real behavioral content: the tool renders an interactive chart and defines the calculation semantics (period-by-period purchases versus a single first-period purchase, both marked to the final price). It does not cover edge behavior such as what happens with a single price or how the two results are labeled, which keeps it below 5.

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 sentences, front-loaded with the comparison mechanic and closed with the usage trigger, with no filler. Minor deduction because the opening clause largely restates the tool name and title, and the 'interactive chart' remark is dropped in without being tied to a return behavior.

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 two-parameter, fully documented, read-only calculator with no output schema, the description supplies the one thing structured fields cannot: what is actually being compared and how each side is valued. An agent can select and call it correctly from this. The remaining gap is that, with no output schema, it does not say what the response contains besides a chart.

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%, and the schema already states that prices are oldest-first with 1-120 entries and that amount_per_period is dollars invested at each price. The description's phrasing ('a fixed amount at each price in a list', 'valued at the last price') reinforces the mapping of both parameters but adds no syntax, ordering, or unit detail beyond what the schema supplies. Baseline 3 for a fully documented two-parameter schema is appropriate.

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 states a precise verb and resource ('Dollar-cost averaging vs lump sum calculator') and then defines the exact comparison: a fixed amount invested at each price in a list versus the same total invested at the first price, both valued at the last price. That mechanism-level detail is enough for an agent to distinguish it from look-alike siblings such as replay_past_investing or plan_recurring_investment without opening any schema.

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?

It gives an explicit trigger condition: 'Use it when the person provides the price series.' That is a clear positive-use signal tied to having a concrete data prerequisite. It stops short of the 5 bar because it names no exclusions (e.g. when there is no historical price list) and points to no alternative sibling for those cases.

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