Skip to main content
Glama
sacahan

CasualMarket

by sacahan

get_stock_monthly_trading

Retrieve monthly trading statistics for a Taiwan stock symbol, including volume, value, average, high, and low prices, to support medium- and long-term trend analysis.

Instructions

取得股票月交易資訊。

提供股票每月的交易統計資料,包括月成交量、月成交金額、 月均價、最高最低價等,適合中長期趨勢分析。

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

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

Returns: MCPToolResponse[MonthlyTradingData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (MonthlyTradingData): 月交易資訊,包含: * symbol: 股票代碼 * monthly_data: 月交易列表,每項包含: - year_month: 年月 (YYYY-MM) - total_volume: 月成交量 - total_value: 月成交金額 - average_price: 月均價 - highest_price: 月最高價 - lowest_price: 月最低價 - trading_days: 交易日數 - 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

A3.8/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses the unified response envelope, success flag, data structure, and monthly record fields, making the read-only retrieval behavior clear. No hidden side effects or mutations are suggested.

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 well-organized with a brief purpose statement, usage examples, and a structured Returns list. It is slightly repetitive by repeating '月交易資訊' in adjacent sentences, but the main purpose is front-loaded and the content earns its place.

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 one-parameter read tool with no output schema and no annotations, the description covers invocation, parameter meaning, return structure, and expected fields. It does not mention sorting order or historical depth of monthly data, but those are not essential for correct invocation.

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?

The input schema has 0% description coverage, so the description compensates by explaining that symbol is a stock code and by giving two concrete examples ('2330', '0050'). This is sufficient for the single required parameter, though it does not specify formatting constraints or market scope.

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?

The description clearly states that the tool retrieves monthly trading statistics for a stock, including monthly volume, value, average price, and high/low prices. It is specific about the resource and scope, but it does not explicitly differentiate itself from sibling tools such as get_stock_daily_trading or get_stock_yearly_trading.

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 includes a usage hint ('適合中長期趨勢分析') and concrete invocation examples, implying when the tool is appropriate. However, it does not explicitly state when to prefer this tool over alternatives like get_stock_daily_trading, get_stock_yearly_trading, or get_stock_monthly_average, nor does it provide exclusions.

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