Skip to main content
Glama
DannyWongIsAvailable

Real-time Stock MCP Service

get_valuation_analysis

Retrieve valuation analysis data including PE, PB, PS, and PC ratios with historical percentiles for any stock and selectable time period.

Instructions

获取指定股票的所有估值分析数据,包括市盈率、市净率、市销率和市现率的当前值和历史分位数。

Args: stock_code: 股票代码,要在数字后加上交易所代码,格式如300750.SZ date_type: 时间周期类型 1 - 1年 2 - 3年 3 - 5年 4 - 10年

Returns: 所有估值分析数据的Markdown表格

Examples: - get_valuation_analysis("300750.SZ", 3) - get_valuation_analysis("300750.SZ", 2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stock_codeYes
date_typeNo

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 adds behavioral context by stating it returns a Markdown table and implies a read-only operation. However, it does not disclose potential side effects, authorization needs, or rate limits, limiting transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose sentence, Args/Returns sections, and examples. It is comprehensive but slightly verbose; could be trimmed by merging the first sentence with Returns.

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 that an output schema exists (true), the description adequately covers parameters and purpose with examples. It lacks detail on output structure beyond 'Markdown table', but the listed metrics partially compensate.

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

Parameters5/5

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

The description fully compensates for 0% schema coverage by explaining both parameters: stock_code format (e.g., '300750.SZ') and date_type options (1-4 years). This provides meaning beyond the bare schema.

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 all valuation analysis data for a stock, listing specific metrics (PE, PB, PS, PC) with current values and historical percentiles. This specific verb-resource description distinguishes it from sibling tools that cover other financial data.

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 siblings like 'get_valuation_comparison' or 'get_main_financial_data'. It only describes its own functionality, leaving the agent to infer appropriateness.

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