Skip to main content
Glama
Anujsup

Milkbasket MCP Server

by Anujsup

remove_from_cart

Reduce the quantity of a product in your Milkbasket cart or remove it entirely by setting quantity to zero. Specify product ID and price to update or delete the item.

Instructions

DECREASE the quantity of a product in the basket or DELETE it entirely. Use this when the quantity is going DOWN (e.g. reducing from 3 to 2, or removing a product). Set quantity=0 to completely remove the product from the cart. To ADD a new product or INCREASE quantity, use add_to_cart instead. Requires authentication. Get productId and price from get_basket or get_extended_basket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDelivery date in YYYY-MM-DD format. Defaults to tomorrow if not provided.
priceYesThe selling price of the product
quantityNoNew target quantity. Use 0 to completely remove the product. Default: 0
productIdYesThe product ID to decrease or remove
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses authentication requirements and the special meaning of quantity=0 for complete removal. It does not mention return format or error cases, but for a simple mutation, the key behavioral aspects are covered.

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 concise (three sentences), front-loaded with the core purpose, and every sentence contributes: usage condition, alternative tool, auth requirement, and parameter sourcing. No redundant or irrelevant text.

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

Completeness4/5

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

Despite lacking an output schema and annotations, the description covers purpose, usage, auth, and parameter sourcing. It could have mentioned return behavior, but given the tool's simplicity and the availability of get_basket for checking results, the description is sufficiently complete for an agent to invoke it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value by emphasizing the zero-quantity removal behavior and by directing the agent to source productId and price from specific basket-getting tools, which goes beyond the schema's field descriptions.

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

Purpose5/5

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

The description clearly states the tool's action: 'DECREASE the quantity of a product in the basket or DELETE it entirely.' This is a specific verb and resource, and it explicitly contrasts with the sibling tool add_to_cart, making it easy to distinguish.

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

Usage Guidelines5/5

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

Usage is explicitly conditioned on quantity change direction: 'Use this when the quantity is going DOWN.' It also names the alternative for increasing/adding: 'To ADD a new product or INCREASE quantity, use add_to_cart instead.' Additionally, it tells where to obtain required parameters: 'Get productId and price from get_basket or get_extended_basket.'

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/Anujsup/milkbasket-mcp'

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