Skip to main content
Glama
DannyWongIsAvailable

Real-time Stock MCP Service

get_historical_fund_flow

Retrieve historical fund flow data for a stock over recent trading days, showing breakdowns of main, retail, and mid-order capital. Specify stock code with exchange suffix and optional limit on records.

Instructions

获取指定股票最近N个交易日的资金流向数据,包括主力资金、散户资金、中单资金等的流入流出情况。

Args: stock_code: 股票代码,要在数字后带上交易所代码,格式如688041.SH limit: 返回数据条数,默认为10条

Returns: 格式化的历史资金流向数据,以Markdown表格形式展示

Examples: - get_historical_fund_flow("688041.SH") - get_historical_fund_flow("688041.SH", 20)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stock_codeYes
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It explains the return format (Markdown table) and data types but does not mention side effects, rate limits, auth requirements, or data freshness. It is adequate but lacks depth such as data source or update frequency.

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 well-structured with a clear main description, Args, Returns, and Examples sections. It is concise, using only essential information without redundancy, and each sentence adds value.

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?

For a data retrieval tool with 2 parameters and no annotations, the description covers input, output format, and examples. It lacks details on valid market codes, data history length, and error handling, but it is mostly sufficient for an agent to invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 0% schema coverage, the description's Args section explains both parameters: stock_code format (e.g., 688041.SH) and limit's default and meaning (number of records). This adds significant value beyond the raw schema, though it could specify constraints like valid markets for stock_code.

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 it retrieves historical fund flow data for a specified stock, including types of funds (main, retail, medium). It uses specific verb '获取' and resource '指定股票最近N个交易日的资金流向数据', distinguishing it from sibling tools like get_plate_fund_flow which is for sector data.

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?

The description implies usage for stock-level historical fund flow but does not explicitly state when to use this tool versus alternatives like get_plate_fund_flow. No exclusions or alternative suggestions are provided, leaving the agent to infer from context.

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/DannyWongIsAvailable/real-time-stock-mcp-service'

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