Queries and mutations for managing Managed MCP Servers in the platform.
Queries
Query MCP Servers
| Arguments | |
|---|---|
sortArray of String | |
limitInt | |
offsetInt | |
Query MCP Server types
Get MCP Server
| Arguments | |
|---|---|
idString | |
keyString | |
Get MCP Server type
| Arguments | |
|---|---|
type | Can be CommerceMCP, or UCPShopperMCP |
majorVersionString | |
Get MCP Server limits
Mutations
Create MCP Server
| Arguments | |
|---|---|
draft | |
Update MCP Server
| Arguments | |
|---|---|
idString | |
keyString | |
versionLong | |
actionsArray of McpServerUpdateAction | |
Delete MCP Server
| Arguments | |
|---|---|
idString | |
keyString | |
versionLong | |
Output types
McpServer
Represents an MCP Server configuration that exposes a set of tools to AI agents via the Model Context Protocol.
idString | Unique identifier of the MCP Server. |
versionLong | Current version of the MCP Server. |
keyString | User-defined unique identifier of the MCP Server within a Project. |
nameString | Localized name. Pass locale for a single-locale read, or
acceptLanguage to try each locale in order and return the first match.
Returns null when the resource has no name or no matching locale. |
nameAllLocalesArray of LocalizedString | All locale entries of name as (locale, value) pairs. |
descriptionString | Localized description. Same resolution semantics as name. |
descriptionAllLocalesArray of LocalizedString | All locale entries of description as (locale, value) pairs. |
authenticationMode | Determines how AI agents authenticate when connecting to the MCP Server. Can beCommercetoolsIdentity, ClientCredentials, or BuyerIdentity |
state | State of the MCP Server. A Can be Disabled MCP Server rejects all AI agent tool requests.Enabled, or Disabled |
createdAt | Date and time (UTC) the MCP Server was initially created. |
lastModifiedAt | Date and time (UTC) the MCP Server was last updated. |
versionModifiedAt | |
createdBy | IDs and references that created the MCP Server. |
lastModifiedBy | IDs and references that last modified the MCP Server. |
mcpServer | Configuration of the MCP Server connection. |
McpServerAuthenticationMode
CommercetoolsIdentityClientCredentialsBuyerIdentity
McpServerState
EnabledDisabled
McpServerConfig
type | Can be CommerceMCP, or UCPShopperMCP |
majorVersionString | |
urlString | |
toolsArray of String | |
toolCustomizationsArray of ToolCustomization |
ToolCustomization
tools/list and tools/call
time. At least one of description or a non-empty parameters list MUST
be present; a customization with neither has no effect and is rejected at
write time. Parameter names within parameters MUST be unique.toolString | Name of the tool to customize, such as read_products or create_orders. Must be one of the tools enabled on the MCP Server. |
descriptionString | Replacement description for the tool, shown to the AI agent. |
parametersArray of ParameterOverride | Overrides applied to individual parameters of the tool's input schema. |
ParameterOverride
description, const, default, or enum MUST be present.
const is mutually exclusive with both default and enum.nameString | Name of the parameter in the tool's input schema to override. |
descriptionString | Replacement description for the parameter, shown to the AI agent. |
const | Pins the parameter to a fixed value. Mutually exclusive with default and enum. |
default | Default value applied when the caller omits the parameter. Mutually exclusive with const. |
enumArray of JsonPrimitive | Restricts accepted values to this set. Mutually exclusive with const. |
McpServerQueryResult
McpServerTypeCatalogEntry
type | Can be CommerceMCP, or UCPShopperMCP |
majorVersionString | |
toolsArray of McpServerCatalogTool |
McpServerCatalogTool
nameString | |
descriptionString | |
operationType | Can be read, or write |
groupsArray of String |
McpToolOperationType
readwrite
McpServerLimits
total |
McpServerType
CommerceMCPUCPShopperMCP
Input types
McpServerDraft
Draft representation for creating a new MCP Server.
keyString | User-defined unique identifier for the MCP Server. Must be unique within the Project. |
nameArray of LocalizedStringItemInputType | Name of the MCP Server. |
descriptionArray of LocalizedStringItemInputType | Description of the MCP Server. |
authenticationMode | Determines how AI agents authenticate when connecting to the MCP Server. Can beCommercetoolsIdentity, ClientCredentials, or BuyerIdentity |
state | Initial state of the MCP server. Defaults to Can be Disabled when omitted, so a
newly created server is inert until a user deliberately enables it.Enabled, or Disabled |
mcpServer | Configuration of the MCP Server connection. |
McpServerAuthenticationMode
CommercetoolsIdentityClientCredentialsBuyerIdentity
McpServerState
EnabledDisabled
McpServerConfigDraft
commerce | |
ucpShopper |
CommerceMcpServerConfigDraft
Connection configuration for creating or updating a Commerce MCP Server.
majorVersionString | Major version of this MCP Server type. Supported versions are v1 (deprecated) and v4. |
toolsArray of String | List of tools to enable for this MCP Server. Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. To reduce the number of LLM turns and improve overall performance, it is advisable to expose only the tools that are necessary, or at least minimize the exposure of tools that are unlikely to be used. |
toolCustomizationsArray of ToolCustomizationDraft | Per-tool customizations applied at tools/list and tools/call time, such as overriding a tool's description or constraining its parameters. |
jsonOutputFiltering | Response field-filtering rules applied to tool responses. |
toolOutputFormatting | JsonToTabular |
ToolCustomizationDraft
ToolCustomization. At least one of description or a
non-empty parameters list MUST be present; parameter names within
parameters MUST be unique. The tool field is validated against the
server's (type, majorVersion) tool set at write time.toolString | |
descriptionString | |
parametersArray of ParameterOverrideDraft |
ParameterOverrideDraft
ParameterOverride. At least one of description, const,
default, or enum MUST be present. const is mutually exclusive
with both default and enum.nameString | |
descriptionString | |
const | Pins the parameter to a fixed value. Mutually exclusive with default and enum. |
default | Default value applied when the caller omits the parameter. Mutually exclusive with const. |
enumArray of JsonPrimitive | Restricts accepted values to this set. Mutually exclusive with const. |
McpServerJsonOutputFilteringInput
fieldPathsToKeepArray of String | |
redactedWithString |
McpServerJsonOutputFilteringMatcherInput
fieldPathsArray of String | |
fieldNamesArray of String | |
fieldNameContainsArray of String |
McpServerToolOutputFormatting
JsonToTabular
UcpShopperMcpServerConfigDraft
CommerceMcpServerConfigDraft without the response-shaping options the
skeleton does not yet support.majorVersionString | |
toolsArray of String | |
toolCustomizationsArray of ToolCustomizationDraft | |
store | |
country | |
locale | |
distributionChannel | |
supplyChannel | |
currencyCode | |
requireStockForChannelBoolean | Defaults to false when omitted. |
inventoryMode | Can be None, TrackOnly, ReserveOnOrder, or ReserveOnCart |
StoreKeyReferenceInput
Input reference to a Store by its key.
keyString |
ChannelReferenceInput
Input reference to a Channel by its id.
idString |
InventoryMode
None- No inventory checks or modifications when adding items or ordering. Default for a new cart.
TrackOnly- Orders decrement the available quantity on the matching inventory entry; ordering fails only when no inventory entry exists for a line item.
ReserveOnOrder- Line items are reserved only for the duration of the ordering transaction; creating an order fails when an unavailable line item exists.
ReserveOnCart- Items are reserved when added to the cart. Not supported by this service.
McpServerUpdateAction
setTools | |
addTool | |
removeTool | |
setToolCustomizations | |
addToolCustomization | |
removeToolCustomization | |
setName | |
setDescription | |
setState | |
setAuthenticationMode | |
setJsonOutputFiltering | |
setToolOutputFormatting | |
setStore | |
setCountry | |
setLocale | |
setDistributionChannel | |
setSupplyChannel | |
setCurrencyCode | |
setRequireStockForChannel | |
setInventoryMode |
Update actions
Add Tool
Adds a single tool to the MCP Server's list of enabled tools. Has no effect if the tool is already present.
toolString | Name of the tool to add, such as read_products or create_orders. |
Add Tool Customization
toolCustomization | Tool customization to add. |
ToolCustomizationDraft
ToolCustomization. At least one of description or a
non-empty parameters list MUST be present; parameter names within
parameters MUST be unique. The tool field is validated against the
server's (type, majorVersion) tool set at write time.toolString | |
descriptionString | |
parametersArray of ParameterOverrideDraft |
ParameterOverrideDraft
ParameterOverride. At least one of description, const,
default, or enum MUST be present. const is mutually exclusive
with both default and enum.nameString | |
descriptionString | |
const | Pins the parameter to a fixed value. Mutually exclusive with default and enum. |
default | Default value applied when the caller omits the parameter. Mutually exclusive with const. |
enumArray of JsonPrimitive | Restricts accepted values to this set. Mutually exclusive with const. |
Remove Tool
toolString | Name of the tool to remove, such as read_products or create_orders. |
Remove Tool Customization
toolCustomization | Identifies the tool customization to remove by its tool name. |
RemoveToolCustomizationTarget
toolString | Name of the tool whose customization is removed. |
Set Authentication Mode
version of the MCP Server stays the same.authenticationMode | New authentication mode to set. Can beCommercetoolsIdentity, ClientCredentials, or BuyerIdentity |
McpServerAuthenticationMode
CommercetoolsIdentityClientCredentialsBuyerIdentity
Set Country
country |
Set Currency Code
currencyCode |
Set Description
Sets the localized description of the MCP Server.
descriptionArray of LocalizedStringItemInputType | Value to set. If omitted, the existing description is removed. |
Set Distribution Channel
distributionChannel |
ChannelReferenceInput
Input reference to a Channel by its id.
idString |
Set Inventory Mode
inventoryMode | Can be None, TrackOnly, ReserveOnOrder, or ReserveOnCart |
InventoryMode
None- No inventory checks or modifications when adding items or ordering. Default for a new cart.
TrackOnly- Orders decrement the available quantity on the matching inventory entry; ordering fails only when no inventory entry exists for a line item.
ReserveOnOrder- Line items are reserved only for the duration of the ordering transaction; creating an order fails when an unavailable line item exists.
ReserveOnCart- Items are reserved when added to the cart. Not supported by this service.
Set JSON Output Filtering
mcpServer.jsonOutputFiltering. Omitting the value clears the
field; the whole object is replaced atomically when a value is provided.jsonOutputFiltering | Value to set. The existing configuration is entirely replaced with this value. If absent, the existing filtering configuration is removed. |
McpServerJsonOutputFilteringInput
fieldPathsToKeepArray of String | |
redactedWithString |
McpServerJsonOutputFilteringMatcherInput
fieldPathsArray of String | |
fieldNamesArray of String | |
fieldNameContainsArray of String |
Set Locale
locale |
Set Name
Sets the localized name of the MCP Server.
nameArray of LocalizedStringItemInputType | Value to set. If omitted, the existing name is removed. |
Set Require Stock For Channel
requireStockForChannelBoolean |
Set State
Disabled MCP Server rejects all AI agent tool requests.state | New state to set. Can beEnabled, or Disabled |
McpServerState
EnabledDisabled
Set Store
store |
StoreKeyReferenceInput
Input reference to a Store by its key.
keyString |
Set Supply Channel
supplyChannel |
ChannelReferenceInput
Input reference to a Channel by its id.
idString |
Set Tool Customizations
toolCustomizationsArray of ToolCustomizationDraft | New list of tool customizations. Replaces the existing list entirely. |
ToolCustomizationDraft
ToolCustomization. At least one of description or a
non-empty parameters list MUST be present; parameter names within
parameters MUST be unique. The tool field is validated against the
server's (type, majorVersion) tool set at write time.toolString | |
descriptionString | |
parametersArray of ParameterOverrideDraft |
ParameterOverrideDraft
ParameterOverride. At least one of description, const,
default, or enum MUST be present. const is mutually exclusive
with both default and enum.nameString | |
descriptionString | |
const | Pins the parameter to a fixed value. Mutually exclusive with default and enum. |
default | Default value applied when the caller omits the parameter. Mutually exclusive with const. |
enumArray of JsonPrimitive | Restricts accepted values to this set. Mutually exclusive with const. |
Set Tool Output Formatting
mcpServer.toolOutputFormatting. Omitting the value clears the
field.toolOutputFormatting | JsonToTabular |
McpServerToolOutputFormatting
JsonToTabular
Set Tools
Replaces the entire list of tools enabled for the MCP Server.
toolsArray of String | New list of tools to set. Replaces the existing tools list entirely.
Use all to enable all available tools, or specify individual tool names such as read_products or create_orders. |