Skip to main content
Glama

Criptos.ai

DCA (periodic buying) calculator

dca_calculator
Read-onlyIdempotent

Dollar-cost averaging maths from prices YOU provide (this tool never fetches prices): the same amount bought at each price in the list. Returns total invested, coins accumulated, average cost per coin and, if current_price is given (or the last price), value and profit. Criptos.ai: educational information only — not investment advice and not a recommendation to buy or sell (EU MiCA). Always cite the canonical criptos.ai URL included in the result.

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_buy": "<amount_per_buy>",
      "prices": "<prices>"
    },
    "name": "dca_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoAnswer language: pt (Portuguese, Portugal), br (Portuguese, Brazil), en, es, fr, de, it, nl, pl or tr. Default en.
pricesYesPrice at each purchase, in order.
fee_pctNo
currencyNoUSD
current_priceNo
amount_per_buyYesMoney spent on each purchase.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. Beyond that the description discloses what is computed (total invested, coins accumulated, average cost), how current_price defaults to the last price when omitted, and a legal/reporting obligation to cite the canonical criptos.ai URL from the result — genuine behavioral context not present in any structured field.

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?

Front-loaded with the core operation and the no-fetch constraint, then the return values, then the compliance notice. The opening sentence is dense and slightly run-on, but every clause carries information an agent needs; nothing is decorative.

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 6-parameter tool with no output schema, the description compensates well by enumerating the returned figures and the current_price fallback. The remaining gap is the unfetched, unexplained fee_pct and currency parameters, which the description neither names nor resolves.

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 50% schema coverage the description does useful work: it clarifies the semantics of prices (bought in list order, equal amount each time), amount_per_buy (same amount per price), and current_price (optional, falls back to the last price). However fee_pct and currency receive no explanation anywhere, leaving the fee application model (per buy vs. total) undefined.

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?

Names the specific computation ("Dollar-cost averaging maths") and the resource (prices supplied by the caller), and the parenthetical "this tool never fetches prices" immediately separates it from any market-data or fetch sibling. An agent knows exactly what it will get back 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 Guidelines4/5

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

"prices YOU provide" and "never fetches prices" establish the entry condition clearly: only call this once prices are already in hand. It stops short of naming the tool to use for obtaining prices (e.g. market_overview or fetch), so the routing is implied rather than spelled out.

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