Twinkle HubTwinkle Hub

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

tw_search_foods_by_nutrient

의료·식품 · 9개🇹🇼 대만읽기 전용

關鍵字 / 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="穀物")

파라미터

이름타입설명
nutrient *string
sortstring
min_per_100gnumber
max_per_100gnumber
food_categorystring
limitinteger
원본 JSON 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"
}

호출 방법

스타터 — 파라미터는 위 표 참조
tw_search_foods_by_nutrient({ nutrient: "…" })