Skip to main content
Glama

Angeo Magento 2 MCP (Demo Store)

View Angeo Demo Store cart

get_cart
Read-onlyIdempotent

Get the current contents and totals of a guest cart: line items with SKU, name, quantity and price, plus subtotal and grand total.

USE THIS whenever the user asks what is in their cart, and always before moving on to shipping — so you can show them exactly what they are about to buy. 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>"
    },
    "name": "get_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
cart_idYesCart ID returned by create_cart.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile needs no restating. The description's added value is disclosing the return payload shape (line items, subtotal, grand total) and the guest-cart restriction — useful, but it says nothing about failure modes such as a stale or expired cart_id.

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?

Two short blocks, front-loaded with the operational definition and followed by the usage trigger, with zero redundant wording. The rationale clause about showing the user what they are about to buy is brief and earns its place by motivating the pre-shipping ordering rule.

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?

With a one-parameter schema and no output schema, the description correctly compensates by spelling out the returned fields and totals. The main residual gap is error or empty-cart behavior, which an agent might need when a cart_id is invalid or the cart has no line items.

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 coverage is 100% and the single cart_id parameter is already documented as coming from create_cart, so the schema carries the load. The description only reinforces that the cart in question is a guest cart; it adds no format, validation, or reuse guidance beyond that.

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 gives a specific verb and resource ("Get the current contents and totals of a guest cart") and enumerates exactly what comes back: line items with SKU, name, quantity, price, plus subtotal and grand total. This cleanly separates it from sibling write tools like add_to_cart and from checkout-oriented tools like get_checkout.

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?

It states a clear trigger ("whenever the user asks what is in their cart") and a sequencing rule ("always before moving on to shipping"), plus a scoping note that it applies to the Angeo Demo Store only. It stops short of naming an alternative for adjacent needs such as reviewing an existing checkout, so it is strong but not fully routing-aware.

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