get_tool_schema
Fetch complete calculator details, including parameter schemas, normal ranges, and references, so agents can prepare valid calculation inputs.
Instructions
📋 取得工具完整資訊 + 參數 Schema + 來源提示 (Low-Level)
整併了原本的 get_calculator_info 和 get_calculation_schema, 提供 Agent 執行計算所需的所有資訊:
工具基本資訊: 名稱、用途、專科、情境
參數 Schema: 每個參數的類型、單位、正常範圍
來源提示: 參數通常從哪裡取得 (Parameter Provenance)
參考文獻: PMID/DOI (100% 覆蓋率,Vancouver style)
Args: tool_id: 計算器 ID (從 discover() 取得) include_references: 是否包含參考文獻 (預設 True) - True: 包含完整參考文獻 (citation, PMID, DOI) - False: 省略以節省 tokens include_param_sources: 是否包含參數來源提示 (預設 True) - True: 包含 clinical_hint, common_sources, normal_range - False: 只返回基本 type/unit
Returns: 完整的工具資訊,包含: - tool_id, name, purpose - specialties, contexts (High-Level 分類) - required_params (必要參數列表) - param_schemas (每個參數的詳細 Schema) - references (參考文獻,若 include_references=True)
Example:
# 完整資訊 (預設)
get_tool_schema("ckd_epi_2021")
# 只要基本資訊 (節省 tokens)
get_tool_schema("ckd_epi_2021", include_references=False, include_param_sources=False)⏭️ 下一步: calculate(tool_id, params) 執行計算
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_id | Yes | ||
| include_references | No | ||
| include_param_sources | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||