Salesforce · Capability

Salesforce — Models

Salesforce — Models. 2 operations. Lead operation: Salesforce Decision Model Notation Export. Self-contained Naftiko capability covering one Salesforce business surface.

Run with Naftiko SalesforceModels

What You Can Do

POST
Decisionmodelnotationexport — Salesforce Decision Model Notation Export
/v1/data/v64-0/connect/business-rules/decision-models/export
GET
Predictionmodels — Salesforce Prediction Models
/v1/data/v64-0/smartdatadiscovery/predictiondefinitions/{prediction-definition-id}/models

MCP Tools

salesforce-decision-model-notation-export

Salesforce Decision Model Notation Export

salesforce-prediction-models

Salesforce Prediction Models

read-only idempotent

Capability Spec

salesforce-models.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce — Models
  description: 'Salesforce — Models. 2 operations. Lead operation: Salesforce Decision Model Notation Export. Self-contained
    Naftiko capability covering one Salesforce business surface.'
  tags:
  - Salesforce
  - Models
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_API_KEY: SALESFORCE_API_KEY
capability:
  consumes:
  - type: http
    namespace: salesforce-models
    baseUri: https://login.salesforce.com
    description: Salesforce — Models business capability. Self-contained, no shared references.
    resources:
    - name: data-v64.0-connect-business-rules-decision-models-export
      path: /data/v64.0/connect/business-rules/decision-models/export
      operations:
      - name: decisionmodelnotationexport
        method: POST
        description: Salesforce Decision Model Notation Export
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: data-v64.0-smartdatadiscovery-predictionDefinitions-PREDICTION_DEFINITION_ID-mod
      path: /data/v64.0/smartdatadiscovery/predictionDefinitions/{PREDICTION_DEFINITION_ID}/models
      operations:
      - name: predictionmodels
        method: GET
        description: Salesforce Prediction Models
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: PREDICTION_DEFINITION_ID
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_API_KEY}}'
  exposes:
  - type: rest
    namespace: salesforce-models-rest
    port: 8080
    description: REST adapter for Salesforce — Models. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/data/v64-0/connect/business-rules/decision-models/export
      name: data-v64-0-connect-business-rules-decision-models-export
      description: REST surface for data-v64.0-connect-business-rules-decision-models-export.
      operations:
      - method: POST
        name: decisionmodelnotationexport
        description: Salesforce Decision Model Notation Export
        call: salesforce-models.decisionmodelnotationexport
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/data/v64-0/smartdatadiscovery/predictiondefinitions/{prediction-definition-id}/models
      name: data-v64-0-smartdatadiscovery-predictiondefinitions-prediction-definition-id-mod
      description: REST surface for data-v64.0-smartdatadiscovery-predictionDefinitions-PREDICTION_DEFINITION_ID-mod.
      operations:
      - method: GET
        name: predictionmodels
        description: Salesforce Prediction Models
        call: salesforce-models.predictionmodels
        with:
          PREDICTION_DEFINITION_ID: rest.PREDICTION_DEFINITION_ID
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: salesforce-models-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce — Models. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: salesforce-decision-model-notation-export
      description: Salesforce Decision Model Notation Export
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: salesforce-models.decisionmodelnotationexport
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: salesforce-prediction-models
      description: Salesforce Prediction Models
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: salesforce-models.predictionmodels
      with:
        PREDICTION_DEFINITION_ID: tools.PREDICTION_DEFINITION_ID
      outputParameters:
      - type: object
        mapping: $.