Portainer · Capability

PortainerCE API — tags

PortainerCE API — tags. 3 operations. Lead operation: List tags. Self-contained Naftiko capability covering one Portainer business surface.

Run with Naftiko Portainertags

What You Can Do

GET
Taglist — List tags
/v1/tags
POST
Tagcreate — Create a new tag
/v1/tags
DELETE
Tagdelete — Remove a tag
/v1/tags/{id}

MCP Tools

list-tags

List tags

read-only idempotent
create-new-tag

Create a new tag

remove-tag

Remove a tag

idempotent

Capability Spec

portainer-tags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PortainerCE API — tags
  description: 'PortainerCE API — tags. 3 operations. Lead operation: List tags. Self-contained Naftiko capability covering
    one Portainer business surface.'
  tags:
  - Portainer
  - tags
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PORTAINER_API_KEY: PORTAINER_API_KEY
capability:
  consumes:
  - type: http
    namespace: portainer-tags
    baseUri: ''
    description: PortainerCE API — tags business capability. Self-contained, no shared references.
    resources:
    - name: tags
      path: /tags
      operations:
      - name: taglist
        method: GET
        description: List tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: tagcreate
        method: POST
        description: Create a new tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: string
          description: Tag details
          required: true
    - name: tags-id
      path: /tags/{id}
      operations:
      - name: tagdelete
        method: DELETE
        description: Remove a tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Tag identifier
          required: true
  exposes:
  - type: rest
    namespace: portainer-tags-rest
    port: 8080
    description: REST adapter for PortainerCE API — tags. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/tags
      name: tags
      description: REST surface for tags.
      operations:
      - method: GET
        name: taglist
        description: List tags
        call: portainer-tags.taglist
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: tagcreate
        description: Create a new tag
        call: portainer-tags.tagcreate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tags/{id}
      name: tags-id
      description: REST surface for tags-id.
      operations:
      - method: DELETE
        name: tagdelete
        description: Remove a tag
        call: portainer-tags.tagdelete
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: portainer-tags-mcp
    port: 9090
    transport: http
    description: MCP adapter for PortainerCE API — tags. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-tags
      description: List tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: portainer-tags.taglist
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-tag
      description: Create a new tag
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: portainer-tags.tagcreate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-tag
      description: Remove a tag
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: portainer-tags.tagdelete
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.