Skip to main content
Glama
liqiongyu

Xueqiu MCP

by liqiongyu

quotec

Retrieve real-time stock market data for specific securities to analyze financial performance and track investment opportunities.

Instructions

获取某支股票的行情数据

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stock_codeNoSZ000002

Implementation Reference

  • main.py:64-69 (handler)
    The quotec tool handler function, decorated with @mcp.tool() for registration. It calls pysnowball's quotec method to fetch stock quote data and processes the result with process_data for timestamp conversion.
    @mcp.tool()
    def quotec(stock_code: str="SZ000002") -> dict:
        """获取某支股票的行情数据"""
        result = ball.quotec(stock_code)
        return process_data(result)
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves quote data but does not describe any behavioral traits such as data freshness, rate limits, error handling, or authentication needs. This is a significant gap for a tool with zero annotation coverage.

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 a single, efficient sentence with zero waste: '获取某支股票的行情数据'. It is appropriately sized and front-loaded, directly stating the tool's purpose without unnecessary details.

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?

Given the tool's complexity (simple data retrieval), lack of annotations, no output schema, and incomplete parameter documentation, the description is inadequate. It does not provide enough context for an AI agent to understand how to use the tool effectively, such as explaining the parameter or describing the return format.

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

Parameters2/5

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

The description does not add any meaning beyond the input schema. With 0% schema description coverage, the parameter 'stock_code' is undocumented in both the schema and description. The description does not explain what 'stock_code' represents (e.g., format like 'SZ000002'), its required status, or default behavior, failing to compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose as '获取某支股票的行情数据' (Get quote data for a specific stock), which specifies the verb (获取/get) and resource (行情数据/quote data). It distinguishes from siblings like 'quote_detail' by focusing on basic quote data rather than detailed information, though not explicitly. The purpose is clear but lacks explicit sibling differentiation.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention when to choose 'quotec' over 'quote_detail' or other sibling tools like 'kline' or 'pankou', nor does it specify prerequisites or exclusions. Usage is implied by the purpose but lacks explicit 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/liqiongyu/xueqiu_mcp'

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