Skip to main content
Glama

trigger_catalog_sync

Sync catalog data between versions in SAP Commerce Cloud. Specify catalog ID, source version, and target version to update product information.

Instructions

Trigger a catalog synchronization between versions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
catalogIdYesCatalog ID to sync
sourceVersionYesSource catalog version (e.g., "Staged")
targetVersionYesTarget catalog version (e.g., "Online")

Implementation Reference

  • MCP tool handler for 'trigger_catalog_sync' that extracts arguments and calls the HybrisClient.triggerCatalogSync method.
    case 'trigger_catalog_sync': result = await hybrisClient.triggerCatalogSync( args?.catalogId as string, args?.sourceVersion as string, args?.targetVersion as string ); break;
  • Input schema definition for the trigger_catalog_sync tool, specifying required parameters: catalogId, sourceVersion, targetVersion.
    inputSchema: { type: 'object', properties: { catalogId: { type: 'string', description: 'Catalog ID to sync', }, sourceVersion: { type: 'string', description: 'Source catalog version (e.g., "Staged")', }, targetVersion: { type: 'string', description: 'Target catalog version (e.g., "Online")', }, }, required: ['catalogId', 'sourceVersion', 'targetVersion'], },
  • src/index.ts:232-253 (registration)
    Tool registration in the tools array, defining name, description, and schema for list tools endpoint.
    { name: 'trigger_catalog_sync', description: 'Trigger a catalog synchronization between versions', inputSchema: { type: 'object', properties: { catalogId: { type: 'string', description: 'Catalog ID to sync', }, sourceVersion: { type: 'string', description: 'Source catalog version (e.g., "Staged")', }, targetVersion: { type: 'string', description: 'Target catalog version (e.g., "Online")', }, }, required: ['catalogId', 'sourceVersion', 'targetVersion'], }, },
  • Core implementation of catalog sync in HybrisClient class, sends POST request to HAC /console/sync/execute with catalog parameters using authenticated HAC session.
    async triggerCatalogSync( catalogId: string, sourceVersion: string, targetVersion: string ): Promise<{ success: boolean; message: string }> { const formData = new URLSearchParams({ catalogId, sourceVersion, targetVersion, }); return this.hacRequest<{ success: boolean; message: string }>( `${this.hacPrefix}/console/sync/execute`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: formData, } ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Emenowicz/hybris-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server