Skip to main content
Glama

import_impex

Import data into SAP Commerce Cloud using ImpEx format to manage products, orders, and system configurations through structured content.

Instructions

Import data using ImpEx format

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
impexContentYesImpEx content to import

Implementation Reference

  • The core handler function that executes the Impex import by posting the impexContent to the HAC /console/impex/import endpoint using hacRequest.
    async importImpex(impexContent: string): Promise<ImpexResult> { const formData = new URLSearchParams({ scriptContent: impexContent, }); const result = await this.hacRequest<{ success: boolean; output: string; errors?: string[] }>( `${this.hacPrefix}/console/impex/import`, { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: formData, } ); return { success: result.success, message: result.output, errors: result.errors, }; }
  • src/index.ts:161-174 (registration)
    MCP tool registration defining the 'import_impex' tool, including its input schema.
    { name: 'import_impex', description: 'Import data using ImpEx format', inputSchema: { type: 'object', properties: { impexContent: { type: 'string', description: 'ImpEx content to import', }, }, required: ['impexContent'], }, },
  • TypeScript interface defining the output structure of the importImpex function.
    export interface ImpexResult { success: boolean; message: string; errors?: string[]; }
  • Switch case in the MCP tool call handler that dispatches to the importImpex method.
    case 'import_impex': result = await hybrisClient.importImpex(args?.impexContent as string); break;

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