naftiko: 1.0.0-alpha2 info: label: VTex Catalog API — Legacy Collection description: 'VTex Catalog API — Legacy Collection. 4 operations. Lead operation: VTex Create collection. Self-contained Naftiko capability covering one Vtex business surface.' tags: - Vtex - Legacy Collection created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VTEX_API_KEY: VTEX_API_KEY capability: consumes: - type: http namespace: catalog-legacy-collection baseUri: https://{accountName}.{environment}.com.br description: VTex Catalog API — Legacy Collection business capability. Self-contained, no shared references. resources: - name: api-catalog-pvt-collection path: /api/catalog/pvt/collection operations: - name: post method: POST description: VTex Create collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-catalog-pvt-collection-collectionId path: /api/catalog/pvt/collection/{collectionId} operations: - name: get method: GET description: VTex Get collection by ID outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: collectionId in: path type: integer description: Collection's unique numerical identifier. required: true - name: put method: PUT description: VTex Update Collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: collectionId in: path type: integer description: Collection's unique numerical identifier. required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: VTex Delete Collection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: collectionId in: path type: integer description: Collection's unique numerical identifier. required: true authentication: type: apikey key: X-VTEX-API-AppKey value: '{{env.VTEX_API_KEY}}' placement: header exposes: - type: rest namespace: catalog-legacy-collection-rest port: 8080 description: REST adapter for VTex Catalog API — Legacy Collection. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/catalog/pvt/collection name: api-catalog-pvt-collection description: REST surface for api-catalog-pvt-collection. operations: - method: POST name: post description: VTex Create collection call: catalog-legacy-collection.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/catalog/pvt/collection/{collectionid} name: api-catalog-pvt-collection-collectionid description: REST surface for api-catalog-pvt-collection-collectionId. operations: - method: GET name: get description: VTex Get collection by ID call: catalog-legacy-collection.get with: collectionId: rest.collectionId outputParameters: - type: object mapping: $. - method: PUT name: put description: VTex Update Collection call: catalog-legacy-collection.put with: collectionId: rest.collectionId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: VTex Delete Collection call: catalog-legacy-collection.delete with: collectionId: rest.collectionId outputParameters: - type: object mapping: $. - type: mcp namespace: catalog-legacy-collection-mcp port: 9090 transport: http description: MCP adapter for VTex Catalog API — Legacy Collection. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: vtex-create-collection description: VTex Create collection hints: readOnly: false destructive: false idempotent: false call: catalog-legacy-collection.post with: body: tools.body outputParameters: - type: object mapping: $. - name: vtex-get-collection-id description: VTex Get collection by ID hints: readOnly: true destructive: false idempotent: true call: catalog-legacy-collection.get with: collectionId: tools.collectionId outputParameters: - type: object mapping: $. - name: vtex-update-collection description: VTex Update Collection hints: readOnly: false destructive: false idempotent: true call: catalog-legacy-collection.put with: collectionId: tools.collectionId body: tools.body outputParameters: - type: object mapping: $. - name: vtex-delete-collection description: VTex Delete Collection hints: readOnly: false destructive: true idempotent: true call: catalog-legacy-collection.delete with: collectionId: tools.collectionId outputParameters: - type: object mapping: $.