Skip to main content
Glama
InvestBrain

InvestBrain

market_get_stock_history

Retrieve historical stock K-line data by ticker, including date, open, high, low, close, and volume. Choose daily, weekly, or monthly periods for market analysis.

Instructions

Get historical K-line data for a stock.

Args:
    ticker: Stock ticker symbol (e.g., "600519")
    period: K-line period - "daily", "weekly", "monthly" (default: "daily")

Returns:
    dict: OHLCV data with date, open, high, low, close, volume

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticker": "<ticker>"
    },
    "name": "market_get_stock_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNodaily
tickerYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/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 discloses the return shape (OHLCV fields), which is genuinely useful behavioral context, but omits auth requirements, rate limits, data range limits, and whether results are paginated.

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?

Front-loaded one-line purpose followed by compact Args/Returns blocks with zero filler. Every line carries information the schema does not.

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 two-parameter read tool with no output schema and no annotations, the description covers the required parameter, the period options, and the return fields, which is close to sufficient. It could say more about ticker format across markets and any range limits, but nothing essential is missing for a correct call.

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% and there are no enums in the schema, so the description must compensate, and it does: it documents both parameters, gives a ticker example ("600519"), and supplies the valid period values (daily/weekly/monthly) plus the default. This adds real meaning beyond the bare schema.

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 (Get) and resource (historical K-line data for a stock), so the agent immediately knows what it produces. It does not distinguish itself from heavily overlapping siblings like tushare_get_daily_price, tushare_get_weekly_price, or market_get_stock_quote, which is the only clear gap.

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?

There is no guidance on when to choose this tool over the many sibling price/history tools, nor any prerequisites or exclusions. Usage is only implied by the name and the period parameter.

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