naftiko: 1.0.0-alpha2 info: label: Salesforce Sales Cloud Salesforce Composite API — SObject Collections description: 'Salesforce Sales Cloud Salesforce Composite API — SObject Collections. 3 operations. Lead operation: Salesforce Sales Cloud Create a collection of sObject records. Self-contained Naftiko capability covering one Salesforce Sales Cloud business surface.' tags: - Salesforce Sales Cloud - SObject Collections created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_SALES_CLOUD_API_KEY: SALESFORCE_SALES_CLOUD_API_KEY capability: consumes: - type: http namespace: composite-sobject-collections baseUri: https://{instance}.salesforce.com/services/data/v59.0 description: Salesforce Sales Cloud Salesforce Composite API — SObject Collections business capability. Self-contained, no shared references. resources: - name: composite-sobjects path: /composite/sobjects operations: - name: createsobjectcollection method: POST description: Salesforce Sales Cloud Create a collection of sObject records outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: updatesobjectcollection method: PATCH description: Salesforce Sales Cloud Update a collection of sObject records outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletesobjectcollection method: DELETE description: Salesforce Sales Cloud Delete a collection of sObject records outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: ids in: query type: string description: Comma-separated list of record IDs to delete required: true - name: allOrNone in: query type: boolean authentication: type: bearer token: '{{env.SALESFORCE_SALES_CLOUD_API_KEY}}' exposes: - type: rest namespace: composite-sobject-collections-rest port: 8080 description: REST adapter for Salesforce Sales Cloud Salesforce Composite API — SObject Collections. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/composite/sobjects name: composite-sobjects description: REST surface for composite-sobjects. operations: - method: POST name: createsobjectcollection description: Salesforce Sales Cloud Create a collection of sObject records call: composite-sobject-collections.createsobjectcollection with: body: rest.body outputParameters: - type: object mapping: $. - method: PATCH name: updatesobjectcollection description: Salesforce Sales Cloud Update a collection of sObject records call: composite-sobject-collections.updatesobjectcollection with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletesobjectcollection description: Salesforce Sales Cloud Delete a collection of sObject records call: composite-sobject-collections.deletesobjectcollection with: ids: rest.ids allOrNone: rest.allOrNone outputParameters: - type: object mapping: $. - type: mcp namespace: composite-sobject-collections-mcp port: 9090 transport: http description: MCP adapter for Salesforce Sales Cloud Salesforce Composite API — SObject Collections. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: salesforce-sales-cloud-create-collection description: Salesforce Sales Cloud Create a collection of sObject records hints: readOnly: false destructive: false idempotent: false call: composite-sobject-collections.createsobjectcollection with: body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-sales-cloud-update-collection description: Salesforce Sales Cloud Update a collection of sObject records hints: readOnly: false destructive: false idempotent: true call: composite-sobject-collections.updatesobjectcollection with: body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-sales-cloud-delete-collection description: Salesforce Sales Cloud Delete a collection of sObject records hints: readOnly: false destructive: true idempotent: true call: composite-sobject-collections.deletesobjectcollection with: ids: tools.ids allOrNone: tools.allOrNone outputParameters: - type: object mapping: $.