Skip to main content
Glama
fin-advisor
by TTNAN

portfolio_risk

Read-onlyIdempotent

Calculate annualized volatility, maximum drawdown, HHI concentration, and beta versus QQQ from portfolio holdings to assess risk exposure.

Instructions

计算组合年化波动率、最大回撤、HHI 集中度、相对 QQQ 的 beta。holdings 例: [{"ticker":"NVDA","weight":0.6}]

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": {
      "holdings": "<holdings>"
    },
    "name": "portfolio_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
holdingsYes
lookback_daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorldHint, so the safety profile is covered. The description adds the metric set but omits behavior an agent needs: that it pulls external market data, how much history is required, what happens with missing tickers, and how weights are normalized. Useful but not rich.

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 compact sentences with the metric list front-loaded and a minimal inline example for the required parameter. Nothing is padded and no sentence is wasted.

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?

An output schema exists, so return values need no explanation, and the metric list plus holdings example cover the core. Still missing for a two-parameter analytics tool: the meaning/units of lookback_days, weight normalization rules, and failure behavior for tickers without sufficient history.

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 0%, and the items schema is a bare object with additionalProperties, so the inline example [{ticker, weight}] genuinely rescues the required `holdings` parameter. However, `lookback_days` is never mentioned in the description and has no schema text, leaving its effect on annualization and beta unexplained.

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?

Names a specific verb (计算) and enumerates the exact metrics produced: annualized volatility, max drawdown, HHI concentration, and beta vs QQQ. This is clearly distinguishable from the sibling tools, which are all raw data-fetch or order-drafting tools rather than analytics.

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 — an agent can infer this is the tool for portfolio-level risk analytics, but there is no explicit 'use this when...' statement, no mention of alternatives, and no preconditions (e.g. whether historical price data must exist for every ticker).

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