Skip to main content
Glama
stockmcp

Stock Data MCP Server

by stockmcp

投资组合风险分析

portfolio_risk_analysis

Calculate portfolio risk metrics including volatility, maximum drawdown, correlation matrix, and Sharpe ratio for given stock symbols over a specified period.

Instructions

分析投资组合的风险指标,包括波动率、最大回撤、相关性矩阵、夏普比率等。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYes股票代码列表,逗号分隔,如: 600519,000858,601318
daysNo分析周期(天)
Behavior2/5

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

No annotations are provided, so the description must carry the burden. It does not disclose whether this is a read-only operation, if data is cached, or any side effects. The description only lists metrics, not behavioral traits.

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?

Single sentence that is efficient and front-loaded with key purpose. No redundant words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description is too bare. It does not explain return format, interpretation, or any constraints like minimum days or data source. For a risk analysis tool, more context is needed.

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?

Input schema covers 100% of parameters with descriptions. The description adds no additional meaning beyond what the schema provides, so baseline of 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 clearly states the tool analyzes portfolio risk metrics including specific indicators like volatility, max drawdown, correlation matrix, and Sharpe ratio. This is distinct from sibling tools which are mostly single-stock or market-level analysis tools.

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 on when to use this tool vs alternatives, prerequisites, or context. Users are left to infer that it's for portfolio-level risk analysis, but no explicit conditions or exclusions are mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stockmcp/stock-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server