Skip to main content
Glama

Losing streak calculator

calculate_losing_streak
Read-onlyIdempotent

The exact probability of at least one losing streak of a given length over a number of independent trades, the expected longest streak and the streak 95% of sequences stay within. Computed with the same function as Clear Tape's free losing streak calculator page (linked in the result), not estimated. Returns the inputs, each result with its unit, the formula and the page link. Educational, not investment advice.

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the returned text: "en" (default) or "zh" (Simplified Chinese).en
streakYesLosing streak length to test, a whole number no larger than trades.
tradesYesNumber of trades, a whole number from 1 to 2000.
winRateYesWin rate in percent. Above 0, at most 100.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add context — and it does: it states the computation is exact rather than estimated, cites the same function used on Clear Tape's public page, and enumerates what comes back. It does not discuss accuracy limits or edge-case behavior (e.g. streak larger than trades), but the added provenance context is genuinely useful.

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 core computation is front-loaded in the first sentence and the return contract and disclaimer follow in order. The three-result enumeration is slightly dense but each clause carries information; there is little filler.

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?

With no output schema, the description compensates by describing the return payload (inputs echoed back, each result with its unit, the formula, and the page link). Combined with a fully documented input schema (including ranges and the lang enum), an agent has everything required to call and interpret this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds a meaningful modeling assumption not in the schema: that trades are independent and that the streak is evaluated over those independent trades. That framing matters for interpreting winRate and trades correctly and goes beyond the field-level docs.

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 names a specific verb and resource and enumerates the exact outputs: probability of at least one losing streak of a given length, expected longest streak, and the 95% bound. It is clearly distinct from sibling calculators like calculate_drawdown_recovery or calculate_kelly_criterion.

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 tool's subject matter (streak-risk planning for a given win rate and trade count). The description offers no when-to-use/when-not guidance and never names an alternative sibling calculator, so the agent must infer the context. The 'educational, not investment advice' line is a disclaimer rather than routing guidance.

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