Mailchimp · Capability

Mailchimp Marketing API — Webhooks

Mailchimp Marketing API — Webhooks. 10 operations. Lead operation: Mailchimp List Batch Webhooks. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpWebhooks

What You Can Do

GET
Getbatchwebhooks — Mailchimp List Batch Webhooks
/v1/batch-webhooks
POST
Postbatchwebhooks — Mailchimp Add Batch Webhook
/v1/batch-webhooks
GET
Getbatchwebhook — Mailchimp Get Batch Webhook Info
/v1/batch-webhooks/{batch-webhook-id}
PATCH
Patchbatchwebhooks — Mailchimp Update Batch Webhook
/v1/batch-webhooks/{batch-webhook-id}
DELETE
Deletebatchwebhookid — Mailchimp Delete Batch Webhook
/v1/batch-webhooks/{batch-webhook-id}
GET
Getlistsidwebhooks — Mailchimp List Webhooks
/v1/lists/{list-id}/webhooks
POST
Postlistsidwebhooks — Mailchimp Add Webhook
/v1/lists/{list-id}/webhooks
GET
Getlistsidwebhooksid — Mailchimp Get Webhook Info
/v1/lists/{list-id}/webhooks/{webhook-id}
DELETE
Deletelistsidwebhooksid — Mailchimp Delete Webhook
/v1/lists/{list-id}/webhooks/{webhook-id}
PATCH
Patchlistsidwebhooksid — Mailchimp Update Webhook
/v1/lists/{list-id}/webhooks/{webhook-id}

MCP Tools

mailchimp-list-batch-webhooks

Mailchimp List Batch Webhooks

read-only idempotent
mailchimp-add-batch-webhook

Mailchimp Add Batch Webhook

mailchimp-get-batch-webhook-info

Mailchimp Get Batch Webhook Info

read-only idempotent
mailchimp-update-batch-webhook

Mailchimp Update Batch Webhook

idempotent
mailchimp-delete-batch-webhook

Mailchimp Delete Batch Webhook

idempotent
mailchimp-list-webhooks

Mailchimp List Webhooks

read-only idempotent
mailchimp-add-webhook

Mailchimp Add Webhook

mailchimp-get-webhook-info

Mailchimp Get Webhook Info

read-only idempotent
mailchimp-delete-webhook

Mailchimp Delete Webhook

idempotent
mailchimp-update-webhook

Mailchimp Update Webhook

idempotent

Capability Spec

