naftiko: 1.0.0-alpha2 info: label: Mailchimp Marketing API — Locations description: 'Mailchimp Marketing API — Locations. 2 operations. Lead operation: Mailchimp List Locations. Self-contained Naftiko capability covering one Mailchimp business surface.' tags: - Mailchimp - Locations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MAILCHIMP_API_KEY: MAILCHIMP_API_KEY capability: consumes: - type: http namespace: marketing-locations baseUri: https://server.api.mailchimp.com/3.0 description: Mailchimp Marketing API — Locations business capability. Self-contained, no shared references. resources: - name: lists-list_id-locations path: /lists/{list_id}/locations operations: - name: getlistsidlocations method: GET description: Mailchimp List Locations 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: list_id in: path type: string description: The unique ID for the list. required: true - name: reports-campaign_id-locations path: /reports/{campaign_id}/locations operations: - name: getreportsidlocations method: GET description: Mailchimp List Top Open Activities 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: campaign_id in: path type: string description: The unique id for the campaign. required: true - 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 exposes: - type: rest namespace: marketing-locations-rest port: 8080 description: REST adapter for Mailchimp Marketing API — Locations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/lists/{list-id}/locations name: lists-list-id-locations description: REST surface for lists-list_id-locations. operations: - method: GET name: getlistsidlocations description: Mailchimp List Locations call: marketing-locations.getlistsidlocations with: fields: rest.fields exclude_fields: rest.exclude_fields list_id: rest.list_id outputParameters: - type: object mapping: $. - path: /v1/reports/{campaign-id}/locations name: reports-campaign-id-locations description: REST surface for reports-campaign_id-locations. operations: - method: GET name: getreportsidlocations description: Mailchimp List Top Open Activities call: marketing-locations.getreportsidlocations with: fields: rest.fields exclude_fields: rest.exclude_fields campaign_id: rest.campaign_id count: rest.count offset: rest.offset outputParameters: - type: object mapping: $. - type: mcp namespace: marketing-locations-mcp port: 9090 transport: http description: MCP adapter for Mailchimp Marketing API — Locations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: mailchimp-list-locations description: Mailchimp List Locations hints: readOnly: true destructive: false idempotent: true call: marketing-locations.getlistsidlocations with: fields: tools.fields exclude_fields: tools.exclude_fields list_id: tools.list_id outputParameters: - type: object mapping: $. - name: mailchimp-list-top-open-activities description: Mailchimp List Top Open Activities hints: readOnly: true destructive: false idempotent: true call: marketing-locations.getreportsidlocations with: fields: tools.fields exclude_fields: tools.exclude_fields campaign_id: tools.campaign_id count: tools.count offset: tools.offset outputParameters: - type: object mapping: $.