Skip to main content
Glama
stockmcp

Stock Data MCP Server

by stockmcp

获取股票多周期统计

stock_period_stats

Retrieve multi-period statistics for A-share stocks, including cumulative change, amplitude, turnover rate, and more, over 5, 10, 20, 60, and 120-day cycles. Input a stock symbol and optional market to access historical period data.

Instructions

获取A股多周期统计数据,包括累计涨跌幅、振幅、换手率等,支持5日、10日、20日、60日、120日等周期

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes股票代码(纯数字或字母组合,如600519、AAPL、HK00700)
marketNo股票市场,仅支持: sh(上证), sz(深证)sh
Behavior3/5

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

No annotations provided, so description carries full burden. It mentions supported markets (sh, sz) and periods but does not disclose read-only behavior, rate limits, or error handling for invalid symbols/unavailable data.

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, front-loaded with key info (market, metrics, periods). No superfluous content.

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?

Without output schema, description sufficiently covers purpose and context for a simple multi-period statistics tool with two parameters. Could add return format, but not critical given low complexity.

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 already documents both parameters with examples and supported markets (100% coverage). Description adds period details but not param-level semantics beyond schema; baseline 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 retrieves multi-period statistics (cumulative change, amplitude, turnover) for A-share stocks with specific period support (5,10,20,60,120 days). It distinguishes from siblings like stock_prices or stock_realtime by explicitly naming metrics and periods.

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 versus alternatives such as stock_indicators or stock_screener. The description implies it's for multi-period stats but lacks explicit conditions or exclusions.

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