Skip to main content
Glama

Amaltash Investment & Retirement Calculators

Loss Recovery Calculator

drawdown_recovery
Read-onlyIdempotent

Drawdown and loss recovery calculator with an interactive chart. Works out the percentage gain needed to get back to even after a loss, and how many years that takes at a yearly return the person enters.

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": {
      "loss_pct": "<loss_pct>"
    },
    "name": "drawdown_recovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
loss_pctYesThe loss, in percent, from 0 up to but not including 100.
annual_return_pctNoOptional yearly return, in percent, used to estimate years to recover. Leave null to skip the estimate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observed

TDQS

B3.4/5.0
Behavior3/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, so the safety profile is covered elsewhere. The description contributes the computation semantics (break-even gain plus years at a user-supplied return) and mentions an interactive chart, but says nothing about output shape, rounding, or edge behavior near a 100% loss.

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?

Two front-loaded sentences with no filler: the first identifies the tool, the second states the two computations. The only slight redundancy is repeating 'drawdown/loss recovery' and 'interactive chart', which does not describe a callable parameter.

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 a simple two-parameter calculator with full schema coverage and complete annotations, the description covers the core purpose adequately. However, with no output schema, it leaves the return value underspecified beyond 'an interactive chart', and it does not state whether the years estimate is omitted when annual_return_pct is null.

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%, and the schema already states that annual_return_pct is optional and estimates years to recover. The description restates that relationship rather than adding new meaning, so it sits at the baseline for a fully documented two-parameter schema.

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 names specific outputs: the percentage gain required to break even after a loss, and the number of years to recover given an annual return. That is concrete enough for an agent to distinguish it from a growth calculator like compound_interest. It stops short of naming a sibling or an explicit boundary, so it is not 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 Guidelines3/5

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

Usage is only implied by the phrase 'after a loss' – there is no explicit when-to-use statement, no prerequisites, and no pointer to an alternative such as compound_interest for forward-looking growth. An agent can infer the scenario, but must reason about it rather than read it.

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