marketing-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Webhooks
  description: 'Mailchimp Marketing API  — Webhooks. 10 operations. Lead operation: Mailchimp List Batch Webhooks. Self-contained
    Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-webhooks
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: batch-webhooks
      path: /batch-webhooks
      operations:
      - name: getbatchwebhooks
        method: GET
        description: Mailchimp List Batch Webhooks
        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: postbatchwebhooks
        method: POST
        description: Mailchimp Add Batch Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: batch-webhooks-batch_webhook_id
      path: /batch-webhooks/{batch_webhook_id}
      operations:
      - name: getbatchwebhook
        method: GET
        description: Mailchimp Get Batch Webhook 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: batch_webhook_id
          in: path
          type: string
          description: The unique id for the batch webhook.
          required: true
      - name: patchbatchwebhooks
        method: PATCH
        description: Mailchimp Update Batch Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: batch_webhook_id
          in: path
          type: string
          description: The unique id for the batch webhook.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletebatchwebhookid
        method: DELETE
        description: Mailchimp Delete Batch Webhook
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: batch_webhook_id
          in: path
          type: string
          description: The unique id for the batch webhook.
          required: true
    - name: lists-list_id-webhooks
      path: /lists/{list_id}/webhooks
      operations:
      - name: getlistsidwebhooks
        method: GET
        description: Mailchimp List Webhooks
        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: postlistsidwebhooks
        method: POST
        description: Mailchimp Add Webhook
        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: body
          in: body
          type: object
          required: true
    - name: lists-list_id-webhooks-webhook_id
      path: /lists/{list_id}/webhooks/{webhook_id}
      operations:
      - name: getlistsidwebhooksid
        method: GET
        description: Mailchimp Get Webhook Info
        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: webhook_id
          in: path
          type: string
          description: The webhook's id.
          required: true
      - name: deletelistsidwebhooksid
        method: DELETE
        description: Mailchimp Delete Webhook
        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: webhook_id
          in: path
          type: string
          description: The webhook's id.
          required: true
      - name: patchlistsidwebhooksid
        method: PATCH
        description: Mailchimp Update Webhook
        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: webhook_id
          in: path
          type: string
          description: The webhook's id.
          required: true
        - name: body
          in: body
          type: object
          required: true
  exposes:
  - type: rest
    namespace: marketing-webhooks-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Webhooks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/batch-webhooks
      name: batch-webhooks
      description: REST surface for batch-webhooks.
      operations:
      - method: GET
        name: getbatchwebhooks
        description: Mailchimp List Batch Webhooks
        call: marketing-webhooks.getbatchwebhooks
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postbatchwebhooks
        description: Mailchimp Add Batch Webhook
        call: marketing-webhooks.postbatchwebhooks
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/batch-webhooks/{batch-webhook-id}
      name: batch-webhooks-batch-webhook-id
      description: REST surface for batch-webhooks-batch_webhook_id.
      operations:
      - method: GET
        name: getbatchwebhook
        description: Mailchimp Get Batch Webhook Info
        call: marketing-webhooks.getbatchwebhook
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          batch_webhook_id: rest.batch_webhook_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchbatchwebhooks
        description: Mailchimp Update Batch Webhook
        call: marketing-webhooks.patchbatchwebhooks
        with:
          batch_webhook_id: rest.batch_webhook_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletebatchwebhookid
        description: Mailchimp Delete Batch Webhook
        call: marketing-webhooks.deletebatchwebhookid
        with:
          batch_webhook_id: rest.batch_webhook_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/webhooks
      name: lists-list-id-webhooks
      description: REST surface for lists-list_id-webhooks.
      operations:
      - method: GET
        name: getlistsidwebhooks
        description: Mailchimp List Webhooks
        call: marketing-webhooks.getlistsidwebhooks
        with:
          list_id: rest.list_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postlistsidwebhooks
        description: Mailchimp Add Webhook
        call: marketing-webhooks.postlistsidwebhooks
        with:
          list_id: rest.list_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lists/{list-id}/webhooks/{webhook-id}
      name: lists-list-id-webhooks-webhook-id
      description: REST surface for lists-list_id-webhooks-webhook_id.
      operations:
      - method: GET
        name: getlistsidwebhooksid
        description: Mailchimp Get Webhook Info
        call: marketing-webhooks.getlistsidwebhooksid
        with:
          list_id: rest.list_id
          webhook_id: rest.webhook_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelistsidwebhooksid
        description: Mailchimp Delete Webhook
        call: marketing-webhooks.deletelistsidwebhooksid
        with:
          list_id: rest.list_id
          webhook_id: rest.webhook_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchlistsidwebhooksid
        description: Mailchimp Update Webhook
        call: marketing-webhooks.patchlistsidwebhooksid
        with:
          list_id: rest.list_id
          webhook_id: rest.webhook_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mailchimp Marketing API  — Webhooks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: mailchimp-list-batch-webhooks
      description: Mailchimp List Batch Webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-webhooks.getbatchwebhooks
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-batch-webhook
      description: Mailchimp Add Batch Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-webhooks.postbatchwebhooks
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-batch-webhook-info
      description: Mailchimp Get Batch Webhook Info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-webhooks.getbatchwebhook
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        batch_webhook_id: tools.batch_webhook_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-update-batch-webhook
      description: Mailchimp Update Batch Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-webhooks.patchbatchwebhooks
      with:
        batch_webhook_id: tools.batch_webhook_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-delete-batch-webhook
      description: Mailchimp Delete Batch Webhook
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: marketing-webhooks.deletebatchwebhookid
      with:
        batch_webhook_id: tools.batch_webhook_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-list-webhooks
      description: Mailchimp List Webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-webhooks.getlistsidwebhooks
      with:
        list_id: tools.list_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-webhook
      description: Mailchimp Add Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-webhooks.postlistsidwebhooks
      with:
        list_id: tools.list_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-webhook-info
      description: Mailchimp Get Webhook Info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-webhooks.getlistsidwebhooksid
      with:
        list_id: tools.list_id
        webhook_id: tools.webhook_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-delete-webhook
      description: Mailchimp Delete Webhook
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: marketing-webhooks.deletelistsidwebhooksid
      with:
        list_id: tools.list_id
        webhook_id: tools.webhook_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-update-webhook
      description: Mailchimp Update Webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-webhooks.patchlistsidwebhooksid
      with:
        list_id: tools.list_id
        webhook_id: tools.webhook_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.