import_recipe
Create a recipe from a free-text ingredient list by parsing each line into matching Cronometer foods and grams, with an optional preview before saving.
Instructions
Create a recipe from a free-text ingredient list.
Cronometer's own parser matches each line ("2 tbsp ketchup", "1 cup rice") to a database food and works out the grams, the same as Import Recipe in the app. Matching is fuzzy: show the matched ingredients to the user, and run with save=false first when unsure. create_recipe is the exact alternative when food ids and grams are already known.
Args: ingredients: One ingredient per line. name: Recipe name. Defaults to the one Cronometer suggests. servings: How many portions the batch makes. save: False to only parse and preview the matches.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ingredients": "<ingredients>"
},
"name": "import_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| save | No | ||
| servings | No | ||
| ingredients | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |