Skip to main content
Glama

Add Product to Cart

add_to_cart

Add a chosen quantity of a Lazada product to your active cart by supplying its product URL. Resolve the need to build a cart before checkout by using this action.

Instructions

Use this to add units of one product to the user's live Lazada cart.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesA Lazada Singapore product URL from search_products.
quantityYesExplicit user-requested quantity; ask if missing.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
addedYes
messageYes
productYes
quantityNowNo
countVerifiedYes
quantityBeforeNo
requestedIncreaseYes
verificationSourceYes

Schema Changelog

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

  1. First observedv1.1.1

TDQS

A4/5.0
Behavior3/5

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

Annotations already indicate mutation (readOnlyHint=false, idempotentHint=false), so the description adds limited but useful context by specifying the target as the user's live Lazada cart and framing the operation as additive. It does not disclose auth requirements or exact side effects, but the annotations carry the core behavioral burden.

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 sentence with no filler, front-loading the action and object. Every word earns its place.

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 two-parameter tool with a complete input schema and an output schema present, the description covers the essential operation and target context. It stops short of 5 only because it does not mention session/login preconditions or clarify behavior when the product already exists in the cart.

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 parameters are already well documented. The description's 'units' and 'one product' loosely align with quantity and url but do not add new semantic detail beyond the schema.

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 ('add'), a concrete resource ('the user's live Lazada cart'), and a clear scope ('units of one product'). This semantically distinguishes it from siblings like remove_from_cart, set_cart_quantity, and add_shortlist_to_cart.

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?

'Use this to...' gives a clear and direct context for when the tool applies. It does not explicitly mention when not to use it or name alternatives, but the usage intent is unambiguous given the sibling set.

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