Skip to main content
Glama

BTC DCA Engine

Run a DCA plan

run_dca
Read-onlyIdempotent

Simulate one dollar-cost-averaging plan against real historical closes. Returns totals, end-of-year checkpoints and a share_url that opens the same run in the app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo"dca" repeats on the schedule; "lump-sum" buys once at the start. Default "dca".
as_ofNoPin the answer to this data vintage so the share link keeps returning the same number.
assetYesAsset key from list_assets, e.g. "btc_daily", "Ethereum", "S&P 500".
amountYesUSD per contribution, or the single amount for lump-sum.
includeNo
end_dateNoWindow end. Defaults to the last loaded close, never a relative "today".
settingsNoChart overlays carried into share_url, and the figures they add to each summary. Flags marked "Pro only" need a signed-in Pro account or a Pro API key; without one, the call returns an error naming the setting.
frequencyNoContribution cadence. Default "monthly". Quarterly is the coarsest offered: wider gaps behave like a few lump sums (see the knowledge base, "The gap between buys").
start_dateYesFirst scheduled contribution.
wait_periodsNoSave this many scheduled contributions as cash before the first purchase.
last_buy_dateNoStop buying here and hold to end_date.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / settings / description
      Previous value: -"Chart overlays carried into share_url, and the figures they add to each summary. Flags marked \"Pro only\" need a signed-in Pro account or a Pro API key; refused otherwise, and the refusal says what unlocks them."New value: +"Chart overlays carried into share_url, and the figures they add to each summary. Flags marked \"Pro only\" need a signed-in Pro account or a Pro API key; without one, the call returns an error naming the setting."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds useful behavior beyond that: the simulation uses real historical closes and the returned share_url reopens the same run in the app, which is not visible in structured metadata.

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?

The description is two tight sentences with the core purpose first and the return contract second. No filler or repetition of schema 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?

For an 11-parameter tool with no output schema, the description gives enough high-level output shape (totals, checkpoints, share_url) and the schema covers parameter semantics. It falls short of a 5 only because it does not explicitly connect to alternatives or call out conditional Pro-only behavior in the description itself.

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?

With 91% schema description coverage, the schema itself documents most parameters (asset, amount, start_date, frequency, settings, etc.). The tool description adds no parameter-level detail, so it neither compensates for gaps nor detracts from what the schema provides.

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 uses a specific action–resource pair: simulate one dollar-cost-averaging plan against real historical closes. The word 'one' sets it apart from the sibling plan-comparison tool, and the output summary (totals, checkpoints, share_url) leaves no doubt about what it does.

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?

The use case is implied: run a single DCA simulation when you want plan results. However, the description never names an alternative or states when to prefer compare_plans, data_status, or list_assets, so an agent is left to infer the boundary.

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