Skip to main content
Glama
sacahan

CasualMarket

by sacahan

get_market_historical_index

Retrieve historical closing data for 10 major Taiwan stock market indices to track performance and identify trends.

Instructions

取得市場重要指數資料。

精選10個最重要的市場指數,提供完整的市場概覽:

  1. 發行量加權股價指數 - 台灣股市大盤主指數

  2. 未含金融指數 - 排除金融股的市場指數

  3. 未含電子指數 - 排除電子股的市場指數

  4. 臺灣50指數 - 台灣市值前50大企業指數

  5. 臺灣中型100指數 - 台灣中型企業代表指數

  6. 電子工業類指數 - 電子產業整體表現

  7. 金融保險類指數 - 金融保險產業指數

  8. 半導體類指數 - 半導體產業指數

  9. 電腦及週邊設備類指數 - 電腦硬體產業指數

  10. 通信網路類指數 - 通訊網路產業指數

使用範例: get_market_historical_index() # 查詢市場重要指數

Args: 無參數

Returns: MCPToolResponse[dict]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (dict): 市場指數資料,包含: * indices: 指數列表(10個),每項包含: - 日期: 資料日期 - 指數: 指數名稱 - 收盤指數: 收盤點數 - 漲跌: 漲跌符號 - 漲跌點數: 漲跌點數 - 漲跌百分比: 漲跌幅百分比 - 特殊處理註記: 特殊狀況註記 * count: 指數數量 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱 - metadata: 包含資料來源等額外資訊

Raises: 查詢失敗時返回錯誤回應,可能的原因: - 資料來源暫時無法存取 - 無法取得市場指數資料

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 and does a solid job: it details the exact return structure, error conditions, and source metadata. It also implicitly communicates read-only behavior through the verb '取得'. It stops short of stating frequency, latency, or historical depth, but this is a strong disclosure for a simple read-only tool.

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 (purpose, index list, usage, args, returns, raises) and the purpose statement is front-loaded. The 10-index list is valuable context, though the usage example more or less repeats the first line, adding slight redundancy.

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?

Given there is no output schema and no annotations, the description goes far beyond a bare phrase by documenting the full return structure and possible errors. It lacks details on time range or rendering order, but for a no-parameter tool that returns a known set of indices, this is nearly complete.

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 tool has zero parameters, which earns a baseline of 4. The description explicitly confirms 'Args: 無參數' and shows a call with empty parentheses, leaving no ambiguity for an agent.

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 the action ('取得' market index data) and the resource ('市場重要指數資料'), and enumerates the 10 specific indices included. However, it does not explicitly differentiate itself from the sibling tool get_market_index_info, such as noting that this returns historical data while the other does not.

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 provides a basic usage example but gives no guidance on when to use this tool versus alternative market index tools. There is no mention of exclusions or conditions that would route an agent to a sibling tool.

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