Skip to main content
Glama

Criptos.ai

Profit / loss calculator

profit_loss_calculator
Read-onlyIdempotent

Profit or loss of a buy and a sell, from prices YOU provide (this tool never fetches prices). Give the amount bought in coins (amount) or the money invested (invested). Fees in % per trade. Returns cost, proceeds, profit, % and break-even price. 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": {
      "buy_price": "<buy_price>",
      "sell_price": "<sell_price>"
    },
    "name": "profit_loss_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoAnswer language: pt (Portuguese, Portugal), br (Portuguese, Brazil), en, es, fr, de, it, nl, pl or tr. Default en.
amountNoCoins bought (e.g. 0.05).
currencyNoUSD
investedNoMoney spent, instead of amount.
buy_priceYes
sell_priceYes
buy_fee_pctNo
sell_fee_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare the safe, read-only, idempotent, closed-world profile, so the description's main additions are the no-fetch guarantee and the obligation to cite the canonical URL plus the MiCA disclaimer. It also lists the returned metrics (cost, proceeds, profit, %, break-even), which matters because there is no output schema. With annotations already covering safety, this is solid added context rather than rich behavioral disclosure.

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 computed result and the no-fetch constraint, then inputs, then outputs. The compliance sentence is long but contractually necessary for this publisher; otherwise there is little waste.

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

Completeness3/5

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

For an 8-parameter calculator with no output schema, the definition covers the amount-vs-invested fork and the return fields well. Gaps remain on currency handling and language selection, which an agent must infer from the schema alone.

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?

Coverage is only 38%, so the description must compensate and does explain the key ambiguity: 'amount' is coins bought and 'invested' is the money alternative, and fees are percent per trade. It says nothing about currency, lang, or the buy_price/sell_price fields, leaving roughly half the surface to the schema.

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?

States a specific result (profit or loss of a buy and a sell) and immediately scopes the inputs: prices come from the caller, not from the tool. That clause separates it cleanly from price-fetching siblings such as market_overview or fetch.

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 parenthetical 'this tool never fetches prices' functions as an explicit when-not, steering the agent to a market-data tool first. It stops short of naming an alternative or addressing overlap with compound_interest_calculator and dca_calculator, so it is clear but not exhaustive.

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