Skip to main content
Glama
jamesdingAI

stockreport-mcp

by jamesdingAI

get_stock_industry

Retrieve industry classification data for specific stocks or entire markets on selected dates to analyze sector exposure and market composition.

Instructions

    Fetches industry classification for a specific stock or all stocks on a given date.

    Args:
        code: Optional. The stock code (e.g., 'sh.600000'). If None, fetches for all stocks.
        date: Optional. The date in 'YYYY-MM-DD' format. If None, uses the latest available date.

    Returns:
        Markdown table with industry classification data or an error message.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
dateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behaviors: it fetches data (read-only implied), handles optional parameters with defaults, and returns a markdown table or error. However, it lacks details on rate limits, authentication needs, data freshness, or error specifics, which are important for a tool with no 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 well-structured and front-loaded with the core purpose in the first sentence. The Args and Returns sections are clear and efficient, with no redundant information. Every sentence adds value, making it appropriately concise for a tool with two parameters.

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?

Given the tool's moderate complexity (2 optional parameters) and no annotations, the description is mostly complete: it explains purpose, parameters, and output. However, it lacks behavioral details like error handling or data sources. The presence of an output schema reduces the need to detail return values, but more context on limitations would enhance completeness.

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?

Schema description coverage is 0%, so the description must compensate. It adds significant meaning beyond the schema by explaining parameter purposes (e.g., 'stock code' with an example 'sh.600000'), optionality, and default behaviors ('If None, uses the latest available date'). This covers both parameters adequately, though it could specify format constraints more explicitly.

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's purpose with specific verbs ('fetches industry classification') and resources ('for a specific stock or all stocks'), distinguishing it from siblings like get_stock_basic_info or get_stock_analysis. It explicitly mentions the scope (single vs. all stocks) and the date parameter, making the purpose unambiguous.

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 through parameter descriptions (e.g., 'If None, fetches for all stocks'), but it does not explicitly state when to use this tool versus alternatives like get_stock_basic_info or get_stock_analysis. No exclusions or prerequisites are mentioned, leaving usage context partially inferred.

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/jamesdingAI/stockreport-mcp'

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