naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Surveys description: 'Mailchimp Marketing API — Surveys. 12 operations. Lead operation: Mailchimp Get Information About All Surveys for a List. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Surveys created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-surveys baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Surveys business capability. Self-contained, no shared references. resources: - name: lists-list_id-surveys path: /lists/{list_id}/surveys operations: - name: getlistsidsurveys method: GET description: Mailchimp Get Information About All Surveys for a List 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: lists-list_id-surveys-survey_id path: /lists/{list_id}/surveys/{survey_id} operations: - name: getlistsidsurveysid method: GET description: Mailchimp Get Survey 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: survey_id in: path type: string description: The ID of the survey. required: true - name: lists-list_id-surveys-survey_id-actions-create-email path: /lists/{list_id}/surveys/{survey_id}/actions/create-email operations: - name: postlistsidsurveysidactionscreateemail method: POST description: Mailchimp Create a Survey Campaign 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: survey_id in: path type: string description: The ID of the survey. required: true - name: lists-list_id-surveys-survey_id-actions-publish path: /lists/{list_id}/surveys/{survey_id}/actions/publish operations: - name: postlistsidsurveysidactionspublish method: POST description: Mailchimp Publish a Survey 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: survey_id in: path type: string description: The ID of the survey. required: true - name: lists-list_id-surveys-survey_id-actions-unpublish path: /lists/{list_id}/surveys/{survey_id}/actions/unpublish operations: - name: postlistsidsurveysidactionsunpublish method: POST description: Mailchimp Unpublish a Survey 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: survey_id in: path type: string description: The ID of the survey. required: true - name: reporting-surveys path: /reporting/surveys operations: - name: getreportingsurveys method: GET description: Mailchimp List Survey Reports 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: reporting-surveys-survey_id path: /reporting/surveys/{survey_id} operations: - name: getreportingsurveysid method: GET description: Mailchimp Get Survey Report 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: survey_id in: path type: string description: The ID of the survey. required: true - name: reporting-surveys-survey_id-questions path: /reporting/surveys/{survey_id}/questions operations: - name: getreportingsurveysidquestions method: GET description: Mailchimp List Survey Question Reports 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: survey_id in: path type: string description: The ID of the survey. required: true - name: reporting-surveys-survey_id-questions-question_id path: /reporting/surveys/{survey_id}/questions/{question_id} operations: - name: getreportingsurveysidquestionsid method: GET description: Mailchimp Get Survey Question Report 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: survey_id in: path type: string description: The ID of the survey. required: true - name: question_id in: path type: string description: The ID of the survey question. required: true - name: reporting-surveys-survey_id-questions-question_id-answers path: /reporting/surveys/{survey_id}/questions/{question_id}/answers operations: - name: getreportingsurveysidquestionsidanswers method: GET description: Mailchimp List Answers for Question 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: survey_id in: path type: string description: The ID of the survey. required: true - name: question_id in: path type: string description: The ID of the survey question. required: true - name: respondent_familiarity_is in: query type: string description: Filter survey responses by familiarity of the respondents. - name: reporting-surveys-survey_id-responses path: /reporting/surveys/{survey_id}/responses operations: - name: getreportingsurveysidresponses method: GET description: Mailchimp List Survey Responses 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: survey_id in: path type: string description: The ID of the survey. required: true - name: answered_question in: query type: integer description: The ID of the question that was answered. - name: chose_answer in: query type: string description: The ID of the option chosen to filter responses on. - name: respondent_familiarity_is in: query type: string description: Filter survey responses by familiarity of the respondents. - name: reporting-surveys-survey_id-responses-response_id path: /reporting/surveys/{survey_id}/responses/{response_id} operations: - name: getreportingsurveysidresponsesid method: GET description: Mailchimp Get Survey Response outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: survey_id in: path type: string description: The ID of the survey. required: true - name: response_id in: path type: string description: The ID of the survey response. required: true exposes: - type: rest namespace: marketing-surveys-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Surveys. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lists/{list-id}/surveys name: lists-list-id-surveys description: REST surface for lists-list_id-surveys. operations: - method: GET name: getlistsidsurveys description: Mailchimp Get Information About All Surveys for a List call: marketing-surveys.getlistsidsurveys with: list_id: rest.list_id outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/surveys/{survey-id} name: lists-list-id-surveys-survey-id description: REST surface for lists-list_id-surveys-survey_id. operations: - method: GET name: getlistsidsurveysid description: Mailchimp Get Survey call: marketing-surveys.getlistsidsurveysid with: list_id: rest.list_id survey_id: rest.survey_id outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/surveys/{survey-id}/actions/create-email name: lists-list-id-surveys-survey-id-actions-create-email description: REST surface for lists-list_id-surveys-survey_id-actions-create-email. operations: - method: POST name: postlistsidsurveysidactionscreateemail description: Mailchimp Create a Survey Campaign call: marketing-surveys.postlistsidsurveysidactionscreateemail with: list_id: rest.list_id survey_id: rest.survey_id outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/surveys/{survey-id}/actions/publish name: lists-list-id-surveys-survey-id-actions-publish description: REST surface for lists-list_id-surveys-survey_id-actions-publish. operations: - method: POST name: postlistsidsurveysidactionspublish description: Mailchimp Publish a Survey call: marketing-surveys.postlistsidsurveysidactionspublish with: list_id: rest.list_id survey_id: rest.survey_id outputParameters: - type: object mapping: $. - path: /v1/lists/{list-id}/surveys/{survey-id}/actions/unpublish name: lists-list-id-surveys-survey-id-actions-unpublish description: REST surface for lists-list_id-surveys-survey_id-actions-unpublish. operations: - method: POST name: postlistsidsurveysidactionsunpublish description: Mailchimp Unpublish a Survey call: marketing-surveys.postlistsidsurveysidactionsunpublish with: list_id: rest.list_id survey_id: rest.survey_id outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys name: reporting-surveys description: REST surface for reporting-surveys. operations: - method: GET name: getreportingsurveys description: Mailchimp List Survey Reports call: marketing-surveys.getreportingsurveys with: fields: rest.fields exclude_fields: rest.exclude_fields count: rest.count offset: rest.offset outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys/{survey-id} name: reporting-surveys-survey-id description: REST surface for reporting-surveys-survey_id. operations: - method: GET name: getreportingsurveysid description: Mailchimp Get Survey Report call: marketing-surveys.getreportingsurveysid with: fields: rest.fields exclude_fields: rest.exclude_fields survey_id: rest.survey_id outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys/{survey-id}/questions name: reporting-surveys-survey-id-questions description: REST surface for reporting-surveys-survey_id-questions. operations: - method: GET name: getreportingsurveysidquestions description: Mailchimp List Survey Question Reports call: marketing-surveys.getreportingsurveysidquestions with: fields: rest.fields exclude_fields: rest.exclude_fields survey_id: rest.survey_id outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys/{survey-id}/questions/{question-id} name: reporting-surveys-survey-id-questions-question-id description: REST surface for reporting-surveys-survey_id-questions-question_id. operations: - method: GET name: getreportingsurveysidquestionsid description: Mailchimp Get Survey Question Report call: marketing-surveys.getreportingsurveysidquestionsid with: fields: rest.fields exclude_fields: rest.exclude_fields survey_id: rest.survey_id question_id: rest.question_id outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys/{survey-id}/questions/{question-id}/answers name: reporting-surveys-survey-id-questions-question-id-answers description: REST surface for reporting-surveys-survey_id-questions-question_id-answers. operations: - method: GET name: getreportingsurveysidquestionsidanswers description: Mailchimp List Answers for Question call: marketing-surveys.getreportingsurveysidquestionsidanswers with: fields: rest.fields exclude_fields: rest.exclude_fields survey_id: rest.survey_id question_id: rest.question_id respondent_familiarity_is: rest.respondent_familiarity_is outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys/{survey-id}/responses name: reporting-surveys-survey-id-responses description: REST surface for reporting-surveys-survey_id-responses. operations: - method: GET name: getreportingsurveysidresponses description: Mailchimp List Survey Responses call: marketing-surveys.getreportingsurveysidresponses with: fields: rest.fields exclude_fields: rest.exclude_fields survey_id: rest.survey_id answered_question: rest.answered_question chose_answer: rest.chose_answer respondent_familiarity_is: rest.respondent_familiarity_is outputParameters: - type: object mapping: $. - path: /v1/reporting/surveys/{survey-id}/responses/{response-id} name: reporting-surveys-survey-id-responses-response-id description: REST surface for reporting-surveys-survey_id-responses-response_id. operations: - method: GET name: getreportingsurveysidresponsesid description: Mailchimp Get Survey Response call: marketing-surveys.getreportingsurveysidresponsesid with: survey_id: rest.survey_id response_id: rest.response_id outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-surveys-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Surveys. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-get-information-about-all description: Mailchimp Get Information About All Surveys for a List hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getlistsidsurveys with: list_id: tools.list_id outputParameters: - type: object mapping: $. - name: mailchimp-get-survey description: Mailchimp Get Survey hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getlistsidsurveysid with: list_id: tools.list_id survey_id: tools.survey_id outputParameters: - type: object mapping: $. - name: mailchimp-create-survey-campaign description: Mailchimp Create a Survey Campaign hints: readOnly: false destructive: false idempotent: false call: marketing-surveys.postlistsidsurveysidactionscreateemail with: list_id: tools.list_id survey_id: tools.survey_id outputParameters: - type: object mapping: $. - name: mailchimp-publish-survey description: Mailchimp Publish a Survey hints: readOnly: false destructive: false idempotent: false call: marketing-surveys.postlistsidsurveysidactionspublish with: list_id: tools.list_id survey_id: tools.survey_id outputParameters: - type: object mapping: $. - name: mailchimp-unpublish-survey description: Mailchimp Unpublish a Survey hints: readOnly: false destructive: false idempotent: false call: marketing-surveys.postlistsidsurveysidactionsunpublish with: list_id: tools.list_id survey_id: tools.survey_id outputParameters: - type: object mapping: $. - name: mailchimp-list-survey-reports description: Mailchimp List Survey Reports hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveys with: fields: tools.fields exclude_fields: tools.exclude_fields count: tools.count offset: tools.offset outputParameters: - type: object mapping: $. - name: mailchimp-get-survey-report description: Mailchimp Get Survey Report hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveysid with: fields: tools.fields exclude_fields: tools.exclude_fields survey_id: tools.survey_id outputParameters: - type: object mapping: $. - name: mailchimp-list-survey-question-reports description: Mailchimp List Survey Question Reports hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveysidquestions with: fields: tools.fields exclude_fields: tools.exclude_fields survey_id: tools.survey_id outputParameters: - type: object mapping: $. - name: mailchimp-get-survey-question-report description: Mailchimp Get Survey Question Report hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveysidquestionsid with: fields: tools.fields exclude_fields: tools.exclude_fields survey_id: tools.survey_id question_id: tools.question_id outputParameters: - type: object mapping: $. - name: mailchimp-list-answers-question description: Mailchimp List Answers for Question hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveysidquestionsidanswers with: fields: tools.fields exclude_fields: tools.exclude_fields survey_id: tools.survey_id question_id: tools.question_id respondent_familiarity_is: tools.respondent_familiarity_is outputParameters: - type: object mapping: $. - name: mailchimp-list-survey-responses description: Mailchimp List Survey Responses hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveysidresponses with: fields: tools.fields exclude_fields: tools.exclude_fields survey_id: tools.survey_id answered_question: tools.answered_question chose_answer: tools.chose_answer respondent_familiarity_is: tools.respondent_familiarity_is outputParameters: - type: object mapping: $. - name: mailchimp-get-survey-response description: Mailchimp Get Survey Response hints: readOnly: true destructive: false idempotent: true call: marketing-surveys.getreportingsurveysidresponsesid with: survey_id: tools.survey_id response_id: tools.response_id outputParameters: - type: object mapping: $.