Power BI · Capability

Power BI REST API — Imports

Power BI REST API — Imports. 2 operations. Lead operation: Power Bi List Imports in a Workspace. Self-contained Naftiko capability covering one Power Bi business surface.

Run with Naftiko Power BiImports

What You Can Do

GET
Getimportsingroup — Power Bi List Imports in a Workspace
/v1/groups/{groupid}/imports
POST
Createimportingroup — Power Bi Import Content Into a Workspace
/v1/groups/{groupid}/imports

MCP Tools

power-bi-list-imports-workspace

Power Bi List Imports in a Workspace

read-only idempotent
power-bi-import-content-workspace

Power Bi Import Content Into a Workspace

Capability Spec

rest-imports.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Power BI REST API — Imports
  description: 'Power BI REST API — Imports. 2 operations. Lead operation: Power Bi List Imports in a Workspace. Self-contained
    Naftiko capability covering one Power Bi business surface.'
  tags:
  - Power Bi
  - Imports
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POWER_BI_API_KEY: POWER_BI_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-imports
    baseUri: https://api.powerbi.com/v1.0/myorg
    description: Power BI REST API — Imports business capability. Self-contained, no shared references.
    resources:
    - name: groups-groupId-imports
      path: /groups/{groupId}/imports
      operations:
      - name: getimportsingroup
        method: GET
        description: Power Bi List Imports in a Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createimportingroup
        method: POST
        description: Power Bi Import Content Into a Workspace
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: datasetDisplayName
          in: query
          type: string
          description: Display name of the dataset
          required: true
        - name: nameConflict
          in: query
          type: string
          description: Action to take if a dataset with the same name exists
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.POWER_BI_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-imports-rest
    port: 8080
    description: REST adapter for Power BI REST API — Imports. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/groups/{groupid}/imports
      name: groups-groupid-imports
      description: REST surface for groups-groupId-imports.
      operations:
      - method: GET
        name: getimportsingroup
        description: Power Bi List Imports in a Workspace
        call: rest-imports.getimportsingroup
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createimportingroup
        description: Power Bi Import Content Into a Workspace
        call: rest-imports.createimportingroup
        with:
          datasetDisplayName: rest.datasetDisplayName
          nameConflict: rest.nameConflict
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-imports-mcp
    port: 9090
    transport: http
    description: MCP adapter for Power BI REST API — Imports. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: power-bi-list-imports-workspace
      description: Power Bi List Imports in a Workspace
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-imports.getimportsingroup
      outputParameters:
      - type: object
        mapping: $.
    - name: power-bi-import-content-workspace
      description: Power Bi Import Content Into a Workspace
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-imports.createimportingroup
      with:
        datasetDisplayName: tools.datasetDisplayName
        nameConflict: tools.nameConflict
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.