naftiko: 1.0.0-alpha2 info: label: Mailchimp Transactional API — Subaccounts description: 'Mailchimp Transactional API — Subaccounts. 7 operations. Lead operation: Mailchimp Add a Subaccount. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Subaccounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: transactional-subaccounts baseUri: https://mandrillapp.com/api/1.0 description: Mailchimp Transactional API — Subaccounts business capability. Self-contained, no shared references. resources: - name: subaccounts-add path: /subaccounts/add operations: - name: postsubaccountsadd method: POST description: Mailchimp Add a Subaccount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: subaccounts-delete path: /subaccounts/delete operations: - name: postsubaccountsdelete method: POST description: Mailchimp Delete a Subaccount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: subaccounts-info path: /subaccounts/info operations: - name: postsubaccountsinfo method: POST description: Mailchimp Get Subaccount Info outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: subaccounts-list path: /subaccounts/list operations: - name: postsubaccountslist method: POST description: Mailchimp List Subaccounts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: subaccounts-pause path: /subaccounts/pause operations: - name: postsubaccountspause method: POST description: Mailchimp Pause a Subaccount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: subaccounts-resume path: /subaccounts/resume operations: - name: postsubaccountsresume method: POST description: Mailchimp Resume a Subaccount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: subaccounts-update path: /subaccounts/update operations: - name: postsubaccountsupdate method: POST description: Mailchimp Update a Subaccount outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: X-MC-ApiKey value: '{{env.MAILCHIMP_API_KEY}}' placement: header exposes: - type: rest namespace: transactional-subaccounts-rest port: 8080 description: REST adapter for Mailchimp Transactional API — Subaccounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/subaccounts/add name: subaccounts-add description: REST surface for subaccounts-add. operations: - method: POST name: postsubaccountsadd description: Mailchimp Add a Subaccount call: transactional-subaccounts.postsubaccountsadd with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/subaccounts/delete name: subaccounts-delete description: REST surface for subaccounts-delete. operations: - method: POST name: postsubaccountsdelete description: Mailchimp Delete a Subaccount call: transactional-subaccounts.postsubaccountsdelete with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/subaccounts/info name: subaccounts-info description: REST surface for subaccounts-info. operations: - method: POST name: postsubaccountsinfo description: Mailchimp Get Subaccount Info call: transactional-subaccounts.postsubaccountsinfo with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/subaccounts/list name: subaccounts-list description: REST surface for subaccounts-list. operations: - method: POST name: postsubaccountslist description: Mailchimp List Subaccounts call: transactional-subaccounts.postsubaccountslist with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/subaccounts/pause name: subaccounts-pause description: REST surface for subaccounts-pause. operations: - method: POST name: postsubaccountspause description: Mailchimp Pause a Subaccount call: transactional-subaccounts.postsubaccountspause with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/subaccounts/resume name: subaccounts-resume description: REST surface for subaccounts-resume. operations: - method: POST name: postsubaccountsresume description: Mailchimp Resume a Subaccount call: transactional-subaccounts.postsubaccountsresume with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/subaccounts/update name: subaccounts-update description: REST surface for subaccounts-update. operations: - method: POST name: postsubaccountsupdate description: Mailchimp Update a Subaccount call: transactional-subaccounts.postsubaccountsupdate with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: transactional-subaccounts-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Transactional API — Subaccounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-add-subaccount description: Mailchimp Add a Subaccount hints: readOnly: false destructive: false idempotent: false call: transactional-subaccounts.postsubaccountsadd with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-subaccount description: Mailchimp Delete a Subaccount hints: readOnly: false destructive: false idempotent: false call: transactional-subaccounts.postsubaccountsdelete with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-subaccount-info description: Mailchimp Get Subaccount Info hints: readOnly: true destructive: false idempotent: false call: transactional-subaccounts.postsubaccountsinfo with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-list-subaccounts description: Mailchimp List Subaccounts hints: readOnly: true destructive: false idempotent: false call: transactional-subaccounts.postsubaccountslist with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-pause-subaccount description: Mailchimp Pause a Subaccount hints: readOnly: false destructive: false idempotent: false call: transactional-subaccounts.postsubaccountspause with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-resume-subaccount description: Mailchimp Resume a Subaccount hints: readOnly: false destructive: false idempotent: false call: transactional-subaccounts.postsubaccountsresume with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-update-subaccount description: Mailchimp Update a Subaccount hints: readOnly: false destructive: false idempotent: false call: transactional-subaccounts.postsubaccountsupdate with: body: tools.body outputParameters: - type: object mapping: $.