naftiko: 1.0.0-alpha2 info: label: WooCommerce REST API — Product Variations description: 'WooCommerce REST API — Product Variations. 5 operations. Lead operation: WooCommerce List All Product Variations. Self-contained Naftiko capability covering one Woocommerce business surface.' tags: - Woocommerce - Product Variations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: WOOCOMMERCE_API_KEY: WOOCOMMERCE_API_KEY capability: consumes: - type: http namespace: rest-product-variations baseUri: https://example.com/wp-json/wc/v3 description: WooCommerce REST API — Product Variations business capability. Self-contained, no shared references. resources: - name: products-product_id-variations path: /products/{product_id}/variations operations: - name: listproductvariations method: GET description: WooCommerce List All Product Variations outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createproductvariation method: POST description: WooCommerce Create a Product Variation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: products-product_id-variations-id path: /products/{product_id}/variations/{id} operations: - name: getproductvariation method: GET description: WooCommerce Retrieve a Product Variation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateproductvariation method: PUT description: WooCommerce Update a Product Variation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteproductvariation method: DELETE description: WooCommerce Delete a Product Variation outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: basic username: '{{env.WOOCOMMERCE_USER}}' password: '{{env.WOOCOMMERCE_PASS}}' exposes: - type: rest namespace: rest-product-variations-rest port: 8080 description: REST adapter for WooCommerce REST API — Product Variations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/products/{product-id}/variations name: products-product-id-variations description: REST surface for products-product_id-variations. operations: - method: GET name: listproductvariations description: WooCommerce List All Product Variations call: rest-product-variations.listproductvariations outputParameters: - type: object mapping: $. - method: POST name: createproductvariation description: WooCommerce Create a Product Variation call: rest-product-variations.createproductvariation with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/products/{product-id}/variations/{id} name: products-product-id-variations-id description: REST surface for products-product_id-variations-id. operations: - method: GET name: getproductvariation description: WooCommerce Retrieve a Product Variation call: rest-product-variations.getproductvariation outputParameters: - type: object mapping: $. - method: PUT name: updateproductvariation description: WooCommerce Update a Product Variation call: rest-product-variations.updateproductvariation with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproductvariation description: WooCommerce Delete a Product Variation call: rest-product-variations.deleteproductvariation outputParameters: - type: object mapping: $. - type: mcp namespace: rest-product-variations-mcp port: 9090 transport: http description: MCP adapter for WooCommerce REST API — Product Variations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: woocommerce-list-all-product-variations description: WooCommerce List All Product Variations hints: readOnly: true destructive: false idempotent: true call: rest-product-variations.listproductvariations outputParameters: - type: object mapping: $. - name: woocommerce-create-product-variation description: WooCommerce Create a Product Variation hints: readOnly: false destructive: false idempotent: false call: rest-product-variations.createproductvariation with: body: tools.body outputParameters: - type: object mapping: $. - name: woocommerce-retrieve-product-variation description: WooCommerce Retrieve a Product Variation hints: readOnly: true destructive: false idempotent: true call: rest-product-variations.getproductvariation outputParameters: - type: object mapping: $. - name: woocommerce-update-product-variation description: WooCommerce Update a Product Variation hints: readOnly: false destructive: false idempotent: true call: rest-product-variations.updateproductvariation with: body: tools.body outputParameters: - type: object mapping: $. - name: woocommerce-delete-product-variation description: WooCommerce Delete a Product Variation hints: readOnly: false destructive: true idempotent: true call: rest-product-variations.deleteproductvariation outputParameters: - type: object mapping: $.