naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Interest description: 'Mailchimp Marketing API — Interest. 10 operations. Lead operation: Mailchimp List Interest Categories. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Interest created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-interest baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Interest business capability. Self-contained, no shared references. resources: - name: lists-list_id-interest-categories path: /lists/{list_id}/interest-categories operations: - name: getlistsidinterestcategories method: GET description: Mailchimp List Interest Categories 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: Restrict results a type of interest group - name: postlistsidinterestcategories method: POST description: Mailchimp Add Interest Category 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-interest-categories-interest_category_id path: /lists/{list_id}/interest-categories/{interest_category_id} operations: - name: getlistsidinterestcategoriesid method: GET description: Mailchimp Get Interest Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. 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: patchlistsidinterestcategoriesid method: PATCH description: Mailchimp Update Interest Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. required: true - name: body in: body type: object required: true - name: deletelistsidinterestcategoriesid method: DELETE description: Mailchimp Delete Interest Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. required: true - name: lists-list_id-interest-categories-interest_category_id-interests path: /lists/{list_id}/interest-categories/{interest_category_id}/interests operations: - name: getlistsidinterestcategoriesidinterests method: GET description: Mailchimp List Interests in Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. 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: postlistsidinterestcategoriesidinterests method: POST description: Mailchimp Add Interest in Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. required: true - name: body in: body type: object required: true - name: lists-list_id-interest-categories-interest_category_id-interests-interest_id path: /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} operations: - name: getlistsidinterestcategoriesidinterestsid method: GET description: Mailchimp Get Interest in Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. required: true - name: interest_id in: path type: string description: The specific interest or 'group name'. 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: patchlistsidinterestcategoriesidinterestsid method: PATCH description: Mailchimp Update Interest in Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. required: true - name: interest_id in: path type: string description: The specific interest or 'group name'. required: true - name: body in: body type: object required: true - name: deletelistsidinterestcategoriesidinterestsid method: DELETE description: Mailchimp Delete Interest in Category 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: interest_category_id in: path type: string description: The unique ID for the interest category. required: true - name: interest_id in: path type: string description: The specific interest or 'group name'. required: true exposes: - type: rest namespace: marketing-interest-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Interest. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lists/{list-id}/interest-categories name: lists-list-id-interest-categories description: REST surface for lists-list_id-interest-categories. operations: - method: GET name: getlistsidinterestcategories description: Mailchimp List Interest Categories call: marketing-interest.getlistsidinterestcategories with: list_id: rest.list_id fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset type: rest.type outputParameters: - type: object mapping: $. - method: POST name: postlistsidinterestcategories description: Mailchimp Add Interest Category call: marketing-interest.postlistsidinterestcategories with: list_id: rest.list_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/interest-categories/{interest-category-id} name: lists-list-id-interest-categories-interest-category-id description: REST surface for lists-list_id-interest-categories-interest_category_id. operations: - method: GET name: getlistsidinterestcategoriesid description: Mailchimp Get Interest Category Info call: marketing-interest.getlistsidinterestcategoriesid with: list_id: rest.list_id interest_category_id: rest.interest_category_id fields: rest.fields exclude_fields: rest.exclude_fields outputParameters: - type: object mapping: $. - method: PATCH name: patchlistsidinterestcategoriesid description: Mailchimp Update Interest Category call: marketing-interest.patchlistsidinterestcategoriesid with: list_id: rest.list_id interest_category_id: rest.interest_category_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletelistsidinterestcategoriesid description: Mailchimp Delete Interest Category call: marketing-interest.deletelistsidinterestcategoriesid with: list_id: rest.list_id interest_category_id: rest.interest_category_id outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/interest-categories/{interest-category-id}/interests name: lists-list-id-interest-categories-interest-category-id-interests description: REST surface for lists-list_id-interest-categories-interest_category_id-interests. operations: - method: GET name: getlistsidinterestcategoriesidinterests description: Mailchimp List Interests in Category call: marketing-interest.getlistsidinterestcategoriesidinterests with: list_id: rest.list_id interest_category_id: rest.interest_category_id fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: postlistsidinterestcategoriesidinterests description: Mailchimp Add Interest in Category call: marketing-interest.postlistsidinterestcategoriesidinterests with: list_id: rest.list_id interest_category_id: rest.interest_category_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/interest-categories/{interest-category-id}/interests/{interest-id} name: lists-list-id-interest-categories-interest-category-id-interests-interest-id description: REST surface for lists-list_id-interest-categories-interest_category_id-interests-interest_id. operations: - method: GET name: getlistsidinterestcategoriesidinterestsid description: Mailchimp Get Interest in Category call: marketing-interest.getlistsidinterestcategoriesidinterestsid with: list_id: rest.list_id interest_category_id: rest.interest_category_id interest_id: rest.interest_id fields: rest.fields exclude_fields: rest.exclude_fields outputParameters: - type: object mapping: $. - method: PATCH name: patchlistsidinterestcategoriesidinterestsid description: Mailchimp Update Interest in Category call: marketing-interest.patchlistsidinterestcategoriesidinterestsid with: list_id: rest.list_id interest_category_id: rest.interest_category_id interest_id: rest.interest_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletelistsidinterestcategoriesidinterestsid description: Mailchimp Delete Interest in Category call: marketing-interest.deletelistsidinterestcategoriesidinterestsid with: list_id: rest.list_id interest_category_id: rest.interest_category_id interest_id: rest.interest_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-interest-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Interest. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-list-interest-categories description: Mailchimp List Interest Categories hints: readOnly: true destructive: false idempotent: true call: marketing-interest.getlistsidinterestcategories with: list_id: tools.list_id fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset type: tools.type outputParameters: - type: object mapping: $. - name: mailchimp-add-interest-category description: Mailchimp Add Interest Category hints: readOnly: false destructive: false idempotent: false call: marketing-interest.postlistsidinterestcategories with: list_id: tools.list_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-interest-category-info description: Mailchimp Get Interest Category Info hints: readOnly: true destructive: false idempotent: true call: marketing-interest.getlistsidinterestcategoriesid with: list_id: tools.list_id interest_category_id: tools.interest_category_id fields: tools.fields exclude_fields: tools.exclude_fields outputParameters: - type: object mapping: $. - name: mailchimp-update-interest-category description: Mailchimp Update Interest Category hints: readOnly: false destructive: false idempotent: true call: marketing-interest.patchlistsidinterestcategoriesid with: list_id: tools.list_id interest_category_id: tools.interest_category_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-interest-category description: Mailchimp Delete Interest Category hints: readOnly: false destructive: true idempotent: true call: marketing-interest.deletelistsidinterestcategoriesid with: list_id: tools.list_id interest_category_id: tools.interest_category_id outputParameters: - type: object mapping: $. - name: mailchimp-list-interests-category description: Mailchimp List Interests in Category hints: readOnly: true destructive: false idempotent: true call: marketing-interest.getlistsidinterestcategoriesidinterests with: list_id: tools.list_id interest_category_id: tools.interest_category_id fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset outputParameters: - type: object mapping: $. - name: mailchimp-add-interest-category-2 description: Mailchimp Add Interest in Category hints: readOnly: false destructive: false idempotent: false call: marketing-interest.postlistsidinterestcategoriesidinterests with: list_id: tools.list_id interest_category_id: tools.interest_category_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-interest-category description: Mailchimp Get Interest in Category hints: readOnly: true destructive: false idempotent: true call: marketing-interest.getlistsidinterestcategoriesidinterestsid with: list_id: tools.list_id interest_category_id: tools.interest_category_id interest_id: tools.interest_id fields: tools.fields exclude_fields: tools.exclude_fields outputParameters: - type: object mapping: $. - name: mailchimp-update-interest-category-2 description: Mailchimp Update Interest in Category hints: readOnly: false destructive: false idempotent: true call: marketing-interest.patchlistsidinterestcategoriesidinterestsid with: list_id: tools.list_id interest_category_id: tools.interest_category_id interest_id: tools.interest_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-interest-category-2 description: Mailchimp Delete Interest in Category hints: readOnly: false destructive: true idempotent: true call: marketing-interest.deletelistsidinterestcategoriesidinterestsid with: list_id: tools.list_id interest_category_id: tools.interest_category_id interest_id: tools.interest_id outputParameters: - type: object mapping: $.