Skip to main content
Glama

get_stock_price

Read-onlyIdempotent

Need up-to-date Taiwan stock prices? Get real-time quotes including change, volume, and OHLC values for any stock code.

Instructions

取得台股即時報價,包含股價、漲跌、漲跌幅、成交量、開高低收

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes台股代號,例如 2330、2317、2454
Behavior3/5

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

Annotations already indicate readOnlyHint=true and idempotentHint=true, so the description does not need to restate safety. The description adds that it includes price, change, volume, etc., which is helpful but does not reveal additional behavioral traits beyond the annotations. No contradiction.

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 front-loaded with the action and includes key return fields. Every word serves a purpose, with no unnecessary information. It is highly concise and well-structured.

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 simple tool with one required parameter and clear annotations, the description is complete enough. It specifies the output fields. Although there is no output schema, the description adequately conveys what the agent can expect. Minor improvement could be mentioning that it returns the latest data point.

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?

The input schema has 100% description coverage, clearly documenting the 'code' parameter with examples of Taiwan stock codes. The description does not add further semantics beyond what the schema provides, so a 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 it retrieves real-time stock quotes for Taiwan stocks, specifying included fields like price, change, volume, and OHLC. This distinguishes it from siblings such as 'get_price_history' (historical) and 'get_us_stock_quote' (US stocks), making the purpose precise and 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 does not explicitly state when to use this tool over alternatives. However, the context of sibling tools (e.g., 'get_us_stock_quote', 'get_price_history') implies that for Taiwan real-time quotes, this is the appropriate choice. No direct when-to-use or when-not-to-use guidance is provided.

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