naftiko: 1.0.0-alpha2 info: label: Salesforce Marketing Cloud REST API — Contacts description: 'Salesforce Marketing Cloud REST API — Contacts. 6 operations. Lead operation: Salesforce Marketing Cloud List Attribute Sets. Self-contained Naftiko capability covering one Salesforce Marketing Cloud business surface.' tags: - Salesforce Marketing Cloud - Contacts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_MARKETING_CLOUD_API_KEY: SALESFORCE_MARKETING_CLOUD_API_KEY capability: consumes: - type: http namespace: salesforce-marketing-cloud-contacts baseUri: https://{subdomain}.rest.marketingcloudapis.com description: Salesforce Marketing Cloud REST API — Contacts business capability. Self-contained, no shared references. resources: - name: contacts-v1-attributeSets path: /contacts/v1/attributeSets operations: - name: listattributesets method: GET description: Salesforce Marketing Cloud List Attribute Sets outputRawFormat: json outputParameters: - name: result type: object value: $. - name: contacts-v1-contacts path: /contacts/v1/contacts operations: - name: createcontacts method: POST description: Salesforce Marketing Cloud Create Contacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: contacts-v1-contacts-actions-search path: /contacts/v1/contacts/actions/search operations: - name: searchcontacts method: POST description: Salesforce Marketing Cloud Search Contacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: contacts-v1-contacts-contactKey path: /contacts/v1/contacts/{contactKey} operations: - name: getcontact method: GET description: Salesforce Marketing Cloud Retrieve a Contact by Contact Key outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contactKey in: path type: string description: Unique identifier for the contact required: true - name: updatecontact method: PATCH description: Salesforce Marketing Cloud Update a Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contactKey in: path type: string description: Unique identifier for the contact required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletecontact method: DELETE description: Salesforce Marketing Cloud Delete a Contact outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contactKey in: path type: string description: Unique identifier for the contact to delete required: true authentication: type: bearer token: '{{env.SALESFORCE_MARKETING_CLOUD_API_KEY}}' exposes: - type: rest namespace: salesforce-marketing-cloud-contacts-rest port: 8080 description: REST adapter for Salesforce Marketing Cloud REST API — Contacts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contacts/v1/attributesets name: contacts-v1-attributesets description: REST surface for contacts-v1-attributeSets. operations: - method: GET name: listattributesets description: Salesforce Marketing Cloud List Attribute Sets call: salesforce-marketing-cloud-contacts.listattributesets outputParameters: - type: object mapping: $. - path: /v1/contacts/v1/contacts name: contacts-v1-contacts description: REST surface for contacts-v1-contacts. operations: - method: POST name: createcontacts description: Salesforce Marketing Cloud Create Contacts call: salesforce-marketing-cloud-contacts.createcontacts with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/contacts/v1/contacts/actions/search name: contacts-v1-contacts-actions-search description: REST surface for contacts-v1-contacts-actions-search. operations: - method: POST name: searchcontacts description: Salesforce Marketing Cloud Search Contacts call: salesforce-marketing-cloud-contacts.searchcontacts with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/contacts/v1/contacts/{contactkey} name: contacts-v1-contacts-contactkey description: REST surface for contacts-v1-contacts-contactKey. operations: - method: GET name: getcontact description: Salesforce Marketing Cloud Retrieve a Contact by Contact Key call: salesforce-marketing-cloud-contacts.getcontact with: contactKey: rest.contactKey outputParameters: - type: object mapping: $. - method: PATCH name: updatecontact description: Salesforce Marketing Cloud Update a Contact call: salesforce-marketing-cloud-contacts.updatecontact with: contactKey: rest.contactKey body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletecontact description: Salesforce Marketing Cloud Delete a Contact call: salesforce-marketing-cloud-contacts.deletecontact with: contactKey: rest.contactKey outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-marketing-cloud-contacts-mcp port: 9090 transport: http description: MCP adapter for Salesforce Marketing Cloud REST API — Contacts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: salesforce-marketing-cloud-list-attribute description: Salesforce Marketing Cloud List Attribute Sets hints: readOnly: true destructive: false idempotent: true call: salesforce-marketing-cloud-contacts.listattributesets outputParameters: - type: object mapping: $. - name: salesforce-marketing-cloud-create-contacts description: Salesforce Marketing Cloud Create Contacts hints: readOnly: false destructive: false idempotent: false call: salesforce-marketing-cloud-contacts.createcontacts with: body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-marketing-cloud-search-contacts description: Salesforce Marketing Cloud Search Contacts hints: readOnly: true destructive: false idempotent: false call: salesforce-marketing-cloud-contacts.searchcontacts with: body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-marketing-cloud-retrieve-contact description: Salesforce Marketing Cloud Retrieve a Contact by Contact Key hints: readOnly: true destructive: false idempotent: true call: salesforce-marketing-cloud-contacts.getcontact with: contactKey: tools.contactKey outputParameters: - type: object mapping: $. - name: salesforce-marketing-cloud-update-contact description: Salesforce Marketing Cloud Update a Contact hints: readOnly: false destructive: false idempotent: true call: salesforce-marketing-cloud-contacts.updatecontact with: contactKey: tools.contactKey body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-marketing-cloud-delete-contact description: Salesforce Marketing Cloud Delete a Contact hints: readOnly: false destructive: true idempotent: true call: salesforce-marketing-cloud-contacts.deletecontact with: contactKey: tools.contactKey outputParameters: - type: object mapping: $.