naftiko: 1.0.0-alpha2 info: label: commercetools Import API — ImportOperations description: 'commercetools Import API — ImportOperations. 2 operations. Lead operation: List import operations in a container. Self-contained Naftiko capability covering one Commercetools business surface.' tags: - Commercetools - ImportOperations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COMMERCETOOLS_API_KEY: COMMERCETOOLS_API_KEY capability: consumes: - type: http namespace: import-importoperations baseUri: https://import.{region}.commercetools.com description: commercetools Import API — ImportOperations business capability. Self-contained, no shared references. resources: - name: projectKey-import-containers-importContainerKey-import-operations path: /{projectKey}/import-containers/{importContainerKey}/import-operations operations: - name: listimportoperations method: GET description: List import operations in a container outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: state in: query type: string description: Filter operations by their current processing state. - name: projectKey-import-containers-importContainerKey-import-operations-id path: /{projectKey}/import-containers/{importContainerKey}/import-operations/{id} operations: - name: getimportoperationbyid method: GET description: Get an import operation by ID outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.COMMERCETOOLS_API_KEY}}' exposes: - type: rest namespace: import-importoperations-rest port: 8080 description: REST adapter for commercetools Import API — ImportOperations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{projectkey}/import-containers/{importcontainerkey}/import-operations name: projectkey-import-containers-importcontainerkey-import-operations description: REST surface for projectKey-import-containers-importContainerKey-import-operations. operations: - method: GET name: listimportoperations description: List import operations in a container call: import-importoperations.listimportoperations with: state: rest.state outputParameters: - type: object mapping: $. - path: /v1/{projectkey}/import-containers/{importcontainerkey}/import-operations/{id} name: projectkey-import-containers-importcontainerkey-import-operations-id description: REST surface for projectKey-import-containers-importContainerKey-import-operations-id. operations: - method: GET name: getimportoperationbyid description: Get an import operation by ID call: import-importoperations.getimportoperationbyid outputParameters: - type: object mapping: $. - type: mcp namespace: import-importoperations-mcp port: 9090 transport: http description: MCP adapter for commercetools Import API — ImportOperations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-import-operations-container description: List import operations in a container hints: readOnly: true destructive: false idempotent: true call: import-importoperations.listimportoperations with: state: tools.state outputParameters: - type: object mapping: $. - name: get-import-operation-id description: Get an import operation by ID hints: readOnly: true destructive: false idempotent: true call: import-importoperations.getimportoperationbyid outputParameters: - type: object mapping: $.