Skip to main content
Glama
heyhumayun

financial-research-mcp

by heyhumayun

calculate_max_drawdown

Calculate the maximum drawdown from a series of prices to quantify the largest decline from peak to trough, helping assess downside risk.

Instructions

Calculate maximum drawdown from prices.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pricesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.5/5.0
Behavior3/5

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

The tool appears to be a pure calculation with no side effects, but the description does not disclose output format, edge cases, or assumptions about input ordering. Without annotations, more detail about behavior would be helpful.

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 a single, concise sentence with no superfluous words. It directly conveys the tool's purpose.

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?

The description is adequate for a simple calculation, but it does not explain the expected output (e.g., number, ratio, percentage) or any relevant calculation conventions. Since the tool appears to be part of a larger finance toolkit, additional context would improve completeness.

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?

The schema provides the parameter type and required status, and the description mentions prices, but it does not explain ordering, time series requirements, or whether values should be adjusted. Basic semantics are implied but not explicit.

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?

Description clearly states the operation: calculate maximum drawdown from prices. It is specific enough to distinguish from sibling tools like calculate_returns and calculate_volatility.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance is given about when to use this tool versus alternatives, nor any conditions or prerequisites. The description only states what it does, not when it should be chosen.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.