Mailchimp · Capability

Mailchimp Marketing API — Files

Mailchimp Marketing API — Files. 11 operations. Lead operation: Mailchimp List Stored Files. Self-contained Naftiko capability covering one Mailchimp business surface.

Run with Naftiko MailchimpFiles

What You Can Do

GET
Getfilemanagerfiles — Mailchimp List Stored Files
/v1/file-manager/files
POST
Postfilemanagerfiles — Mailchimp Add File
/v1/file-manager/files
GET
Getfilemanagerfilesid — Mailchimp Get File
/v1/file-manager/files/{file-id}
PATCH
Patchfilemanagerfilesid — Mailchimp Update File
/v1/file-manager/files/{file-id}
DELETE
Deletefilemanagerfilesid — Mailchimp Delete File
/v1/file-manager/files/{file-id}
GET
Getfilemanagerfolders — Mailchimp List Folders
/v1/file-manager/folders
POST
Postfilemanagerfolders — Mailchimp Add Folder
/v1/file-manager/folders
GET
Getfilemanagerfoldersid — Mailchimp Get Folder
/v1/file-manager/folders/{folder-id}
PATCH
Patchfilemanagerfoldersid — Mailchimp Update Folder
/v1/file-manager/folders/{folder-id}
DELETE
Deletefilemanagerfoldersid — Mailchimp Delete Folder
/v1/file-manager/folders/{folder-id}
GET
Getfilemanagerfoldersfiles — Mailchimp List Stored Files
/v1/file-manager/folders/{folder-id}/files

MCP Tools

mailchimp-list-stored-files

Mailchimp List Stored Files

read-only idempotent
mailchimp-add-file

Mailchimp Add File

mailchimp-get-file

Mailchimp Get File

read-only idempotent
mailchimp-update-file

Mailchimp Update File

idempotent
mailchimp-delete-file

Mailchimp Delete File

idempotent
mailchimp-list-folders

Mailchimp List Folders

read-only idempotent
mailchimp-add-folder

Mailchimp Add Folder

mailchimp-get-folder

Mailchimp Get Folder

read-only idempotent
mailchimp-update-folder

Mailchimp Update Folder

idempotent
mailchimp-delete-folder

Mailchimp Delete Folder

idempotent
mailchimp-list-stored-files-2

Mailchimp List Stored Files

read-only idempotent

Capability Spec

