Salesforce Einstein · Capability

Salesforce Einstein Discovery API — Predictions

Salesforce Einstein Discovery API — Predictions. 1 operations. Lead operation: Salesforce Einstein Make a prediction. Self-contained Naftiko capability covering one Salesforce Einstein business surface.

Run with Naftiko Salesforce EinsteinPredictions

What You Can Do

POST
Predict — Salesforce Einstein Make a prediction
/v1/wave/prediction

MCP Tools

salesforce-einstein-make-prediction

Salesforce Einstein Make a prediction

Capability Spec

discovery-predictions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce Einstein Discovery API — Predictions
  description: 'Salesforce Einstein Discovery API — Predictions. 1 operations. Lead operation: Salesforce Einstein Make a
    prediction. Self-contained Naftiko capability covering one Salesforce Einstein business surface.'
  tags:
  - Salesforce Einstein
  - Predictions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SALESFORCE_EINSTEIN_API_KEY: SALESFORCE_EINSTEIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: discovery-predictions
    baseUri: https://{instance}.salesforce.com/services/data/v58.0
    description: Salesforce Einstein Discovery API — Predictions business capability. Self-contained, no shared references.
    resources:
    - name: wave-prediction
      path: /wave/prediction
      operations:
      - name: predict
        method: POST
        description: Salesforce Einstein Make a prediction
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_EINSTEIN_API_KEY}}'
  exposes:
  - type: rest
    namespace: discovery-predictions-rest
    port: 8080
    description: REST adapter for Salesforce Einstein Discovery API — Predictions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/wave/prediction
      name: wave-prediction
      description: REST surface for wave-prediction.
      operations:
      - method: POST
        name: predict
        description: Salesforce Einstein Make a prediction
        call: discovery-predictions.predict
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: discovery-predictions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce Einstein Discovery API — Predictions. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: salesforce-einstein-make-prediction
      description: Salesforce Einstein Make a prediction
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: discovery-predictions.predict
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.