naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Fields description: 'Mailchimp Marketing API — Fields. 5 operations. Lead operation: Mailchimp List Merge Fields. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Fields created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-fields baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Fields business capability. Self-contained, no shared references. resources: - name: lists-list_id-merge-fields path: /lists/{list_id}/merge-fields operations: - name: getlistsidmergefields method: GET description: Mailchimp List Merge Fields 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: 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: type in: query type: string description: The merge field type. - name: required in: query type: boolean description: Whether it's a required merge field. - name: postlistsidmergefields method: POST description: Mailchimp Add Merge Field 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-merge-fields-merge_id path: /lists/{list_id}/merge-fields/{merge_id} operations: - name: getlistsidmergefieldsid method: GET description: Mailchimp Get Merge Field 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: merge_id in: path type: string description: The id for the merge field. required: true - 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: fields in: query type: array description: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation. - name: patchlistsidmergefieldsid method: PATCH description: Mailchimp Update Merge Field 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: merge_id in: path type: string description: The id for the merge field. required: true - name: body in: body type: object required: true - name: deletelistsidmergefieldsid method: DELETE description: Mailchimp Delete Merge Field 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: merge_id in: path type: string description: The id for the merge field. required: true exposes: - type: rest namespace: marketing-fields-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Fields. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lists/{list-id}/merge-fields name: lists-list-id-merge-fields description: REST surface for lists-list_id-merge-fields. operations: - method: GET name: getlistsidmergefields description: Mailchimp List Merge Fields call: marketing-fields.getlistsidmergefields with: list_id: rest.list_id fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset type: rest.type required: rest.required outputParameters: - type: object mapping: $. - method: POST name: postlistsidmergefields description: Mailchimp Add Merge Field call: marketing-fields.postlistsidmergefields with: list_id: rest.list_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/merge-fields/{merge-id} name: lists-list-id-merge-fields-merge-id description: REST surface for lists-list_id-merge-fields-merge_id. operations: - method: GET name: getlistsidmergefieldsid description: Mailchimp Get Merge Field call: marketing-fields.getlistsidmergefieldsid with: list_id: rest.list_id merge_id: rest.merge_id exclude_fields: rest.exclude_fields fields: rest.fields outputParameters: - type: object mapping: $. - method: PATCH name: patchlistsidmergefieldsid description: Mailchimp Update Merge Field call: marketing-fields.patchlistsidmergefieldsid with: list_id: rest.list_id merge_id: rest.merge_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletelistsidmergefieldsid description: Mailchimp Delete Merge Field call: marketing-fields.deletelistsidmergefieldsid with: list_id: rest.list_id merge_id: rest.merge_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-fields-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Fields. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-list-merge-fields description: Mailchimp List Merge Fields hints: readOnly: true destructive: false idempotent: true call: marketing-fields.getlistsidmergefields with: list_id: tools.list_id fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset type: tools.type required: tools.required outputParameters: - type: object mapping: $. - name: mailchimp-add-merge-field description: Mailchimp Add Merge Field hints: readOnly: false destructive: false idempotent: false call: marketing-fields.postlistsidmergefields with: list_id: tools.list_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-merge-field description: Mailchimp Get Merge Field hints: readOnly: true destructive: false idempotent: true call: marketing-fields.getlistsidmergefieldsid with: list_id: tools.list_id merge_id: tools.merge_id exclude_fields: tools.exclude_fields fields: tools.fields outputParameters: - type: object mapping: $. - name: mailchimp-update-merge-field description: Mailchimp Update Merge Field hints: readOnly: false destructive: false idempotent: true call: marketing-fields.patchlistsidmergefieldsid with: list_id: tools.list_id merge_id: tools.merge_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-merge-field description: Mailchimp Delete Merge Field hints: readOnly: false destructive: true idempotent: true call: marketing-fields.deletelistsidmergefieldsid with: list_id: tools.list_id merge_id: tools.merge_id outputParameters: - type: object mapping: $.