get_taiwan_holiday_info
Check whether a given date is a Taiwan public holiday and get details including holiday name, category, and description.
Instructions
取得台灣節假日資訊。
查詢指定日期是否為台灣的國定假日,並取得節假日的詳細資訊。
使用範例: get_taiwan_holiday_info("2025-01-01") # 查詢元旦 get_taiwan_holiday_info("2025-10-06") # 查詢中秋節 get_taiwan_holiday_info("2025-10-07") # 查詢一般工作日
Args: date: 要查詢的日期,格式為 YYYY-MM-DD (例如: "2025-01-01")
Returns: MCPToolResponse[HolidayInfoData]: 統一格式的回應,包含: - success (bool): 操作是否成功 - data (HolidayInfoData): 節假日資訊,包含: * date: 查詢日期 * name: 節假日名稱(如果是節假日) * is_holiday: 是否為節假日 * holiday_category: 節假日類別 * description: 節假日描述 - error (str): 錯誤訊息(失敗時) - tool (str): 工具名稱
Raises: 查詢失敗時返回錯誤回應,可能的原因: - 日期格式錯誤 - API 服務異常 - 網路連線問題
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes |