



{
  "agent_meta": {
    "type": "agent_cart",
    "schema": "mcc_agent",
    "schema_version": "1.1",
    "format": "mcc.agent-cart",
    "generated_at": "2026-11-07",
    "generated_from": "cart-agentic.tpl",
    "source_of_truth": "MCC Commerce Engine",
    "is_agentic_view": true
  },

  "request_context": {
    "language": {
      "id_lang": 2,
      "iso_code": "en",
      "url_prefix": "\/en\/"
    },
    "delivery_country": {
      "id_country": 1,
      "iso_code": "DE",
      "name": "Germany"
    },
    "currency": {
      "id_currency": 1,
      "iso_code": "EUR",
      "name": "Euro",
      "symbol": "\u20ac"
    },
    "session_source": {
      "uses_cookie_context": true,
      "country_from_cookie": 1,
      "currency_from_context": 1
    },
    "complete": true
  },

  "context_switching": {
    "available": true,
    "mode": "on_demand_resolver",
    "stateless": true,
    "resolver": "links.agent.contexts",
    "fetch_when": "requested_context_differs",
    "dimensions": [
      "language",
      "delivery_country",
      "currency"
    ],
    "unspecified_dimensions": "preserve_request_context",
    "selection": {
      "match": "exact",
      "source": "available_contexts",
      "result": "available_contexts[].target_url"
    },
    "target": {
      "resource": "cart",
      "id_cart": 0
    },
    "full_context_in_target_url": true,
    "requires_session_persistence": false,
    "manual_url_construction_allowed": false,
    "instruction": "When a requested language, delivery country or currency differs from request_context, fetch links.agent.contexts. Preserve every context dimension not explicitly changed, select the exact matching entry and follow target_url unchanged. Reload the cart response after switching because prices, taxes, shipping and availability may change."
  },

  "instructions": {
    "purpose": "This endpoint provides the current cart in the active language, delivery-country and currency context.",
    "rules": [
      "All item prices, taxes, shipping costs, totals, availability and actions apply only to request_context.",
      "Use the exact action URLs supplied by this response. Do not construct cart-action URLs manually.",
      "Respect minimal_quantity, maximal_quantity, quantity_available and action availability.",
      "When language, delivery country or currency must change, fetch links.agent.contexts and follow the exact matching target_url unchanged.",
      "Reload the cart after every context switch or cart mutation.",
      "Do not invent prices, taxes, shipping, availability, cart contents or checkout state."
    ]
  },

  "capabilities": {
    "root": true,
    "sitemap": true,
    "search": true,
    "product": true,
    "category": true,
    "cart": true,
    "contexts": true,
    "cart_mutation": true,
    "checkout": false
  },

  "links": {
    "self": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/cart?setCountry=1&setCurrency=1",
    "agent": {
      "root": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/root?setCountry=1&setCurrency=1",
      "sitemap": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/sitemap?setCountry=1&setCurrency=1",
      "search": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/search?setCountry=1&setCurrency=1",
      "cart": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/cart?setCountry=1&setCurrency=1",
      "contexts": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/contexts?resource=cart&setCountry=1&setCurrency=1"
    },
    "human": {
      "cart": "https:\/\/musiccraft-instruments.com\/en\/order",
      "checkout": "https:\/\/musiccraft-instruments.com\/en\/order"
    }
  },

  "cart": {
    "id_cart": 0,
    "id_lang": 2,
    "id_shop": 1,
    "id_currency": 1,
    "id_customer": 0,
    "id_guest": 4154,
    "id_carrier": 0,
    "date_add": null,
    "date_upd": null,

    "currency": {
      "id_currency": 1,
      "name": "Euro",
      "iso_code": "EUR",
      "iso_code_num": "978",
      "sign": "\u20ac",
      "conversion_rate": 1
    },

    "items": [
          ],

    "shipping": {
      "selection_mode": "shop_managed",
      "agent_selectable": false,
      "tax_excluded": 0,
      "tax_included": 0
    },

    "totals": {
      "products_tax_excluded": 0,
      "products_tax_included": 0,

      "shipping_tax_excluded": 0,
      "shipping_tax_included": 0,

      "discounts_tax_excluded": 0,
      "discounts_tax_included": 0,

      "wrapping_tax_excluded": 0,
      "wrapping_tax_included": 0,

      "tax_total": 0,

      "total_tax_excluded": 0,
      "total_tax_included": 0,

      "total_weight": 0,

      "currency": "EUR"
    },

    "agent_actions": {
      "cart": {
        "type": "cart_read",
        "method": "GET",
        "url": "https:\/\/musiccraft-instruments.com\/en\/mcc\/mcc_agent\/cart?setCountry=1&setCurrency=1"
      },

      "clear_cart": {
        "type": "cart_clear",
        "method": "POST",
        "url": "https:\/\/musiccraft-instruments.com\/index.php?fc=module&module=mcc_agent&controller=action&action=clear_cart&setCountry=1&setCurrency=1"
      },

      "view_cart": {
        "method": "GET",
        "type": "browser_navigation",
        "url": "https:\/\/musiccraft-instruments.com\/en\/order",
        "description": "Open the regular cart or checkout page"
      },

      "checkout": {
        "human": {
          "type": "browser_navigation",
          "url": "https:\/\/musiccraft-instruments.com\/en\/order",
          "description": "Open the regular cart or checkout page"
        },
        "agent": {
          "type": "agent_checkout_session",
          "available": false,
          "fallback": "human_checkout",
          "url": "https:\/\/musiccraft-instruments.com\/index.php?fc=module&module=mcc_stripefastcheckout&controller=create"
        }
      }
    }
  }
}