Mailchimp · Capability

Mailchimp Marketing API — Batch Webhooks

Mailchimp Marketing API — Batch Webhooks. 3 operations. Lead operation: Mailchimp Get Batch Webhook Info. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpBatch Webhooks

What You Can Do

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}

MCP Tools

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

Capability Spec

marketing-batch-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Batch Webhooks
  description: 'Mailchimp Marketing API  — Batch Webhooks. 3 operations. Lead operation: Mailchimp Get Batch Webhook Info.
    Self-contained Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Batch 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-batch-webhooks
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Batch Webhooks business capability. Self-contained, no shared references.
    resources:
    - 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
  exposes:
  - type: rest
    namespace: marketing-batch-webhooks-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Batch Webhooks. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - 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-batch-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-batch-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-batch-webhooks.deletebatchwebhookid
        with:
          batch_webhook_id: rest.batch_webhook_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-batch-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mailchimp Marketing API  — Batch Webhooks. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: mailchimp-get-batch-webhook-info
      description: Mailchimp Get Batch Webhook Info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-batch-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-batch-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-batch-webhooks.deletebatchwebhookid
      with:
        batch_webhook_id: tools.batch_webhook_id
      outputParameters:
      - type: object
        mapping: $.