Skip to main content
Glama

get_risk_metrics

Read-only

Compute risk metrics for a stock, index, crypto or FX symbol: historical VaR/CVaR, max drawdown, Sharpe, Sortino, Calmar, volatility and skew/kurtosis over a chosen period.

Instructions

Bir varlığın (hisse, endeks, kripto, döviz) risk metriklerini hesaplar: tarihsel VaR/CVaR, maksimum düşüş ve toparlanma, Sharpe, Sortino, Calmar, yıllık volatilite, çarpıklık/basıklık. Örn: THYAO.IS, AAPL, BTC-USD.

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": {
      "symbol": "<symbol>"
    },
    "name": "get_risk_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoAnaliz aralığı1y
symbolYesSembol (THYAO.IS, AAPL, BTC-USD, XU100.IS)
intervalNoGetiri periyodu (günlük/haftalık)1d
confidenceNoVaR güven düzeyi (örn. 95 → en kötü %5 senaryo)
riskFreeRateNoYıllık risksiz getiri oranı (%, Sharpe/Sortino için)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.7.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile and external-data nature are covered structurally. The description adds the computed metric set but says nothing beyond annotations about data availability limits (e.g. period vs. symbol history), failures, latency, or whether results are cached — modest added value given the lower bar.

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?

Two sentences, front-loaded with the verb and the metric inventory, followed by input examples. The long metric list is informative rather than redundant, and there is no filler.

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?

With no output schema, the metric enumeration effectively describes the return payload, and all parameters are documented. It falls short of full completeness only by omitting caveats about historical data sufficiency for the chosen period/interval and error behavior.

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 all five parameters (period, interval, confidence, riskFreeRate, symbol) are already documented, including enum values and the 95 → worst 5% example. The description only contributes example symbol strings, which is marginal beyond the schema; baseline 3 applies.

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 opens with a specific verb+resource ("Bir varlığın ... risk metriklerini hesaplar") and then enumerates exactly which metrics are produced (VaR/CVaR, max drawdown, Sharpe, Sortino, Calmar, volatility, skew/kurtosis). It also scopes supported asset classes and gives concrete symbol examples, so an agent knows precisely what the tool returns and what inputs fit.

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 naming the asset classes and symbol formats, which helps the agent pick valid inputs. However, there is no explicit when-to-use/when-not-to-use statement and no pointer to sibling tools (e.g. get_correlation or get_crypto_history) for related analysis, so routing must be inferred.

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