Portainer · Capability

PortainerCE API — docker

PortainerCE API — docker. 3 operations. Lead operation: Fetch container gpus data. Self-contained Naftiko capability covering one Portainer business surface.

Run with Naftiko Portainerdocker

What You Can Do

GET
Dockercontainergpusinspect — Fetch container gpus data
/v1/docker/{environmentid}/containers/{containerid}/gpus
GET
Dockerdashboard — Get counters for the dashboard
/v1/docker/{environmentid}/dashboard
GET
Dockerimageslist — Fetch images
/v1/docker/{environmentid}/images

MCP Tools

fetch-container-gpus-data

Fetch container gpus data

read-only idempotent
get-counters-dashboard

Get counters for the dashboard

read-only idempotent
fetch-images

Fetch images

read-only idempotent

Capability Spec

portainer-docker.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PortainerCE API — docker
  description: 'PortainerCE API — docker. 3 operations. Lead operation: Fetch container gpus data. Self-contained Naftiko
    capability covering one Portainer business surface.'
  tags:
  - Portainer
  - docker
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTAINER_API_KEY: PORTAINER_API_KEY
capability:
  consumes:
  - type: http
    namespace: portainer-docker
    baseUri: ''
    description: PortainerCE API — docker business capability. Self-contained, no shared references.
    resources:
    - name: docker-environmentId-containers-containerId-gpus
      path: /docker/{environmentId}/containers/{containerId}/gpus
      operations:
      - name: dockercontainergpusinspect
        method: GET
        description: Fetch container gpus data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: environmentId
          in: path
          type: integer
          description: Environment identifier
          required: true
        - name: containerId
          in: path
          type: integer
          description: Container identifier
          required: true
    - name: docker-environmentId-dashboard
      path: /docker/{environmentId}/dashboard
      operations:
      - name: dockerdashboard
        method: GET
        description: Get counters for the dashboard
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: environmentId
          in: path
          type: integer
          description: Environment identifier
          required: true
    - name: docker-environmentId-images
      path: /docker/{environmentId}/images
      operations:
      - name: dockerimageslist
        method: GET
        description: Fetch images
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: environmentId
          in: path
          type: integer
          description: Environment identifier
          required: true
        - name: withUsage
          in: query
          type: boolean
          description: Include image usage information
  exposes:
  - type: rest
    namespace: portainer-docker-rest
    port: 8080
    description: REST adapter for PortainerCE API — docker. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/docker/{environmentid}/containers/{containerid}/gpus
      name: docker-environmentid-containers-containerid-gpus
      description: REST surface for docker-environmentId-containers-containerId-gpus.
      operations:
      - method: GET
        name: dockercontainergpusinspect
        description: Fetch container gpus data
        call: portainer-docker.dockercontainergpusinspect
        with:
          environmentId: rest.environmentId
          containerId: rest.containerId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/docker/{environmentid}/dashboard
      name: docker-environmentid-dashboard
      description: REST surface for docker-environmentId-dashboard.
      operations:
      - method: GET
        name: dockerdashboard
        description: Get counters for the dashboard
        call: portainer-docker.dockerdashboard
        with:
          environmentId: rest.environmentId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/docker/{environmentid}/images
      name: docker-environmentid-images
      description: REST surface for docker-environmentId-images.
      operations:
      - method: GET
        name: dockerimageslist
        description: Fetch images
        call: portainer-docker.dockerimageslist
        with:
          environmentId: rest.environmentId
          withUsage: rest.withUsage
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portainer-docker-mcp
    port: 9090
    transport: http
    description: MCP adapter for PortainerCE API — docker. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: fetch-container-gpus-data
      description: Fetch container gpus data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portainer-docker.dockercontainergpusinspect
      with:
        environmentId: tools.environmentId
        containerId: tools.containerId
      outputParameters:
      - type: object
        mapping: $.
    - name: get-counters-dashboard
      description: Get counters for the dashboard
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portainer-docker.dockerdashboard
      with:
        environmentId: tools.environmentId
      outputParameters:
      - type: object
        mapping: $.
    - name: fetch-images
      description: Fetch images
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portainer-docker.dockerimageslist
      with:
        environmentId: tools.environmentId
        withUsage: tools.withUsage
      outputParameters:
      - type: object
        mapping: $.