Skip to main content
Glama
BACH-AI-Tools

Cocktail By Api Ninjas

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoname of cocktail. This parameter supports partial matches (e.g. bloody will match bloody mary and bloody margarita)
ingredientsNocomma-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.
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It mentions the API endpoint but doesn't disclose behavioral traits like rate limits, authentication needs, error handling, or response format. The description adds minimal context beyond the parameters, leaving significant gaps in understanding how the tool behaves operationally.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two sentences that directly address the tool's usage and parameter requirements. It's front-loaded with the API endpoint context and avoids unnecessary details. However, it could be slightly more structured by explicitly stating the action (e.g., 'search cocktails').

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no annotations, no output schema, and 2 parameters, the description is incomplete. It covers parameter constraints but lacks information on behavioral aspects, response format, and error handling. For a tool interacting with an external API, this leaves the agent with insufficient context to use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description adds value by clarifying that at least one parameter must be set, which isn't in the schema (since required is empty), but it doesn't provide additional meaning beyond what the schema offers. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool accesses an API endpoint for cocktails, which gives a general purpose, but it's vague about the specific action (e.g., search, retrieve, list). It mentions parameters but doesn't clearly distinguish the verb+resource combination, such as 'search cocktails by name or ingredients.' With no siblings, differentiation isn't needed, but the purpose lacks specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides implied usage by stating that either 'name' or 'ingredients' must be set, which offers some context for when to use the tool. However, it lacks explicit guidance on when to choose one parameter over the other, alternatives, or exclusions. With no sibling tools, this is adequate but not comprehensive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BACH-AI-Tools/cocktail_by_api_ninjas'

If you have feedback or need assistance with the MCP directory API, please join our Discord server