Mailchimp · Capability

Mailchimp Marketing API — Unsubscribed

Mailchimp Marketing API — Unsubscribed. 2 operations. Lead operation: Mailchimp List Unsubscribed Members. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpUnsubscribed

What You Can Do

GET
Getreportsidunsubscribed — Mailchimp List Unsubscribed Members
/v1/reports/{campaign-id}/unsubscribed
GET
Getreportsidunsubscribedid — Mailchimp Get Unsubscribed Member
/v1/reports/{campaign-id}/unsubscribed/{subscriber-hash}

MCP Tools

mailchimp-list-unsubscribed-members

Mailchimp List Unsubscribed Members

read-only idempotent
mailchimp-get-unsubscribed-member

Mailchimp Get Unsubscribed Member

read-only idempotent

Capability Spec

marketing-unsubscribed.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Unsubscribed
  description: 'Mailchimp Marketing API  — Unsubscribed. 2 operations. Lead operation: Mailchimp List Unsubscribed Members.
    Self-contained Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Unsubscribed
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-unsubscribed
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Unsubscribed business capability. Self-contained, no shared references.
    resources:
    - name: reports-campaign_id-unsubscribed
      path: /reports/{campaign_id}/unsubscribed
      operations:
      - name: getreportsidunsubscribed
        method: GET
        description: Mailchimp List Unsubscribed Members
        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: campaign_id
          in: path
          type: string
          description: The unique id for the campaign.
          required: true
    - name: reports-campaign_id-unsubscribed-subscriber_hash
      path: /reports/{campaign_id}/unsubscribed/{subscriber_hash}
      operations:
      - name: getreportsidunsubscribedid
        method: GET
        description: Mailchimp Get Unsubscribed Member
        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: campaign_id
          in: path
          type: string
          description: The unique id for the campaign.
          required: true
        - name: subscriber_hash
          in: path
          type: string
          description: The MD5 hash of the lowercase version of the list member's email address.
          required: true
  exposes:
  - type: rest
    namespace: marketing-unsubscribed-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Unsubscribed. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/reports/{campaign-id}/unsubscribed
      name: reports-campaign-id-unsubscribed
      description: REST surface for reports-campaign_id-unsubscribed.
      operations:
      - method: GET
        name: getreportsidunsubscribed
        description: Mailchimp List Unsubscribed Members
        call: marketing-unsubscribed.getreportsidunsubscribed
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          campaign_id: rest.campaign_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/reports/{campaign-id}/unsubscribed/{subscriber-hash}
      name: reports-campaign-id-unsubscribed-subscriber-hash
      description: REST surface for reports-campaign_id-unsubscribed-subscriber_hash.
      operations:
      - method: GET
        name: getreportsidunsubscribedid
        description: Mailchimp Get Unsubscribed Member
        call: marketing-unsubscribed.getreportsidunsubscribedid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          campaign_id: rest.campaign_id
          subscriber_hash: rest.subscriber_hash
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-unsubscribed-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mailchimp Marketing API  — Unsubscribed. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: mailchimp-list-unsubscribed-members
      description: Mailchimp List Unsubscribed Members
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-unsubscribed.getreportsidunsubscribed
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
        campaign_id: tools.campaign_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-unsubscribed-member
      description: Mailchimp Get Unsubscribed Member
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-unsubscribed.getreportsidunsubscribedid
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        campaign_id: tools.campaign_id
        subscriber_hash: tools.subscriber_hash
      outputParameters:
      - type: object
        mapping: $.