Skip to main content
Glama

Impermanent loss calculator

calc_impermanent_loss
Read-onlyIdempotent

Read-only educational calculator. Estimates impermanent loss from initial investment and token price multipliers in a 50/50 constant-product AMM. Returns a result from caller-supplied public inputs without changing page or account state, accessing BetterOff customer data, or providing personalized financial advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceChangeANoToken A price multiplier — 1.0 = unchanged, 2.0 = doubled, 0.5 = halved.
priceChangeBNoToken B price multiplier — 1.0 = unchanged, 2.0 = doubled, 0.5 = halved.
initialInvestmentNoInitial capital

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, and the description adds meaningful behavioral context: it explicitly states no page or account state changes, no access to BetterOff customer data, no personalized financial advice, and public-input-only execution. This goes well beyond the annotations and clarifies side effects, privacy, and scope.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no waste. It front-loads the read-only educational nature, then states exactly what the tool computes and what it does not do. Every sentence earns its place and the length is proportionate to the tool's simplicity.

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 simple educational calculator with rich annotations, a complete input schema, and an output schema, the description covers what the tool does, its side-effect guarantees, its data-access boundaries, and its advisory limits. Nothing an agent needs to call it correctly is missing.

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%, so the schema already documents all three parameters with defaults, ranges, and examples. The description mentions 'initial investment and token price multipliers', which conceptually maps to the parameters, but adds no semantic detail beyond the schema. Baseline 3 is appropriate.

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?

The description uses a specific verb ('Estimates') with a clear resource ('impermanent loss') and the exact calculation context ('initial investment and token price multipliers in a 50/50 constant-product AMM'). This uniquely distinguishes it from the many sibling calculator tools without ambiguity.

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 clearly implies when to use it: when the user wants an educational impermanent loss estimate from price multipliers and initial capital, using public inputs. It does not explicitly name alternatives or exclusions, but the phrase 'Read-only educational calculator' and 'caller-supplied public inputs' provides enough context to select it appropriately.

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.

TDQS

A3.8/5.0
Disambiguation2/5

The 14 calc_* tools are individually distinct, but run_public_calculator and compare_public_scenarios overlap with all of them, making it unclear when to use a specific calculator versus the generic runner. list_public_calculators and search_public_docs also have somewhat fuzzy boundaries.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (calc_*, list_*, get_*, search_*, compare_*, run_*), with no mixed casing or irregular verb styles.

Tool Count3/5

At 22 tools, the set is on the heavy side and falls in the borderline 16–25 range. While most calculators earn their place, the generic run_public_calculator and compare_public_scenarios duplicate functionality already covered by the calc_* tools, inflating the count.

Completeness5/5

The surface covers a broad personal-finance calculator domain plus discovery, contract introspection, running, comparing, docs, pricing, and feature details. For a read-only educational server, there are no obvious gaps or dead ends.

Resources