Mailchimp · Capability

Mailchimp Marketing API — Variants

Mailchimp Marketing API — Variants. 6 operations. Lead operation: Mailchimp List Product Variants. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpVariants

What You Can Do

GET
Getecommercestoresidproductsidvariants — Mailchimp List Product Variants
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants
POST
Postecommercestoresidproductsidvariants — Mailchimp Add Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants
GET
Getecommercestoresidproductsidvariantsid — Mailchimp Get Product Variant Info
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
PUT
Putecommercestoresidproductsidvariantsid — Mailchimp Add or Update Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
PATCH
Patchecommercestoresidproductsidvariantsid — Mailchimp Update Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
DELETE
Deleteecommercestoresidproductsidvariantsid — Mailchimp Delete Product Variant
/v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}

MCP Tools

mailchimp-list-product-variants

Mailchimp List Product Variants

read-only idempotent
mailchimp-add-product-variant

Mailchimp Add Product Variant

mailchimp-get-product-variant-info

Mailchimp Get Product Variant Info

read-only idempotent
mailchimp-add-update-product-variant

Mailchimp Add or Update Product Variant

idempotent
mailchimp-update-product-variant

Mailchimp Update Product Variant

idempotent
mailchimp-delete-product-variant

Mailchimp Delete Product Variant

idempotent

Capability Spec

marketing-variants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Variants
  description: 'Mailchimp Marketing API  — Variants. 6 operations. Lead operation: Mailchimp List Product Variants. Self-contained
    Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Variants
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-variants
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Variants business capability. Self-contained, no shared references.
    resources:
    - name: ecommerce-stores-store_id-products-product_id-variants
      path: /ecommerce/stores/{store_id}/products/{product_id}/variants
      operations:
      - name: getecommercestoresidproductsidvariants
        method: GET
        description: Mailchimp List Product Variants
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: count
          in: query
          type: integer
          description: The number of records to return. Default value is 10. Maximum value is 1000
        - name: offset
          in: query
          type: integer
          description: Used for [pagination](https://mailchimp.com/developer/marketing/docs/methods-parameters/#pagination),
            this it the number of records from a collection to skip. D
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
      - name: postecommercestoresidproductsidvariants
        method: POST
        description: Mailchimp Add Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: body
          in: body
          type: object
          required: true
    - name: ecommerce-stores-store_id-products-product_id-variants-variant_id
      path: /ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}
      operations:
      - name: getecommercestoresidproductsidvariantsid
        method: GET
        description: Mailchimp Get Product Variant Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: array
          description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
        - name: exclude_fields
          in: query
          type: array
          description: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
      - name: putecommercestoresidproductsidvariantsid
        method: PUT
        description: Mailchimp Add or Update Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: patchecommercestoresidproductsidvariantsid
        method: PATCH
        description: Mailchimp Update Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deleteecommercestoresidproductsidvariantsid
        method: DELETE
        description: Mailchimp Delete Product Variant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: store_id
          in: path
          type: string
          description: The store id.
          required: true
        - name: product_id
          in: path
          type: string
          description: The id for the product of a store.
          required: true
        - name: variant_id
          in: path
          type: string
          description: The id for the product variant.
          required: true
  exposes:
  - type: rest
    namespace: marketing-variants-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Variants. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ecommerce/stores/{store-id}/products/{product-id}/variants
      name: ecommerce-stores-store-id-products-product-id-variants
      description: REST surface for ecommerce-stores-store_id-products-product_id-variants.
      operations:
      - method: GET
        name: getecommercestoresidproductsidvariants
        description: Mailchimp List Product Variants
        call: marketing-variants.getecommercestoresidproductsidvariants
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          store_id: rest.store_id
          product_id: rest.product_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postecommercestoresidproductsidvariants
        description: Mailchimp Add Product Variant
        call: marketing-variants.postecommercestoresidproductsidvariants
        with:
          store_id: rest.store_id
          product_id: rest.product_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ecommerce/stores/{store-id}/products/{product-id}/variants/{variant-id}
      name: ecommerce-stores-store-id-products-product-id-variants-variant-id
      description: REST surface for ecommerce-stores-store_id-products-product_id-variants-variant_id.
      operations:
      - method: GET
        name: getecommercestoresidproductsidvariantsid
        description: Mailchimp Get Product Variant Info
        call: marketing-variants.getecommercestoresidproductsidvariantsid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          store_id: rest.store_id
          product_id: rest.product_id
          variant_id: rest.variant_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putecommercestoresidproductsidvariantsid
        description: Mailchimp Add or Update Product Variant
        call: marketing-variants.putecommercestoresidproductsidvariantsid
        with:
          store_id: rest.store_id
          product_id: rest.product_id
          variant_id: rest.variant_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchecommercestoresidproductsidvariantsid
        description: Mailchimp Update Product Variant
        call: marketing-variants.patchecommercestoresidproductsidvariantsid
        with:
          store_id: rest.store_id
          product_id: rest.product_id
          variant_id: rest.variant_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteecommercestoresidproductsidvariantsid
        description: Mailchimp Delete Product Variant
        call: marketing-variants.deleteecommercestoresidproductsidvariantsid
        with:
          store_id: rest.store_id
          product_id: rest.product_id
          variant_id: rest.variant_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-variants-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mailchimp Marketing API  — Variants. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: mailchimp-list-product-variants
      description: Mailchimp List Product Variants
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-variants.getecommercestoresidproductsidvariants
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
        store_id: tools.store_id
        product_id: tools.product_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-product-variant
      description: Mailchimp Add Product Variant
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-variants.postecommercestoresidproductsidvariants
      with:
        store_id: tools.store_id
        product_id: tools.product_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-product-variant-info
      description: Mailchimp Get Product Variant Info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-variants.getecommercestoresidproductsidvariantsid
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        store_id: tools.store_id
        product_id: tools.product_id
        variant_id: tools.variant_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-update-product-variant
      description: Mailchimp Add or Update Product Variant
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-variants.putecommercestoresidproductsidvariantsid
      with:
        store_id: tools.store_id
        product_id: tools.product_id
        variant_id: tools.variant_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-update-product-variant
      description: Mailchimp Update Product Variant
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-variants.patchecommercestoresidproductsidvariantsid
      with:
        store_id: tools.store_id
        product_id: tools.product_id
        variant_id: tools.variant_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-delete-product-variant
      description: Mailchimp Delete Product Variant
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: marketing-variants.deleteecommercestoresidproductsidvariantsid
      with:
        store_id: tools.store_id
        product_id: tools.product_id
        variant_id: tools.variant_id
      outputParameters:
      - type: object
        mapping: $.