Skip to main content
Glama
sacahan

CasualMarket

by sacahan

get_stock_daily_trading

Get daily trading statistics for a Taiwan stock by symbol, including total volume, total value, transaction count, average price, bid-ask spread, and market cap. Use it to review a stock's daily trading activity.

Instructions

取得股票日交易統計資訊。

提供指定股票當日的詳細交易統計,包括成交量、成交金額、 委買委賣資訊等交易面數據。

使用範例: get_stock_daily_trading("2330") # 查詢台積電日交易資訊 get_stock_daily_trading("0050") # 查詢0050 ETF日交易資訊

Args: symbol: 股票代碼 (例如: "2330")

Returns: MCPToolResponse[dict]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (dict): 日交易統計資訊,包含: * trading_date: 交易日期 * total_volume: 總成交量 * total_value: 總成交金額 * transaction_count: 成交筆數 * average_price: 平均成交價 * bid_ask_spread: 買賣價差 * market_cap: 市值 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱

Raises: 查詢失敗時返回錯誤回應,可能的原因: - 股票代碼不存在 - 非交易日或市場尚未開盤 - 資料來源暫時無法存取

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description bears full responsibility. It thoroughly discloses the return envelope (success, data, error, tool), enumerates the data fields within data, and lists realistic error causes (nonexistent symbol, non-trading day, source unavailable). It does not cover read-only guarantees, authentication, or rate limits, but the return and error behavior is well specified for a GET-style data query.

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 organized into clear sections (overview, examples, Args, Returns, Raises) with the primary purpose front-loaded. The first two sentences are somewhat redundant ('取得股票日交易統計資訊' vs '提供指定股票當日的詳細交易統計'), but overall the length is justified by the detailed return-field enumeration and error logging.

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

Completeness5/5

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

For a single-parameter tool with no output schema, the description provides everything an agent needs to invoke it correctly: parameter meaning, example calls, full return structure and field names, and likely failure scenarios. There is no missing critical information.

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 input schema merely defines symbol as a required string with no description (0% coverage). The description compensates fully by defining the parameter as '股票代碼' (stock symbol) and providing two concrete examples ('2330', '0050'). This leaves no ambiguity about what value to supply.

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 opens with an explicit verb and resource: '取得股票日交易統計資訊' (retrieve stock daily trading statistics). It then details the data covered (成交量, 成交金額, 委買委賣資訊) and gives concrete examples. The '日' (daily) qualifier distinguishes it from sibling tools like get_stock_monthly_trading, get_stock_yearly_trading, and get_real_time_trading_stats.

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 implied through examples and the phrase '當日' (current day), which signals this tool is for daily end-of-day trading statistics. However, the description does not explicitly state when to prefer this tool over alternatives or mention any exclusion conditions, so the agent must infer routing from sibling names and context.

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