SAP · Capability

SAP AI Core API — Scenarios

SAP AI Core API — Scenarios. 2 operations. Lead operation: Sap List Ai Scenarios. Self-contained Naftiko capability covering one Sap business surface.

Run with Naftiko SapScenarios

What You Can Do

GET
Listscenarios — Sap List Ai Scenarios
/v1/lm/scenarios
GET
Listscenarioversions — Sap List Scenario Versions
/v1/lm/scenarios/{scenarioid}/versions

MCP Tools

sap-list-ai-scenarios

Sap List Ai Scenarios

read-only idempotent
sap-list-scenario-versions

Sap List Scenario Versions

read-only idempotent

Capability Spec

ai-core-scenarios.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: SAP AI Core API — Scenarios
  description: 'SAP AI Core API — Scenarios. 2 operations. Lead operation: Sap List Ai Scenarios. Self-contained Naftiko capability
    covering one Sap business surface.'
  tags:
  - Sap
  - Scenarios
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAP_API_KEY: SAP_API_KEY
capability:
  consumes:
  - type: http
    namespace: ai-core-scenarios
    baseUri: https://api.ai.{region}.cfapps.{landscape}.hana.ondemand.com/v2
    description: SAP AI Core API — Scenarios business capability. Self-contained, no shared references.
    resources:
    - name: lm-scenarios
      path: /lm/scenarios
      operations:
      - name: listscenarios
        method: GET
        description: Sap List Ai Scenarios
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: lm-scenarios-scenarioId-versions
      path: /lm/scenarios/{scenarioId}/versions
      operations:
      - name: listscenarioversions
        method: GET
        description: Sap List Scenario Versions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: scenarioId
          in: path
          type: string
          description: Scenario identifier
          required: true
    authentication:
      type: bearer
      token: '{{env.SAP_API_KEY}}'
  exposes:
  - type: rest
    namespace: ai-core-scenarios-rest
    port: 8080
    description: REST adapter for SAP AI Core API — Scenarios. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/lm/scenarios
      name: lm-scenarios
      description: REST surface for lm-scenarios.
      operations:
      - method: GET
        name: listscenarios
        description: Sap List Ai Scenarios
        call: ai-core-scenarios.listscenarios
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/lm/scenarios/{scenarioid}/versions
      name: lm-scenarios-scenarioid-versions
      description: REST surface for lm-scenarios-scenarioId-versions.
      operations:
      - method: GET
        name: listscenarioversions
        description: Sap List Scenario Versions
        call: ai-core-scenarios.listscenarioversions
        with:
          scenarioId: rest.scenarioId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ai-core-scenarios-mcp
    port: 9090
    transport: http
    description: MCP adapter for SAP AI Core API — Scenarios. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: sap-list-ai-scenarios
      description: Sap List Ai Scenarios
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ai-core-scenarios.listscenarios
      outputParameters:
      - type: object
        mapping: $.
    - name: sap-list-scenario-versions
      description: Sap List Scenario Versions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ai-core-scenarios.listscenarioversions
      with:
        scenarioId: tools.scenarioId
      outputParameters:
      - type: object
        mapping: $.