naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Template description: 'Mailchimp Marketing API — Template. 5 operations. Lead operation: Mailchimp List Template Folders. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Template created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-template baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Template business capability. Self-contained, no shared references. resources: - name: template-folders path: /template-folders operations: - name: gettemplatefolders method: GET description: Mailchimp List Template Folders 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: posttemplatefolders method: POST description: Mailchimp Add Template Folder outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object required: true - name: template-folders-folder_id path: /template-folders/{folder_id} operations: - name: gettemplatefoldersid method: GET description: Mailchimp Get Template Folder 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: folder_id in: path type: string description: The unique id for the template folder. required: true - name: patchtemplatefoldersid method: PATCH description: Mailchimp Update Template Folder outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: folder_id in: path type: string description: The unique id for the template folder. required: true - name: body in: body type: object required: true - name: deletetemplatefoldersid method: DELETE description: Mailchimp Delete Template Folder outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: folder_id in: path type: string description: The unique id for the template folder. required: true exposes: - type: rest namespace: marketing-template-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Template. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/template-folders name: template-folders description: REST surface for template-folders. operations: - method: GET name: gettemplatefolders description: Mailchimp List Template Folders call: marketing-template.gettemplatefolders with: fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset outputParameters: - type: object mapping: $. - method: POST name: posttemplatefolders description: Mailchimp Add Template Folder call: marketing-template.posttemplatefolders with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/template-folders/{folder-id} name: template-folders-folder-id description: REST surface for template-folders-folder_id. operations: - method: GET name: gettemplatefoldersid description: Mailchimp Get Template Folder call: marketing-template.gettemplatefoldersid with: fields: rest.fields exclude_fields: rest.exclude_fields folder_id: rest.folder_id outputParameters: - type: object mapping: $. - method: PATCH name: patchtemplatefoldersid description: Mailchimp Update Template Folder call: marketing-template.patchtemplatefoldersid with: folder_id: rest.folder_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletetemplatefoldersid description: Mailchimp Delete Template Folder call: marketing-template.deletetemplatefoldersid with: folder_id: rest.folder_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-template-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Template. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-list-template-folders description: Mailchimp List Template Folders hints: readOnly: true destructive: false idempotent: true call: marketing-template.gettemplatefolders with: fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset outputParameters: - type: object mapping: $. - name: mailchimp-add-template-folder description: Mailchimp Add Template Folder hints: readOnly: false destructive: false idempotent: false call: marketing-template.posttemplatefolders with: body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-get-template-folder description: Mailchimp Get Template Folder hints: readOnly: true destructive: false idempotent: true call: marketing-template.gettemplatefoldersid with: fields: tools.fields exclude_fields: tools.exclude_fields folder_id: tools.folder_id outputParameters: - type: object mapping: $. - name: mailchimp-update-template-folder description: Mailchimp Update Template Folder hints: readOnly: false destructive: false idempotent: true call: marketing-template.patchtemplatefoldersid with: folder_id: tools.folder_id body: tools.body outputParameters: - type: object mapping: $. - name: mailchimp-delete-template-folder description: Mailchimp Delete Template Folder hints: readOnly: false destructive: true idempotent: true call: marketing-template.deletetemplatefoldersid with: folder_id: tools.folder_id outputParameters: - type: object mapping: $.