Skip to main content
Glama

Angeo Magento 2 MCP (Demo Store)

Add to Angeo Demo Store cart

add_to_cart

Add a product to an existing guest cart by SKU, using the sku field from search_products or get_product.

USE THIS when the user wants to buy something or add it to their cart. For configurable products (clothing with sizes and colours), first call get_product to see the variants, then add the specific variant SKU the user chose — if they have not chosen yet, ask which size and colour before calling this. Alternatively pass the parent SKU plus an "options" map such as {"size": "M", "color": "Blue"}; if the selection is incomplete the error lists every required attribute and its available values, so you can correct it in one more call.

Grouped products cannot be added as a single unit — the error lists their component SKUs to add individually. Bundle and downloadable products are not supported.

Returns the updated cart with line items and totals. Fails with a clear message if the SKU does not exist, is out of stock, or if adding it would exceed the store's order limits. Applies to Angeo Demo Store only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cart_id": "<cart_id>",
      "sku": "<sku>"
    },
    "name": "add_to_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoQuantity to add. Defaults to 1.
skuYesExact product SKU from search_products / get_product results. For configurable products this may be either the specific variant SKU or the parent SKU (then "options" is required).
cart_idYesCart ID returned by create_cart.
optionsNoFor configurable parent SKUs only: map of attribute code to the desired option label or option id, e.g. {"size": "M", "color": "Blue"}. Ignored for other product types.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the mutation/safety profile (readOnly=false, destructive=false, idempotent=false), so the description carries the rest and does so well: it discloses the return payload (updated cart with line items and totals) and specific failure modes (nonexistent SKU, out of stock, order limits), and describes error payloads that are actionable for correction.

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?

Front-loaded with the core action, then a clearly marked usage block and failure block. It is dense and runs several sentences long, and the configurable-product paragraph could be tightened, but every sentence carries operational information rather than restating the name.

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

Completeness5/5

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

For a mutating, non-idempotent cart tool with a nested options object and no output schema, the description covers prerequisites (cart_id from create_cart), variant resolution, unsupported product types, return shape, and error behavior — everything needed to invoke and recover 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 goes slightly beyond by explaining the sku/options interplay as a decision (specific variant SKU vs parent SKU plus options map) and by stating that incomplete selections return the full required-attribute list. It does not add format detail for qty or cart_id, which the schema already handles.

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?

States a specific verb, resource, and scope: 'Add a product to an existing guest cart by SKU.' It also names the upstream siblings (search_products / get_product) that supply the SKU and scopes itself to Angeo Demo Store, so an agent can place it precisely among cart/checkout siblings.

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?

Explicit activation condition ('USE THIS when the user wants to buy something'), an ordered workflow for configurable products (get_product -> variant SKU, or parent SKU + options), plus concrete exclusions: grouped products must be added by component, bundles and downloadables are unsupported. Both when-to-use and when-not-to-use are covered.

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.

Resources