Skip to main content
Glama

VistaShares ETFs

Loss recovery calculator

loss_recovery
Read-onlyIdempotent

Shows the gain needed to recover from a given loss (a 50% loss needs a 100% gain), and what $100,000 becomes after the loss. Same math as https://www.vistashares.com/loss-recovery-calculator/.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "loss_recovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
loss_pctNoLoss, in percent (positive number, for example 30). Accepts 0 to 99; default 30.

Output Schema

NameRequiredDescriptionDefault
lossYes
noteYes
pageYes
explanationYes
gain_needed_to_recoverYes
value_of_100000_after_lossYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / loss_pct / description
      Previous value: -"Loss, in percent (positive number, for example 30)."New value: +"Loss, in percent (positive number, for example 30). Accepts 0 to 99; default 30."
    • removedInput schema / required
      Removed value: -[
      -  "loss_pct"
      -]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "explanation": {
      +      "type": "string"
      +    },
      +    "gain_needed_to_recover": {
      +      "type": "string"
      +    },
      +    "loss": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "page": {
      +      "format": "uri",
      +      "type": "string"
      +    },
      +    "value_of_100000_after_loss": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "loss",
      +    "gain_needed_to_recover",
      +    "value_of_100000_after_loss",
      +    "explanation",
      +    "page",
      +    "note"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is fully covered. The description adds the useful specifics that this is pure arithmetic and returns both a required gain and a residual dollar value, plus a reference calculator for verification; beyond that it adds little.

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 tightly packed sentences, front-loaded with the core function and followed by illustrative numbers. The external URL is mild padding but serves as a correctness reference, so it roughly earns its place.

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 one-parameter, closed-form calculator with an output schema and full annotation coverage, nothing essential is missing — the description explains the two output quantities and the input range. Deeper detail on output formatting is unnecessary since an output schema exists.

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 coverage is 100% and the single parameter already documents the range 0-99 and default 30. The description reinforces the meaning with the 50%-loss example but contributes no syntax or units beyond what the schema states.

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?

States a concrete verb+resource and quantifies the behavior with worked examples ("a 50% loss needs a 100% gain", "what $100,000 becomes after the loss"). This makes it distinguishable from the buffer/outcome siblings, though no sibling is named explicitly.

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 implied by the name and worked examples, but there is no explicit when-to-use statement or pointer to alternative tools for the adjacent concepts (buffers, payoff tables) that siblings cover.

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