Skip to main content
Glama
the-real-py

Bar Assistant MCP Server

by the-real-py

remove_ingredients_from_shelf

Remove specific ingredients from your bar shelf inventory by their IDs to keep your cocktail-making supplies current and accurate.

Instructions

Remove ingredients from your bar shelf by their IDs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ingredient_idsYesArray of ingredient IDs to remove from shelf
bar_idNoBar ID (optional if BAR_ASSISTANT_BAR_ID is set)

Implementation Reference

  • The handler logic within the call_tool function that removes ingredients from the bar shelf by posting the ingredient IDs to the API batch-delete endpoint.
    elif name == "remove_ingredients_from_shelf":
        bar_id = arguments.get("bar_id") or CONFIG["bar_id"]
        if not bar_id:
            return [TextContent(
                type="text",
                text="Error: No bar ID provided. Use list_bars to find your bar ID or set BAR_ASSISTANT_BAR_ID."
            )]
        
        ingredient_ids = [int(id) for id in arguments["ingredient_ids"]]
        
        response = await client.post(
            f"{CONFIG['api_url']}/bars/{int(bar_id)}/ingredients/batch-delete",
            headers=get_headers(bar_id),
            json={"ingredients": ingredient_ids}
        )
        response.raise_for_status()
        
        return [TextContent(
            type="text",
            text=f"Successfully removed {len(ingredient_ids)} ingredients from your bar shelf!"
        )]
  • Tool registration in list_tools() including the name, description, and input schema for validating ingredient_ids (required array of numbers) and optional bar_id.
    Tool(
        name="remove_ingredients_from_shelf",
        description="Remove ingredients from your bar shelf by their IDs",
        inputSchema={
            "type": "object",
            "properties": {
                "ingredient_ids": {
                    "type": "array",
                    "items": {"type": "number"},
                    "description": "Array of ingredient IDs to remove from shelf"
                },
                "bar_id": {
                    "type": "number",
                    "description": "Bar ID (optional if BAR_ASSISTANT_BAR_ID is set)"
                }
            },
            "required": ["ingredient_ids"]
        }
    ),
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 of behavioral disclosure. It states the action is 'Remove,' implying a destructive mutation, but does not specify permissions required, whether removal is permanent or reversible, error handling, or rate limits. This is a significant gap for a mutation tool with zero annotation coverage.

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

Conciseness5/5

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

The description is a single, efficient sentence with zero waste. It is front-loaded with the core action and resource, making it easy to parse quickly. Every word earns its place without redundancy or unnecessary elaboration.

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's complexity as a destructive mutation with no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits, return values, error conditions, and usage context. For a tool that modifies data, this minimal description does not provide enough information for safe and effective use.

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 ('ingredient_ids' and 'bar_id') with clear descriptions. The description adds no additional meaning beyond what the schema provides, such as format details or usage examples. Baseline 3 is appropriate when the schema does the heavy lifting.

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

Purpose4/5

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

The description clearly states the action ('Remove') and resource ('ingredients from your bar shelf'), specifying removal by IDs. It distinguishes from siblings like 'add_ingredients_to_shelf' by indicating removal rather than addition, though it doesn't explicitly contrast with other tools. The purpose is specific and actionable.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description does not mention prerequisites, exclusions, or contextual cues (e.g., use after 'get_shelf_ingredients' to identify IDs). It lacks explicit when/when-not instructions or named alternatives, leaving usage unclear beyond the basic action.

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/the-real-py/bar-assistant-mcp'

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