Cocktails By Ingredient
cocktails_by_ingredientList all TheCocktailDB cocktails that contain a specific ingredient (e.g., 'vodka', 'lime juice'). Returns cocktail id, name, and thumbnail only, use get_cocktail to retrieve full recipes.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ingredient": "vodka"
},
"name": "cocktails_by_ingredient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ingredient | Yes | Ingredient name to filter by (e.g., "vodka", "gin") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | Number of cocktails found | |
| cocktails | Yes | List of cocktails containing the ingredient | |
| ingredient | Yes | Ingredient searched for |