Mailchimp · Capability

Mailchimp Marketing API — Interests

Mailchimp Marketing API — Interests. 5 operations. Lead operation: Mailchimp List Interests in Category. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpInterests

What You Can Do

GET
Getlistsidinterestcategoriesidinterests — Mailchimp List Interests in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests
POST
Postlistsidinterestcategoriesidinterests — Mailchimp Add Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests
GET
Getlistsidinterestcategoriesidinterestsid — Mailchimp Get Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
PATCH
Patchlistsidinterestcategoriesidinterestsid — Mailchimp Update Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
DELETE
Deletelistsidinterestcategoriesidinterestsid — Mailchimp Delete Interest in Category
/v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}

MCP Tools

mailchimp-list-interests-category

Mailchimp List Interests in Category

read-only idempotent
mailchimp-add-interest-category

Mailchimp Add Interest in Category

mailchimp-get-interest-category

Mailchimp Get Interest in Category

read-only idempotent
mailchimp-update-interest-category

Mailchimp Update Interest in Category

idempotent
mailchimp-delete-interest-category

Mailchimp Delete Interest in Category

idempotent

Capability Spec

marketing-interests.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Interests
  description: 'Mailchimp Marketing API  — Interests. 5 operations. Lead operation: Mailchimp List Interests in Category.
    Self-contained Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Interests
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-interests
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Interests business capability. Self-contained, no shared references.
    resources:
    - name: lists-list_id-interest-categories-interest_category_id-interests
      path: /lists/{list_id}/interest-categories/{interest_category_id}/interests
      operations:
      - name: getlistsidinterestcategoriesidinterests
        method: GET
        description: Mailchimp List Interests in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - 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: postlistsidinterestcategoriesidinterests
        method: POST
        description: Mailchimp Add Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: body
          in: body
          type: object
          required: true
    - name: lists-list_id-interest-categories-interest_category_id-interests-interest_id
      path: /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id}
      operations:
      - name: getlistsidinterestcategoriesidinterestsid
        method: GET
        description: Mailchimp Get Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: interest_id
          in: path
          type: string
          description: The specific interest or 'group name'.
          required: true
        - 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: patchlistsidinterestcategoriesidinterestsid
        method: PATCH
        description: Mailchimp Update Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: interest_id
          in: path
          type: string
          description: The specific interest or 'group name'.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletelistsidinterestcategoriesidinterestsid
        method: DELETE
        description: Mailchimp Delete Interest in Category
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: list_id
          in: path
          type: string
          description: The unique ID for the list.
          required: true
        - name: interest_category_id
          in: path
          type: string
          description: The unique ID for the interest category.
          required: true
        - name: interest_id
          in: path
          type: string
          description: The specific interest or 'group name'.
          required: true
  exposes:
  - type: rest
    namespace: marketing-interests-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Interests. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/lists/{list-id}/interest-categories/{interest-category-id}/interests
      name: lists-list-id-interest-categories-interest-category-id-interests
      description: REST surface for lists-list_id-interest-categories-interest_category_id-interests.
      operations:
      - method: GET
        name: getlistsidinterestcategoriesidinterests
        description: Mailchimp List Interests in Category
        call: marketing-interests.getlistsidinterestcategoriesidinterests
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postlistsidinterestcategoriesidinterests
        description: Mailchimp Add Interest in Category
        call: marketing-interests.postlistsidinterestcategoriesidinterests
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id}
      name: lists-list-id-interest-categories-interest-category-id-interests-interest-id
      description: REST surface for lists-list_id-interest-categories-interest_category_id-interests-interest_id.
      operations:
      - method: GET
        name: getlistsidinterestcategoriesidinterestsid
        description: Mailchimp Get Interest in Category
        call: marketing-interests.getlistsidinterestcategoriesidinterestsid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          interest_id: rest.interest_id
          fields: rest.fields
          exclude_fields: rest.exclude_fields
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchlistsidinterestcategoriesidinterestsid
        description: Mailchimp Update Interest in Category
        call: marketing-interests.patchlistsidinterestcategoriesidinterestsid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          interest_id: rest.interest_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelistsidinterestcategoriesidinterestsid
        description: Mailchimp Delete Interest in Category
        call: marketing-interests.deletelistsidinterestcategoriesidinterestsid
        with:
          list_id: rest.list_id
          interest_category_id: rest.interest_category_id
          interest_id: rest.interest_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-interests-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mailchimp Marketing API  — Interests. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: mailchimp-list-interests-category
      description: Mailchimp List Interests in Category
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-interests.getlistsidinterestcategoriesidinterests
      with:
        list_id: tools.list_id
        interest_category_id: tools.interest_category_id
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-interest-category
      description: Mailchimp Add Interest in Category
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-interests.postlistsidinterestcategoriesidinterests
      with:
        list_id: tools.list_id
        interest_category_id: tools.interest_category_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-interest-category
      description: Mailchimp Get Interest in Category
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-interests.getlistsidinterestcategoriesidinterestsid
      with:
        list_id: tools.list_id
        interest_category_id: tools.interest_category_id
        interest_id: tools.interest_id
        fields: tools.fields
        exclude_fields: tools.exclude_fields
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-update-interest-category
      description: Mailchimp Update Interest in Category
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-interests.patchlistsidinterestcategoriesidinterestsid
      with:
        list_id: tools.list_id
        interest_category_id: tools.interest_category_id
        interest_id: tools.interest_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-delete-interest-category
      description: Mailchimp Delete Interest in Category
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: marketing-interests.deletelistsidinterestcategoriesidinterestsid
      with:
        list_id: tools.list_id
        interest_category_id: tools.interest_category_id
        interest_id: tools.interest_id
      outputParameters:
      - type: object
        mapping: $.