Salesforce Einstein · Capability

Salesforce Einstein Prediction Builder API — Predictions

Salesforce Einstein Prediction Builder API — Predictions. 1 operations. Lead operation: Salesforce Einstein List predictions for a definition. Self-contained Naftiko capability covering one Salesforce Einstein business surface.

Run with Naftiko Salesforce EinsteinPredictions

What You Can Do

GET
Listpredictions — Salesforce Einstein List predictions for a definition
/v1/einstein/prediction-definitions/{predictiondefinitionid}/predictions

MCP Tools

salesforce-einstein-list-predictions-definition

Salesforce Einstein List predictions for a definition

read-only idempotent

Capability Spec

prediction-builder-predictions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Salesforce Einstein Prediction Builder API — Predictions
  description: 'Salesforce Einstein Prediction Builder API — Predictions. 1 operations. Lead operation: Salesforce Einstein
    List predictions for a definition. 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: prediction-builder-predictions
    baseUri: https://{instance}.salesforce.com/services/data/v58.0
    description: Salesforce Einstein Prediction Builder API — Predictions business capability. Self-contained, no shared references.
    resources:
    - name: einstein-prediction-definitions-predictionDefinitionId-predictions
      path: /einstein/prediction-definitions/{predictionDefinitionId}/predictions
      operations:
      - name: listpredictions
        method: GET
        description: Salesforce Einstein List predictions for a definition
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: recordId
          in: query
          type: string
          description: Filter predictions by Salesforce record ID.
        - name: limit
          in: query
          type: integer
          description: Maximum number of predictions to return.
        - name: offset
          in: query
          type: integer
          description: Offset for pagination.
    authentication:
      type: bearer
      token: '{{env.SALESFORCE_EINSTEIN_API_KEY}}'
  exposes:
  - type: rest
    namespace: prediction-builder-predictions-rest
    port: 8080
    description: REST adapter for Salesforce Einstein Prediction Builder API — Predictions. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/einstein/prediction-definitions/{predictiondefinitionid}/predictions
      name: einstein-prediction-definitions-predictiondefinitionid-predictions
      description: REST surface for einstein-prediction-definitions-predictionDefinitionId-predictions.
      operations:
      - method: GET
        name: listpredictions
        description: Salesforce Einstein List predictions for a definition
        call: prediction-builder-predictions.listpredictions
        with:
          recordId: rest.recordId
          limit: rest.limit
          offset: rest.offset
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: prediction-builder-predictions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Salesforce Einstein Prediction Builder API — Predictions. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: salesforce-einstein-list-predictions-definition
      description: Salesforce Einstein List predictions for a definition
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: prediction-builder-predictions.listpredictions
      with:
        recordId: tools.recordId
        limit: tools.limit
        offset: tools.offset
      outputParameters:
      - type: object
        mapping: $.