Twinkle HubTwinkle Hub
登入

📌 2026-08-17 新增:⚖️ 台灣法條時光機 — 歷史法條原文 · 修法沿革 · 全文檢索 · 條文關聯圖(935 個 dataset · 35,454+ 筆 row)

查看完整 Changelog →

依營養素排行食物 (鈉/蛋白質/鈣 等)

tw_search_foods_by_nutrient

台灣​專屬MIT

**關鍵字 / Keywords**: 食物 營養素 高蛋白 高鈣 low-carb search foods by nutrient nutrient-based

依單一營養素排行食物 (per 100g) — 衛福部食品營養成分 dataset 8543.

Args:
    nutrient: 分析項 substring (e.g. "鈉", "蛋白質", "鐵", "鈣",
              "膳食纖維", "膽固醇"). 自動 alias 蛋白質→粗蛋白 etc.
    sort: "desc" (高→低, default) | "asc" (低→高)
    min_per_100g / max_per_100g: 數值 filter (e.g. 找 鈉 > 1000 mg/100g)
    food_category: 食品分類 substring (e.g. "魚貝類", "穀物類")
    limit: 1..500 (default 20)

典型用例:
    「鈉含量最高 20 名食物」     → tw_search_foods_by_nutrient("鈉")
    「高蛋白質低脂食物」          → 兩個 call: search by 粗蛋白 + 篩 max 粗脂肪
    「全穀類含鐵排行」           → tw_search_foods_by_nutrient("鐵",
                                                          food_category="穀物")

輸入 schema

{
  "properties": {
    "nutrient": {
      "title": "Nutrient",
      "type": "string"
    },
    "sort": {
      "default": "desc",
      "title": "Sort",
      "type": "string"
    },
    "min_per_100g": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Min Per 100G"
    },
    "max_per_100g": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Max Per 100G"
    },
    "food_category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Food Category"
    },
    "limit": {
      "default": 20,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "nutrient"
  ],
  "title": "tw_search_foods_by_nutrientArguments",
  "type": "object"
}

呼叫​方式

配置​好 Twinkle Hub 的 MCP client 後,​agent 會​看到 tw_search_foods_by_nutrient。直接讓它呼叫​即可,​例如:

# Ask Claude / any MCP client:
請用 tw_search_foods_by_nutrient 處理 "…"。

# It will call:
tw_search_foods_by_nutrient(input="…")

尚未​設定 Client?

Claude Desktop 約 3 分鐘即可完成​設定 — 下載 .mcpb 檔案並雙擊​即可,或參閱​文件中的各 Client 安裝​步驟。

查看使用者設定​文件