Skip to main content
Glama

Crypto DCA calculator

hopi_dca_calculator
Read-onlyIdempotent

Work out the average cost basis across a series of pound-cost-averaged buys. Each buy is an amount of money spent and the price paid per unit. Returns total invested, coins acquired and average cost, plus current value and unrealised profit or loss if a current price is given. Figures are treated as GBP. Source: https://hopi.co.uk/dca-calculator/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buysYesThe list of buys
currentPriceNoCurrent price per unit (optional), to value the position now

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
buysYes
summaryYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
averageCostYes
coinsAcquiredYes
totalInvestedYes
averageCostStringYes
coinsAcquiredStringYes
totalInvestedStringYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "averageCost",
      +  "averageCostString",
      +  "buys",
      +  "coinsAcquired",
      +  "coinsAcquiredString",
      +  "source_url",
      +  "summary",
      +  "totalInvested",
      +  "totalInvestedString"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive. The description adds meaningful behavioral context beyond that: it details the return values (total invested, coins acquired, average cost, current value, unrealised profit/loss) and clarifies the currency treatment (GBP).

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?

The description is concise: three sentences covering purpose, inputs, outputs, and currency. It is front-loaded with the main purpose. The source link at the end is optional metadata but not disruptive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only calculator with an output schema, the description is complete. It explains the input structure, the optionality of currentPrice, all return categories, and the currency assumption. An agent has enough information to call the tool correctly.

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%, with clear descriptions for amount, price, and currentPrice. The description largely paraphrases these, adding only the GBP context and the pound-cost-averaging framing. It meets the baseline but doesn't add substantial new parameter meaning.

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: 'work out the average cost basis across a series of pound-cost-averaged buys.' This clearly identifies the tool's function. However, it does not explicitly differentiate it from sibling tools like hopi_crypto_profit_calculator, so it stops short of a 5.

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?

The description gives clear context for when to use the tool: for a series of pound-cost-averaged buys, with optional current price for valuation. It doesn't explicitly mention when not to use it or name alternatives, but the use case is well-defined.

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