Skip to main content
Glama
lj22503

InvestBrain

tushare_get_valuation_multi

Retrieve PE and PB valuation ratios for multiple stocks across a specified date range using Tushare daily and basic data.

Instructions

Get PE/PB ratios for multiple stocks over time (Tushare API: daily + basic).

Args:
    stock_list: List of Tushare stock codes (e.g., ["600519.SH", "000858.SZ"])
    start_date: Start date in YYYYMMDD format
    end_date: End date in YYYYMMDD format

Returns:
    dict: Valuation data for multiple stocks

Input Schema

NameRequiredDescriptionDefault
end_dateNo
start_dateNo
stock_listYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
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. It notes the underlying 'daily + basic' Tushare APIs but does not disclose rate limits, auth requirements, list-size limits, or what fields the returned dict contains—significant gaps for a data-fetch tool.

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?

Front-loaded purpose sentence followed by structured Args/Returns sections with no filler. Every line is relevant, though the Returns section adds little beyond restating 'valuation data'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description should say more about the return shape than 'Valuation data for multiple stocks', and should note whether the stock list is capped. The parameter documentation is adequate, but return-side completeness is lacking.

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 coverage is 0%, so the description must compensate and mostly does: it documents all three parameters, gives an example stock code format, and specifies YYYYMMDD date formats. It omits that start_date/end_date are optional (defaults exist), costing it a point.

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?

States a specific verb and resource ('Get PE/PB ratios for multiple stocks over time'), which is clearer than a tautology. The 'multi' framing hints at batch scope versus a single-stock sibling like market_get_valuation, but that distinction is never made explicit.

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?

Usage is only implied—'multiple stocks over time' suggests batch historical valuation, but there is no explicit when-to-use or when-not guidance, and no routing to alternatives such as market_get_valuation or tushare_get_daily_price.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools