naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Notes description: 'Mailchimp Marketing API — Notes. 5 operations. Lead operation: Mailchimp List Recent Member Notes. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Notes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-notes baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Notes business capability. Self-contained, no shared references. resources: - name: lists-list_id-members-subscriber_hash-notes path: /lists/{list_id}/members/{subscriber_hash}/notes operations: - name: getlistsidmembersidnotes method: GET description: Mailchimp List Recent Member Notes 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: subscriber_hash in: path type: string description: The MD5 hash of the lowercase version of the list member's email address. required: true - name: sort_field in: query type: string description: Returns notes sorted by the specified field. - name: sort_dir in: query type: string description: Determines the order direction for sorted results. - 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: postlistsidmembersidnotes method: POST description: Mailchimp Add Member Note 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: subscriber_hash in: path type: string description: The MD5 hash of the lowercase version of the list member's email address. required: true - name: body in: body type: object required: true - name: lists-list_id-members-subscriber_hash-notes-note_id path: /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} operations: - name: getlistsidmembersidnotesid method: GET description: Mailchimp Get Member Note 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: subscriber_hash in: path type: string description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts a list member's email address or contact_id. required: true - name: note_id in: path type: string description: The id for the note. 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: patchlistsidmembersidnotesid method: PATCH description: Mailchimp Update Note 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: subscriber_hash in: path type: string description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts a list member's email address or contact_id. required: true - name: note_id in: path type: string description: The id for the note. required: true - name: body in: body type: object required: true - name: deletelistsidmembersidnotesid method: DELETE description: Mailchimp Delete Note 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: subscriber_hash in: path type: string description: The MD5 hash of the lowercase version of the list member's email address. This endpoint also accepts a list member's email address or contact_id. required: true - name: note_id in: path type: string description: The id for the note. required: true exposes: - type: rest namespace: marketing-notes-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Notes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lists/{list-id}/members/{subscriber-hash}/notes name: lists-list-id-members-subscriber-hash-notes description: REST surface for lists-list_id-members-subscriber_hash-notes. operations: - method: GET name: getlistsidmembersidnotes description: Mailchimp List Recent Member Notes call: marketing-notes.getlistsidmembersidnotes with: list_id: rest.list_id subscriber_hash: rest.subscriber_hash sort_field: rest.sort_field sort_dir: rest.sort_dir fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: postlistsidmembersidnotes description: Mailchimp Add Member Note call: marketing-notes.postlistsidmembersidnotes with: list_id: rest.list_id subscriber_hash: rest.subscriber_hash body: rest.body outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/members/{subscriber-hash}/notes/{note-id} name: lists-list-id-members-subscriber-hash-notes-note-id description: REST surface for lists-list_id-members-subscriber_hash-notes-note_id. operations: - method: GET name: getlistsidmembersidnotesid description: Mailchimp Get Member Note call: marketing-notes.getlistsidmembersidnotesid with: list_id: rest.list_id subscriber_hash: rest.subscriber_hash note_id: rest.note_id fields: rest.fields exclude_fields: rest.exclude_fields outputParameters: - type: object mapping: $. - method: PATCH name: patchlistsidmembersidnotesid description: Mailchimp Update Note call: marketing-notes.patchlistsidmembersidnotesid with: list_id: rest.list_id subscriber_hash: rest.subscriber_hash note_id: rest.note_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletelistsidmembersidnotesid description: Mailchimp Delete Note call: marketing-notes.deletelistsidmembersidnotesid with: list_id: rest.list_id subscriber_hash: rest.subscriber_hash note_id: rest.note_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-notes-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Notes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-list-recent-member-notes description: Mailchimp List Recent Member Notes hints: readOnly: true destructive: false idempotent: true call: marketing-notes.getlistsidmembersidnotes with: list_id: tools.list_id subscriber_hash: tools.subscriber_hash sort_field: tools.sort_field sort_dir: tools.sort_dir fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset outputParameters: - type: object mapping: $. - name: mailchimp-add-member-note description: Mailchimp Add Member Note hints: readOnly: false destructive: false idempotent: false call: marketing-notes.postlistsidmembersidnotes with: list_id: tools.list_id subscriber_hash: tools.subscriber_hash body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-member-note description: Mailchimp Get Member Note hints: readOnly: true destructive: false idempotent: true call: marketing-notes.getlistsidmembersidnotesid with: list_id: tools.list_id subscriber_hash: tools.subscriber_hash note_id: tools.note_id fields: tools.fields exclude_fields: tools.exclude_fields outputParameters: - type: object mapping: $. - name: mailchimp-update-note description: Mailchimp Update Note hints: readOnly: false destructive: false idempotent: true call: marketing-notes.patchlistsidmembersidnotesid with: list_id: tools.list_id subscriber_hash: tools.subscriber_hash note_id: tools.note_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-note description: Mailchimp Delete Note hints: readOnly: false destructive: true idempotent: true call: marketing-notes.deletelistsidmembersidnotesid with: list_id: tools.list_id subscriber_hash: tools.subscriber_hash note_id: tools.note_id outputParameters: - type: object mapping: $.