Skip to main content
Glama
@cmssy/mcp-server

@cmssy/mcp-server

Official

Update cart config

update_cart_config
Destructive

Configures workspace commerce settings such as currencies, tax rates, shipping methods, cart limits, order fields, and B2B options; only provided fields change, while arrays replace full lists.

Instructions

Configure the workspace's commerce settings: default and additional currencies, whether prices include tax, tax rates, shipping methods, custom order fields, stock thresholds, cart limits, session lifetimes and the B2B toggles. Only provided fields change; arrays replace the whole list. companyTaxRounding is the workspace's VAT rounding for company buyers who read net prices (a company can override it with set_company_tax_rounding); consumers are always rounded per_line. sellerCountry and reverseChargeNote drive reverse charge: a company with a verified EU VAT id of another member state (set_company_vat_verified) pays 0% VAT and its orders carry the note. An order shipped out of the EU VAT area, or to any other country from a sellerCountry outside the EU, is zero-rated as an export for any buyer, with exportNote on the order. Nothing is converted between currencies: a sales channel sells in one of them (create_sales_channel currency), and every price in an additional currency is set explicitly (set_product_currency_prices, set_product_variants, set_price_list_entries currency, shippingMethods currencyPrices). Which models the store sells is not set here: a model is sellable when its product capability is enabled (update_model, product.enabled).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "update_cart_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxRatesNo
exportNoteNoLegal note frozen on export orders (goods shipped out of the EU VAT area, or from a seller outside the EU to another country), up to 500 characters, e.g. the local export provision; null or empty restores the default wording
orderFieldsNoCustom fields kept on every order. Replaces the whole list; removing a field keeps the values orders already hold.
sellerCountryNoISO 3166-1 alpha-2 country the workspace sells from, e.g. PL (Greece is GR, not its VAT prefix EL); null clears it. Reverse charge needs it: a company with a verified EU VAT id of another member state is zero-rated (set_company_vat_verified). Goods shipped out of the EU VAT area, or from a seller outside the EU to any other country, are zero-rated as an export
sessionTTLDaysNoDays a guest cart survives without activity (1-365)
autoCloseOrdersNoClose an order once it is paid and fulfilled, reopen it when that stops being true (default on)
defaultCurrencyNoISO 4217 code, e.g. EUR - the catalogue's base currency. Locked while any additional currency exists
loggedInTTLDaysNoDays a signed-in member's cart survives without activity (1-365)
maxItemsPerCartNoDistinct lines a cart may hold (1-50)
shippingMethodsNo
defaultTaxRateIdNo
enableSavedCartsNoB2B: let members save carts for later
pricesIncludeTaxNoTrue when catalogue prices are gross (tax inside)
returnWindowDaysNoDays after delivery a customer may request a return from the storefront; null = no limit. The merchant can always open one
lowStockThresholdNo
reverseChargeNoteNoLegal note frozen on reverse-charge orders, up to 500 characters; null or empty restores the default Article 196 wording
companyTaxRoundingNoHow VAT is rounded for company buyers who read net prices: per_line (default) rounds each line, per_rate rounds once per rate. A company can override it with set_company_tax_rounding; consumers are always per_line
maxQuantityPerItemNoUnits of one line a cart may hold (1-999)
enableQuoteRequestsNoB2B: let members turn a cart into a quote request
additionalCurrenciesNoOther currencies the workspace sells in through sales channels, at most 9; replaces the list, [] removes them all. Removing one a sales channel sells in is refused (CURRENCY_IN_USE). Prices in a removed currency are kept but price nothing
reservationTtlMinutesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changedv0.73.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / additionalCurrencies
      Added value: +{
      +  "description": "Other currencies the workspace sells in through sales channels, at most 9; replaces the list, [] removes them all. Removing one a sales channel sells in is refused (CURRENCY_IN_USE). Prices in a removed currency are kept but price nothing",
      +  "items": {
      +    "pattern": "^[A-Z]{3}$",
      +    "type": "string"
      +  },
      +  "maxItems": 9,
      +  "type": "array"
      +}
    • addedInput schema / properties / autoCloseOrders
      Added value: +{
      +  "description": "Close an order once it is paid and fulfilled, reopen it when that stops being true (default on)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / companyTaxRounding
      Added value: +{
      +  "description": "How VAT is rounded for company buyers who read net prices: per_line (default) rounds each line, per_rate rounds once per rate. A company can override it with set_company_tax_rounding; consumers are always per_line",
      +  "enum": [
      +    "per_line",
      +    "per_rate"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / defaultCurrency / description
      Previous value: -"ISO 4217 code, e.g. EUR"New value: +"ISO 4217 code, e.g. EUR - the catalogue's base currency. Locked while any additional currency exists"
    • addedInput schema / properties / enableQuoteRequests
      Added value: +{
      +  "description": "B2B: let members turn a cart into a quote request",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / enableSavedCarts
      Added value: +{
      +  "description": "B2B: let members save carts for later",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / exportNote
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Legal note frozen on export orders (goods shipped out of the EU VAT area, or from a seller outside the EU to another country), up to 500 characters, e.g. the local export provision; null or empty restores the default wording"
      +}
    • addedInput schema / properties / loggedInTTLDays
      Added value: +{
      +  "description": "Days a signed-in member's cart survives without activity (1-365)",
      +  "maximum": 365,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / maxItemsPerCart
      Added value: +{
      +  "description": "Distinct lines a cart may hold (1-50)",
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / maxQuantityPerItem
      Added value: +{
      +  "description": "Units of one line a cart may hold (1-999)",
      +  "maximum": 999,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / orderFields
      Added value: +{
      +  "description": "Custom fields kept on every order. Replaces the whole list; removing a field keeps the values orders already hold.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "customerCanSet": {
      +        "description": "Offered at checkout and shown back to the customer; otherwise staff only",
      +        "type": "boolean"
      +      },
      +      "description": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "key": {
      +        "description": "Identifier the value is stored under, e.g. giftMessage",
      +        "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
      +        "type": "string"
      +      },
      +      "label": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Label per language, e.g. { \"en\": \"Gift message\" }",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "maxLength": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "maxValue": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "minLength": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "minValue": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "options": {
      +        "description": "Choices of a select field; required for select, refused otherwise",
      +        "items": {
      +          "properties": {
      +            "label": {
      +              "additionalProperties": {
      +                "type": "string"
      +              },
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "value": {
      +              "minLength": 1,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "value",
      +            "label"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "pattern": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "required": {
      +        "description": "Checkout refuses an order without it; only with customerCanSet",
      +        "type": "boolean"
      +      },
      +      "type": {
      +        "enum": [
      +          "text",
      +          "number",
      +          "date",
      +          "select",
      +          "boolean",
      +          "email",
      +          "phone",
      +          "url"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "label",
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / productSources
      Removed value: -{
      -  "description": "Models that act as product sources, each with its own record field mapping. Replaces the whole list.",
      -  "items": {
      -    "properties": {
      -      "fieldMapping": {
      -        "properties": {
      -          "currency": {
      -            "type": "string"
      -          },
      -          "imageUrl": {
      -            "type": "string"
      -          },
      -          "name": {
      -            "type": "string"
      -          },
      -          "price": {
      -            "type": "string"
      -          },
      -          "sku": {
      -            "type": "string"
      -          },
      -          "taxRate": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "modelSlug": {
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "modelSlug"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / returnWindowDays
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 365,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Days after delivery a customer may request a return from the storefront; null = no limit. The merchant can always open one"
      +}
    • addedInput schema / properties / reverseChargeNote
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Legal note frozen on reverse-charge orders, up to 500 characters; null or empty restores the default Article 196 wording"
      +}
    • addedInput schema / properties / sellerCountry
      Added value: +{
      +  "anyOf": [
      +    {
      +      "pattern": "^[A-Z]{2}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "ISO 3166-1 alpha-2 country the workspace sells from, e.g. PL (Greece is GR, not its VAT prefix EL); null clears it. Reverse charge needs it: a company with a verified EU VAT id of another member state is zero-rated (set_company_vat_verified). Goods shipped out of the EU VAT area, or from a seller outside the EU to any other country, are zero-rated as an export"
      +}
    • addedInput schema / properties / sessionTTLDays
      Added value: +{
      +  "description": "Days a guest cart survives without activity (1-365)",
      +  "maximum": 365,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / shippingMethods / items / properties / countries
      Added value: +{
      +  "description": "ISO 3166-1 alpha-2 codes the method ships to; omit or [] for everywhere",
      +  "items": {
      +    "maxLength": 2,
      +    "minLength": 2,
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / shippingMethods / items / properties / currencyPrices
      Added value: +{
      +  "description": "The method's price and subtotal bounds in additional currencies; price, minSubtotal, maxSubtotal and freeAbove above are in the default currency. A cart in a currency the method has no price in is not offered the method. Omit to keep the stored ones; [] clears them",
      +  "items": {
      +    "properties": {
      +      "currency": {
      +        "description": "One of the workspace's additional currencies",
      +        "pattern": "^[A-Z]{3}$",
      +        "type": "string"
      +      },
      +      "freeAbove": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Free from this subtotal (minor units); null = never"
      +      },
      +      "maxSubtotal": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Offered only up to this subtotal (minor units); null = no cap"
      +      },
      +      "minSubtotal": {
      +        "anyOf": [
      +          {
      +            "maximum": 9007199254740991,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Offered only from this subtotal (minor units); null = no floor"
      +      },
      +      "price": {
      +        "description": "Shipping charge, minor units",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "currency",
      +      "price"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 9,
      +  "type": "array"
      +}
    • addedInput schema / properties / shippingMethods / items / properties / freeAbove
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Shipping is free from this cart subtotal (minor units); null = never"
      +}
    • addedInput schema / properties / shippingMethods / items / properties / maxSubtotal
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Offered only up to this cart subtotal (minor units); null = no cap"
      +}
    • addedInput schema / properties / shippingMethods / items / properties / minSubtotal
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Offered only from this cart subtotal (minor units); null = no floor"
      +}
    • changedInput schema / properties / shippingMethods / items / properties / price / description
      Previous value: -"Shipping charge, minor units"New value: +"Shipping charge, minor units of the default currency"
  2. First observedv0.73.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true; the description adds the concrete overwrite rule (arrays replace the whole list) and the downstream effects of settings — reverse-charge zero-rating for verified EU VAT ids, export zero-rating with exportNote on orders, and no currency conversion at all (a sales channel sells in one currency). It stops short of stating required permissions or what the response returns, but the destructive mechanics are disclosed.

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 configuration inventory, then the mutation semantics, then the tax/currency rules, then the explicit exclusion — a sensible order for a 21-parameter tool. It is dense but nearly every sentence carries a non-obvious rule; the currency-conversion paragraph is slightly long-winded with its nested tool references.

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 21-parameter, all-optional mutation with no output schema, the description supplies the hard part — how tax rounding, reverse charge and export zero-rating interact, and that nothing is auto-converted between currencies. Individual numeric bounds and simple booleans are left to the 76%-covered schema, which is an acceptable division of labor, though the destructive scope of list replacement could be restated more prominently.

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 76%, so a baseline of 3 applies; the description earns above that by explaining the cross-field semantics the schema cannot: companyTaxRounding applies only to company buyers reading net prices while consumers are always per_line, and sellerCountry plus reverseChargeNote jointly drive reverse-charge/export treatment. It does not touch several parameters (autoCloseOrders, returnWindowDays, enableQuoteRequests, reservationTtlMinutes), leaving those to 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?

States a specific verb and resource ("Configure the workspace's commerce settings") and then enumerates the exact domains covered: currencies, tax-inclusive pricing, tax rates, shipping methods, order fields, stock thresholds, cart limits, session lifetimes and B2B toggles. It also fences off out-of-scope behavior ("Which models the store sells is not set here") and names the sibling that owns it, so an agent can separate this from update_model or set_company_tax_rounding without opening a schema.

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?

Gives clear in-scope vs out-of-scope routing: companyTaxRounding can be overridden via set_company_tax_rounding, per-currency prices are set through set_product_currency_prices/set_price_list_entries, and product sellability goes through update_model. It is explicit about partial-update semantics ("Only provided fields change; arrays replace the whole list"). What it lacks is tool-level selection guidance against peers such as clear_cart_config or get_site_config for reading current values.

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

Deploy Server

Other Tools