v1cocktail
Search for cocktail recipes by name or ingredients using the API Ninjas Cocktail API, supporting partial matches and ingredient-based filtering.
Instructions
API Ninjas Cocktail API endpoint. Either name or ingredients parameter must be set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "v1cocktail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | name of cocktail. This parameter supports partial matches (e.g. bloody will match bloody mary and bloody margarita) | |
| ingredients | No | comma-separated string of ingredients to search. Only cocktails containing all listed ingredients will be returned. For example, to search cocktails containing Vodka and lemon juice, use vodka,lemon juice. |