naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Batch description: 'Mailchimp Marketing API — Batch. 5 operations. Lead operation: Mailchimp List Batch Webhooks. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Batch 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 baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Batch 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 exposes: - type: rest namespace: marketing-batch-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Batch. 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-batch.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-batch.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-batch.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.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.deletebatchwebhookid with: batch_webhook_id: rest.batch_webhook_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-batch-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Batch. 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-batch.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-batch.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-batch.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.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.deletebatchwebhookid with: batch_webhook_id: tools.batch_webhook_id outputParameters: - type: object mapping: $.