Calories & Recipes | Nutrista
Count calories, log meals and recipes, and message real registered dietitians.
使うべきか
品質と安全性
検出事項(2)
- LOWget_food 内
- LOWget_recipe 内
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"nutrista": {
"url": "https://nutrista.app/api/ai/chatgpt/mcp"
}
}
}リモートエンドポイント
https://nutrista.app/api/ai/chatgpt/mcpstreamable-httpできること
ツール一覧
ツール(10)
🟢search_foods(query, limit, language)
Use this when the user asks how many calories, how much protein, carbs, fat or fiber a food has, or wants to compare foods. Searches the Nutrista food database (thousands of foods and grocery products, values per 100 g) and shows food cards. Food values are estimates.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_food(food_id, grams, language)
Use this when the user wants the full nutrition of one food, or the values for a given amount (for example 150 g of rice). Returns calories, macros, sugar, saturated fat, salt, potassium, glycemic index and allergens.
入力スキーマ
{
"type": "object",
"properties": {
"food_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"grams": {
"type": "number",
"minimum": 1,
"maximum": 5000
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"food_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡log_food(food_id, recipe_id, amount, unit, meal_type, ...)
Use this when the user asks to log, track or add one food or recipe they ate to their Nutrista diary. Takes a Nutrista food id or recipe id, an amount and the meal. The entry shows up in the Nutrista mobile app.
入力スキーマ
{
"type": "object",
"properties": {
"food_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"amount": {
"type": "number",
"minimum": 0.1,
"maximum": 5000
},
"unit": {
"type": "string",
"enum": [
"g",
"kg",
"ml",
"l",
"pieces",
"package",
"box",
"bottle",
"can",
"bag",
"bunch",
"slice",
"tbsp",
"tsp",
"cup",
"oz",
"lb",
"pinch",
"dash",
"clove",
"head",
"jar",
"packet"
]
},
"meal_type": {
"type": "string",
"enum": [
"breakfast",
"lunch",
"dinner",
"snacks",
"pre_workout",
"post_workout"
]
},
"eaten_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"amount",
"meal_type"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢log_meal(items, meal_type, eaten_at, language)
Use this when the user wants a meal in their Nutrista food diary, for example from a photo of what they ate or a list like 'chicken, rice and salad'. Takes each food in plain words with estimated grams, matches every item to the Nutrista food database and shows the matched list, which the user can change before pressing Save. Nothing is saved until the user presses Save.
入力スキーマ
{
"type": "object",
"properties": {
"items": {
"minItems": 1,
"maxItems": 15,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"grams": {
"type": "number",
"minimum": 1,
"maximum": 3000
}
},
"required": [
"name",
"grams"
]
}
},
"meal_type": {
"type": "string",
"enum": [
"breakfast",
"lunch",
"dinner",
"snacks",
"pre_workout",
"post_workout"
]
},
"eaten_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"items",
"meal_type"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡save_meal(items, meal_type, eaten_at, language)
Saves a checked meal list to the user's Nutrista food diary when the user presses Save in the list.
入力スキーマ
{
"type": "object",
"properties": {
"items": {
"minItems": 1,
"maxItems": 15,
"type": "array",
"items": {
"type": "object",
"properties": {
"food_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"grams": {
"type": "number",
"minimum": 1,
"maximum": 3000
}
},
"required": [
"food_id",
"grams"
]
}
},
"meal_type": {
"type": "string",
"enum": [
"breakfast",
"lunch",
"dinner",
"snacks",
"pre_workout",
"post_workout"
]
},
"eaten_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"items",
"meal_type"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_diary_stats(from, to, language)
Use this when the user asks how they ate over a period: calories and macros per day, averages, results against their goals, or the foods they log most often. Reads only the totals of the user's Nutrista food diary and shows a chart.
入力スキーマ
{
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_recipes(query, max_minutes, limit, language)
Use this when the user wants recipe ideas, for example 'high-protein breakfast', 'vegetarian dinner', 'low-carb lunch under 30 minutes', including recipes they want to save. Searches Nutrista's recipe database and shows recipe cards with calories and macros per serving.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"max_minutes": {
"type": "integer",
"minimum": 5,
"maximum": 300
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 8
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_recipe(recipe_id, language)
Use this when the user wants the ingredients, steps or nutrition of one Nutrista recipe.
入力スキーマ
{
"type": "object",
"properties": {
"recipe_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"recipe_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡save_recipe(name, description, servings, cook_time_minutes, difficulty, ...)
Use this when the user asks to save, keep or add a recipe to their Nutrista account. Takes the recipe's name, ingredients and steps; each ingredient is matched to a food in the Nutrista database so calories are counted. The recipe shows up in the Nutrista mobile app under My recipes.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 150
},
"description": {
"type": "string",
"maxLength": 600
},
"servings": {
"type": "integer",
"minimum": 1,
"maximum": 50
},
"cook_time_minutes": {
"type": "integer",
"minimum": 0,
"maximum": 1440
},
"difficulty": {
"type": "string",
"enum": [
"easy",
"medium",
"hard"
]
},
"ingredients": {
"minItems": 1,
"maxItems": 40,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 120
},
"amount": {
"type": "number",
"minimum": 0,
"maximum": 10000
},
"unit": {
"type": "string",
"enum": [
"g",
"kg",
"ml",
"l",
"pieces",
"package",
"box",
"bottle",
"can",
"bag",
"bunch",
"slice",
"tbsp",
"tsp",
"cup",
"oz",
"lb",
"pinch",
"dash",
"clove",
"head",
"jar",
"packet"
]
}
},
"required": [
"name",
"amount",
"unit"
]
}
},
"steps": {
"minItems": 1,
"maxItems": 30,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1000
}
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"required": [
"name",
"servings",
"cook_time_minutes",
"ingredients",
"steps"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_my_recipes(query, language)
Use this when the user asks about recipes they saved in Nutrista.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 100
},
"language": {
"type": "string",
"minLength": 2,
"maxLength": 10
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}コミュニティ
エビデンス