Skip to main content
Glama

Remove Product from Cart

remove_from_cart
DestructiveIdempotent

Remove a named item from the user's live Lazada cart by providing its item name. Solves cart cleanup by permanently deleting the selected product.

Instructions

Use this to permanently remove one named line from the user's live Lazada cart.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.1.1

TDQS

A4.4/5.0
Behavior4/5

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

The description explicitly discloses the destructive nature ('permanently remove'), which aligns with and adds context to the destructiveHint annotation. It also clarifies exactly what is affected ('one named line') and that it operates on the 'live' cart, going slightly beyond the boolean annotation.

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?

A single, tightly worded sentence that front-loads the action, scope, and irreversibility. There is no filler, repetition of the title, or unnecessary detail.

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?

For a simple one-parameter tool with rich annotations and an output schema, this description is sufficiently complete. It states the action, target, scope, and destructive nature. It does not cover prerequisites like an active session, but that is largely implied by the cart-focused sibling context and annotations.

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?

The schema has 0% description coverage and only an item_name string with minLength 2. The description compensates by framing the operation around a 'named line', making it clear that item_name is the identifier of the cart line to remove. Some ambiguity remains about exact matching behavior, but the mapping is strong.

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 states a specific verb ('remove'), a specific resource ('one named line from the user's live Lazada cart'), and the irreversible nature ('permanently'). This clearly distinguishes it from siblings like set_cart_quantity or select_cart_items, which modify or select rather than remove.

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

Usage Guidelines4/5

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

The description gives clear context: use this when a named line must be permanently removed from the active cart. It does not explicitly mention alternatives or exclusions, but the wording 'one named line' and 'live cart' provides enough situational clarity for this simple operation.

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

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/thebuilderscollective/lazada-community-mcp'

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