Skip to main content
Glama
sacahan

CasualMarket

by sacahan

get_company_monthly_revenue

Retrieve monthly revenue data for any Taiwan-listed company, including monthly revenue, monthly growth, yearly growth, and cumulative figures, to quickly assess operational performance.

Instructions

取得公司月營收資訊。

提供公司每月營收數據,包括當月營收、年增率、月增率等, 是觀察公司營運狀況的重要指標。

使用範例: get_company_monthly_revenue("2330") # 查詢台積電月營收 get_company_monthly_revenue("2454") # 查詢聯發科月營收

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

Returns: MCPToolResponse[MonthlyRevenueData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (MonthlyRevenueData): 月營收資訊,包含: * symbol: 股票代碼 * revenue_data: 月營收列表,每項包含: - year_month: 年月 (YYYY-MM) - revenue: 當月營收 - monthly_growth: 月增率 (%) - yearly_growth: 年增率 (%) - cumulative_revenue: 累計營收 - 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.2/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 burden of behavioral disclosure. It transparently describes the return envelope (success, data, error, tool), the structure of the nested revenue_data list, and clearly states that failures are returned as error responses with possible causes such as invalid symbol, unpublished data, or source unavailability. This goes beyond minimal expectations, though it does not disclose details like data freshness or pagination.

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-structured with sections for summary, examples, Args, Returns, and Raises, and important information is front-loaded in the first sentence. While the first two sentences are slightly redundant, every subsequent section provides useful detail without fluff. The overall length is justified by the absence of an output schema.

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?

Given there is no output schema and no annotations, the description fulfills the full burden by detailing the return value structure (success, data, error, tool), the nested revenue items with their fields, and failure modes. For a simple one-parameter query tool, this is complete enough for an agent to invoke the tool correctly and interpret the response without additional context.

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 provides only a bare string parameter 'symbol' with 0% schema description coverage. The description compensates by defining symbol as '公司股票代碼' and giving concrete examples ('2330' for TSMC, '2454' for MediaTek). This gives an agent enough semantic understanding to format the argument correctly, though it could add format constraints such as numeric string length or exchange rules.

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 verb '取得' (get) and the resource '公司月營收資訊' (company monthly revenue information), and expands on the specific data points included (revenue, YoY growth, MoM growth). This distinguishes it from sibling tools like get_company_income_statement or get_stock_monthly_trading by focusing on monthly revenue data rather than broader financial statements or trading statistics.

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 implies usage is appropriate when querying monthly revenue data of a company, with examples for specific stock symbols. However, it does not explicitly state when to use this tool versus alternatives, nor does it provide exclusions or conditions, so the guidance remains implied rather than explicit.

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