Skip to main content
Glama

SendaMeal Storefront

add_item_to_cart

Add products to shopping cart with automatic cart creation

Add products and gift certificates to your shopping cart. If no cart exists, this tool will automatically create a new cart and add the items to it. Perfect for starting a new shopping session or adding more items to an existing cart.

Use this tool when customers want to:

  • Add new products to their cart

  • Start shopping by adding their first item

  • Add gift certificates to their purchase

  • Add multiple items in a single operation

Features:

  • Automatic cart creation if none exists

  • Support for both regular products and gift certificates

  • Multi-currency and multi-locale support

  • Batch operations for adding multiple items at once

  • Handles product variants, quantities, and custom properties

Flow:

  • Call 'search_products' tool to find products by search term.

  • Call 'get_product_details' tool to get product variants and images.

  • Call 'add_item_to_cart' tool to create new cart with item

  • Call 'create_checkout_url' tool to generate a checkout URL for the cart.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
cartYes
messageNo
successYes

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the burden of disclosing behavior. It reveals automatic cart creation, support for product variants, and multi-currency/locale support. However, it claims 'batch operations for adding multiple items at once' while the input schema only accepts a single item object, which is misleading. Missing details about side effects or other behaviors.

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 well-organized with headings and bullet points, front-loading the main purpose. It is somewhat verbose but each section adds value. A few sentences could be trimmed without losing clarity.

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

Completeness3/5

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

The tool has a complex nested schema and no annotations, but the description provides a clear flow and feature list. However, the inaccurate batch claim and lack of detail on what happens when a cart already exists reduce completeness. The output schema exists, but the description doesn't clarify return behavior.

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 0%, so the description should compensate. It mentions 'product variants, quantities, and custom properties', which aligns with variantEntityId, quantity, and selectedOptions. But it doesn't explain the structure or required fields in detail, and the batch claim may mislead parameter usage.

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 adds products and gift certificates to a shopping cart, with automatic cart creation. It distinguishes itself from siblings like remove_item_from_cart and update_cart_item by explicitly mentioning adding items and creating carts.

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 provides a 'Use this tool when' list and a flow showing when to call this tool relative to search_products, get_product_details, and create_checkout_url. However, it doesn't explicitly mention when NOT to use it (e.g., versus update_cart_item).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose: searching products, fetching details, adding/removing/updating cart items, and creating a checkout URL. There is no functional overlap between the six tools.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case (e.g., search_products, add_item_to_cart, create_checkout_url). This makes the toolset predictable and easy to navigate.

Tool Count5/5

Six tools is well-scoped for a storefront server, covering the essential product discovery and cart management lifecycle without being bloated or too sparse.

Completeness3/5

The toolset covers product search, product details, cart additions/updates/removals, and checkout URL generation, but lacks a way to view the current cart contents. This is a notable gap since agents need to know what is already in the cart to manage it effectively.

Resources