naftiko: 1.0.0-alpha2 info: label: BigCommerce Catalog - Product Variants — Metafields description: 'BigCommerce Catalog - Product Variants — Metafields. 5 operations. Lead operation: BigCommerce Get Product Variant Metafields. Self-contained Naftiko capability covering one Bigcommerce business surface.' tags: - Bigcommerce - Metafields created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BIGCOMMERCE_API_KEY: BIGCOMMERCE_API_KEY capability: consumes: - type: http namespace: catalog-product-variants-metafields baseUri: https://api.bigcommerce.com/stores/{store_hash}/v3 description: BigCommerce Catalog - Product Variants — Metafields business capability. Self-contained, no shared references. resources: - name: catalog-products-product_id-variants-variant_id-metafields path: /catalog/products/{product_id}/variants/{variant_id}/metafields operations: - name: getproductvariantmetafields method: GET description: BigCommerce Get Product Variant Metafields outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: variant_id in: path type: integer description: ID of the variant on a product, or on an associated Price List Record. required: true - name: page in: query type: integer description: Specifies the page number in a limited (paginated) list of products. - name: limit in: query type: integer description: Controls the number of items per page in a limited (paginated) list of products. - name: key in: query type: string description: Filter based on a metafieldʼs key. - name: namespace in: query type: string description: Filter based on a metafieldʼs namespace. - name: include_fields in: query type: string description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned. - name: exclude_fields in: query type: string description: Fields to exclude, in a comma-separated list. The specified fields will be excluded from a response. The ID cannot be excluded. - name: createproductvariantmetafield method: POST description: BigCommerce Create a Product Variant Metafield outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: variant_id in: path type: integer description: ID of the variant on a product, or on an associated Price List Record. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: catalog-products-product_id-variants-variant_id-metafields-metafield_id path: /catalog/products/{product_id}/variants/{variant_id}/metafields/{metafield_id} operations: - name: getproductvariantmetafield method: GET description: BigCommerce Get a Product Variant Metafields outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: include_fields in: query type: string description: Fields to include, in a comma-separated list. The ID and the specified fields will be returned. - name: exclude_fields in: query type: string description: Fields to exclude, in a comma-separated list. The specified fields will be excluded from a response. The ID cannot be excluded. - name: updateproductvariantmetafield method: PUT description: BigCommerce Update Product Variant Metafields outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deleteproductvariantmetafield method: DELETE description: BigCommerce Delete a Product Variant Metafield outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: X-Auth-Token value: '{{env.BIGCOMMERCE_API_KEY}}' placement: header exposes: - type: rest namespace: catalog-product-variants-metafields-rest port: 8080 description: REST adapter for BigCommerce Catalog - Product Variants — Metafields. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/catalog/products/{product-id}/variants/{variant-id}/metafields name: catalog-products-product-id-variants-variant-id-metafields description: REST surface for catalog-products-product_id-variants-variant_id-metafields. operations: - method: GET name: getproductvariantmetafields description: BigCommerce Get Product Variant Metafields call: catalog-product-variants-metafields.getproductvariantmetafields with: variant_id: rest.variant_id page: rest.page limit: rest.limit key: rest.key namespace: rest.namespace include_fields: rest.include_fields exclude_fields: rest.exclude_fields outputParameters: - type: object mapping: $. - method: POST name: createproductvariantmetafield description: BigCommerce Create a Product Variant Metafield call: catalog-product-variants-metafields.createproductvariantmetafield with: variant_id: rest.variant_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/catalog/products/{product-id}/variants/{variant-id}/metafields/{metafield-id} name: catalog-products-product-id-variants-variant-id-metafields-metafield-id description: REST surface for catalog-products-product_id-variants-variant_id-metafields-metafield_id. operations: - method: GET name: getproductvariantmetafield description: BigCommerce Get a Product Variant Metafields call: catalog-product-variants-metafields.getproductvariantmetafield with: include_fields: rest.include_fields exclude_fields: rest.exclude_fields outputParameters: - type: object mapping: $. - method: PUT name: updateproductvariantmetafield description: BigCommerce Update Product Variant Metafields call: catalog-product-variants-metafields.updateproductvariantmetafield with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteproductvariantmetafield description: BigCommerce Delete a Product Variant Metafield call: catalog-product-variants-metafields.deleteproductvariantmetafield outputParameters: - type: object mapping: $. - type: mcp namespace: catalog-product-variants-metafields-mcp port: 9090 transport: http description: MCP adapter for BigCommerce Catalog - Product Variants — Metafields. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: bigcommerce-get-product-variant-metafields description: BigCommerce Get Product Variant Metafields hints: readOnly: true destructive: false idempotent: true call: catalog-product-variants-metafields.getproductvariantmetafields with: variant_id: tools.variant_id page: tools.page limit: tools.limit key: tools.key namespace: tools.namespace include_fields: tools.include_fields exclude_fields: tools.exclude_fields outputParameters: - type: object mapping: $. - name: bigcommerce-create-product-variant-metafield description: BigCommerce Create a Product Variant Metafield hints: readOnly: false destructive: false idempotent: false call: catalog-product-variants-metafields.createproductvariantmetafield with: variant_id: tools.variant_id body: tools.body outputParameters: - type: object mapping: $. - name: bigcommerce-get-product-variant-metafields-2 description: BigCommerce Get a Product Variant Metafields hints: readOnly: true destructive: false idempotent: true call: catalog-product-variants-metafields.getproductvariantmetafield with: include_fields: tools.include_fields exclude_fields: tools.exclude_fields outputParameters: - type: object mapping: $. - name: bigcommerce-update-product-variant-metafields description: BigCommerce Update Product Variant Metafields hints: readOnly: false destructive: false idempotent: true call: catalog-product-variants-metafields.updateproductvariantmetafield with: body: tools.body outputParameters: - type: object mapping: $. - name: bigcommerce-delete-product-variant-metafield description: BigCommerce Delete a Product Variant Metafield hints: readOnly: false destructive: true idempotent: true call: catalog-product-variants-metafields.deleteproductvariantmetafield outputParameters: - type: object mapping: $.