Skip to main content
Glama

DCA Method — backtests & calculators

Run a real DCA backtest on historical data

run_dca_backtest
Read-onlyIdempotent

Simulates dollar-cost averaging into one asset using dcamethod.com's own engine and historical price data. Returns total invested, final value, profit, CAGR, average buy price, best/worst month and purchase count. Dates outside the available range are clamped to it.

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": {
      "symbol": "<symbol>",
      "amount": "<amount>",
      "frequency": "<frequency>"
    },
    "name": "run_dca_backtest"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesUSD invested per purchase, e.g. 100
symbolYesAsset symbol or name, e.g. 'BTC', 'AAPL', 'gold'
end_dateNoOptional ISO date (YYYY-MM-DD); defaults to latest available
frequencyYesPurchase schedule
start_dateNoOptional ISO date (YYYY-MM-DD); defaults to earliest available

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?

The annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world behavior, so the safety profile is covered. The description adds useful behavioral context beyond that: it lists the exact result fields returned and discloses that dates outside the available range are clamped. It does not mention error behavior for invalid symbols, but it is substantially more informative than the annotations alone.

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 tight sentences with the purpose front-loaded, then the return contents, then the edge-case date behavior. Every sentence adds value and there is no filler.

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?

There is no output schema, but the description compensates by enumerating the returned metrics (total invested, final value, profit, CAGR, average buy price, best/worst month, purchase count). Combined with complete parameter documentation and safety annotations, an agent has enough to invoke and interpret this tool; the only notable gap is guidance on symbol resolution or invalid inputs.

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; however, the description adds meaning beyond the schema by stating that dates outside the available range are clamped, which directly clarifies how start_date and end_date behave at their boundaries. It does not add further detail on amount, frequency, or symbol beyond what the schema already documents.

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 opens with a specific verb and resource: it 'Simulates dollar-cost averaging into one asset,' and names the engine and data source. This is clearly distinct from the sibling tools get_method and list_assets, so an agent can tell what it does without opening the schema.

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 implied by the description ('Simulates dollar-cost averaging into one asset'), but there is no explicit guidance on when to choose this tool versus alternatives. It does not tell the agent to resolve a symbol via list_assets first or when to prefer a different tool, leaving routing to inference.

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