marketing-files.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mailchimp Marketing API  — Files
  description: 'Mailchimp Marketing API  — Files. 11 operations. Lead operation: Mailchimp List Stored Files. Self-contained
    Naftiko capability covering one Mailchimp business surface.'
  tags:
  - Mailchimp
  - Files
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MAILCHIMP_API_KEY: MAILCHIMP_API_KEY
capability:
  consumes:
  - type: http
    namespace: marketing-files
    baseUri: https://server.api.mailchimp.com/3.0
    description: Mailchimp Marketing API  — Files business capability. Self-contained, no shared references.
    resources:
    - name: file-manager-files
      path: /file-manager/files
      operations:
      - name: getfilemanagerfiles
        method: GET
        description: Mailchimp List Stored Files
        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: type
          in: query
          type: string
          description: The file type for the File Manager file.
        - name: created_by
          in: query
          type: string
          description: The Mailchimp account user who created the File Manager file.
        - name: before_created_at
          in: query
          type: string
          description: 'Restrict the response to files created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: since_created_at
          in: query
          type: string
          description: 'Restrict the response to files created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: sort_field
          in: query
          type: string
          description: Returns files sorted by the specified field.
        - name: sort_dir
          in: query
          type: string
          description: Determines the order direction for sorted results.
      - name: postfilemanagerfiles
        method: POST
        description: Mailchimp Add File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: file-manager-files-file_id
      path: /file-manager/files/{file_id}
      operations:
      - name: getfilemanagerfilesid
        method: GET
        description: Mailchimp Get File
        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: file_id
          in: path
          type: string
          description: The unique id for the File Manager file.
          required: true
      - name: patchfilemanagerfilesid
        method: PATCH
        description: Mailchimp Update File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: file_id
          in: path
          type: string
          description: The unique id for the File Manager file.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletefilemanagerfilesid
        method: DELETE
        description: Mailchimp Delete File
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: file_id
          in: path
          type: string
          description: The unique id for the File Manager file.
          required: true
    - name: file-manager-folders
      path: /file-manager/folders
      operations:
      - name: getfilemanagerfolders
        method: GET
        description: Mailchimp List 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: created_by
          in: query
          type: string
          description: The Mailchimp account user who created the File Manager file.
        - name: before_created_at
          in: query
          type: string
          description: 'Restrict the response to files created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: since_created_at
          in: query
          type: string
          description: 'Restrict the response to files created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
      - name: postfilemanagerfolders
        method: POST
        description: Mailchimp Add Folder
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
    - name: file-manager-folders-folder_id
      path: /file-manager/folders/{folder_id}
      operations:
      - name: getfilemanagerfoldersid
        method: GET
        description: Mailchimp Get 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 File Manager folder.
          required: true
      - name: patchfilemanagerfoldersid
        method: PATCH
        description: Mailchimp Update Folder
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: folder_id
          in: path
          type: string
          description: The unique id for the File Manager folder.
          required: true
        - name: body
          in: body
          type: object
          required: true
      - name: deletefilemanagerfoldersid
        method: DELETE
        description: Mailchimp Delete Folder
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: folder_id
          in: path
          type: string
          description: The unique id for the File Manager folder.
          required: true
    - name: file-manager-folders-folder_id-files
      path: /file-manager/folders/{folder_id}/files
      operations:
      - name: getfilemanagerfoldersfiles
        method: GET
        description: Mailchimp List Stored Files
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: folder_id
          in: path
          type: string
          description: The unique id for the File Manager folder.
          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 file type for the File Manager file.
        - name: created_by
          in: query
          type: string
          description: The Mailchimp account user who created the File Manager file.
        - name: before_created_at
          in: query
          type: string
          description: 'Restrict the response to files created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: since_created_at
          in: query
          type: string
          description: 'Restrict the response to files created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.'
        - name: sort_field
          in: query
          type: string
          description: Returns files sorted by the specified field.
        - name: sort_dir
          in: query
          type: string
          description: Determines the order direction for sorted results.
  exposes:
  - type: rest
    namespace: marketing-files-rest
    port: 8080
    description: REST adapter for Mailchimp Marketing API  — Files. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/file-manager/files
      name: file-manager-files
      description: REST surface for file-manager-files.
      operations:
      - method: GET
        name: getfilemanagerfiles
        description: Mailchimp List Stored Files
        call: marketing-files.getfilemanagerfiles
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          type: rest.type
          created_by: rest.created_by
          before_created_at: rest.before_created_at
          since_created_at: rest.since_created_at
          sort_field: rest.sort_field
          sort_dir: rest.sort_dir
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postfilemanagerfiles
        description: Mailchimp Add File
        call: marketing-files.postfilemanagerfiles
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/file-manager/files/{file-id}
      name: file-manager-files-file-id
      description: REST surface for file-manager-files-file_id.
      operations:
      - method: GET
        name: getfilemanagerfilesid
        description: Mailchimp Get File
        call: marketing-files.getfilemanagerfilesid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchfilemanagerfilesid
        description: Mailchimp Update File
        call: marketing-files.patchfilemanagerfilesid
        with:
          file_id: rest.file_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletefilemanagerfilesid
        description: Mailchimp Delete File
        call: marketing-files.deletefilemanagerfilesid
        with:
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/file-manager/folders
      name: file-manager-folders
      description: REST surface for file-manager-folders.
      operations:
      - method: GET
        name: getfilemanagerfolders
        description: Mailchimp List Folders
        call: marketing-files.getfilemanagerfolders
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          created_by: rest.created_by
          before_created_at: rest.before_created_at
          since_created_at: rest.since_created_at
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postfilemanagerfolders
        description: Mailchimp Add Folder
        call: marketing-files.postfilemanagerfolders
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/file-manager/folders/{folder-id}
      name: file-manager-folders-folder-id
      description: REST surface for file-manager-folders-folder_id.
      operations:
      - method: GET
        name: getfilemanagerfoldersid
        description: Mailchimp Get Folder
        call: marketing-files.getfilemanagerfoldersid
        with:
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          folder_id: rest.folder_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchfilemanagerfoldersid
        description: Mailchimp Update Folder
        call: marketing-files.patchfilemanagerfoldersid
        with:
          folder_id: rest.folder_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletefilemanagerfoldersid
        description: Mailchimp Delete Folder
        call: marketing-files.deletefilemanagerfoldersid
        with:
          folder_id: rest.folder_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/file-manager/folders/{folder-id}/files
      name: file-manager-folders-folder-id-files
      description: REST surface for file-manager-folders-folder_id-files.
      operations:
      - method: GET
        name: getfilemanagerfoldersfiles
        description: Mailchimp List Stored Files
        call: marketing-files.getfilemanagerfoldersfiles
        with:
          folder_id: rest.folder_id
          fields: rest.fields
          exclude_fields: rest.exclude_fields
          count: rest.count
          offset: rest.offset
          type: rest.type
          created_by: rest.created_by
          before_created_at: rest.before_created_at
          since_created_at: rest.since_created_at
          sort_field: rest.sort_field
          sort_dir: rest.sort_dir
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: marketing-files-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mailchimp Marketing API  — Files. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: mailchimp-list-stored-files
      description: Mailchimp List Stored Files
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-files.getfilemanagerfiles
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
        type: tools.type
        created_by: tools.created_by
        before_created_at: tools.before_created_at
        since_created_at: tools.since_created_at
        sort_field: tools.sort_field
        sort_dir: tools.sort_dir
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-file
      description: Mailchimp Add File
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-files.postfilemanagerfiles
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-file
      description: Mailchimp Get File
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-files.getfilemanagerfilesid
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-update-file
      description: Mailchimp Update File
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-files.patchfilemanagerfilesid
      with:
        file_id: tools.file_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-delete-file
      description: Mailchimp Delete File
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: marketing-files.deletefilemanagerfilesid
      with:
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-list-folders
      description: Mailchimp List Folders
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-files.getfilemanagerfolders
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
        created_by: tools.created_by
        before_created_at: tools.before_created_at
        since_created_at: tools.since_created_at
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-add-folder
      description: Mailchimp Add Folder
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: marketing-files.postfilemanagerfolders
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-get-folder
      description: Mailchimp Get Folder
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-files.getfilemanagerfoldersid
      with:
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        folder_id: tools.folder_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-update-folder
      description: Mailchimp Update Folder
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: marketing-files.patchfilemanagerfoldersid
      with:
        folder_id: tools.folder_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-delete-folder
      description: Mailchimp Delete Folder
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: marketing-files.deletefilemanagerfoldersid
      with:
        folder_id: tools.folder_id
      outputParameters:
      - type: object
        mapping: $.
    - name: mailchimp-list-stored-files-2
      description: Mailchimp List Stored Files
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketing-files.getfilemanagerfoldersfiles
      with:
        folder_id: tools.folder_id
        fields: tools.fields
        exclude_fields: tools.exclude_fields
        count: tools.count
        offset: tools.offset
        type: tools.type
        created_by: tools.created_by
        before_created_at: tools.before_created_at
        since_created_at: tools.since_created_at
        sort_field: tools.sort_field
        sort_dir: tools.sort_dir
      outputParameters:
      - type: object
        mapping: $.