Skip to main content
Glama

get_price_history

Read-onlyIdempotent

Retrieve historical stock price data (daily candlesticks) to analyze trends and calculate price changes. Supports Taiwan and US markets.

Instructions

取得股票歷史價格資料(日K線),用於分析趨勢、計算漲跌幅

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stockIdYes股票代號
daysNo查詢天數,預設 30
marketNo市場,TW 或 US,預設 TW
Behavior4/5

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

Annotations already indicate readOnly, non-destructive, and idempotent behavior. The description adds the specific behavioral trait that the tool returns daily K-line data, which implies candlestick OHLC data. No contradiction with annotations.

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 sentence that is clear and front-loaded with the verb and resource. No extraneous information; every part contributes to understanding the tool's purpose.

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?

The tool has no output schema, so the description should explain what the returned data contains (e.g., fields like open, high, low, close, volume). It only mentions 'daily K-line' but does not specify the output structure, leaving a significant gap for the agent.

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

Parameters3/5

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

Schema coverage is 100% with descriptions for each parameter (stockId, days, market). The description does not add extra meaning beyond what the schema already provides, so baseline score of 3 is appropriate.

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 retrieves historical daily price data (daily K-line) for trend analysis and calculation of gains/losses. It is specific about the resource (historical prices) and action (get), though it does not explicitly differentiate from siblings like get_stock_price or get_technical_indicators.

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 mentions the tool is for analyzing trends and calculating gains/losses, but it does not provide explicit guidance on when to use this tool vs. alternatives such as get_stock_price (likely for current prices) or get_technical_indicators. No 'when not to use' or comparative context is given.

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/kevinlin49361128-stack/stock-analyzer-mcp'

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