Atlassian · Capability

Atlassian Confluence Content API — Labels

Atlassian Confluence Content API — Labels. 4 operations. Lead operation: Atlassian Get Labels for Content. Self-contained Naftiko capability covering one Atlassian business surface.

Run with Naftiko AtlassianLabels

What You Can Do

GET
Getlabelsforcontent — Atlassian Get Labels for Content
/v1/wiki/rest/api/content/{id}/label
POST
Addlabelstocontent — Atlassian Add Labels to Content
/v1/wiki/rest/api/content/{id}/label
DELETE
Removelabelfromcontentusingqueryparameter — Atlassian Remove Label From Content Using Query Parameter
/v1/wiki/rest/api/content/{id}/label
DELETE
Removelabelfromcontent — Atlassian Remove Label From Content
/v1/wiki/rest/api/content/{id}/label/{label}

MCP Tools

atlassian-get-labels-content

Atlassian Get Labels for Content

read-only idempotent
atlassian-add-labels-content

Atlassian Add Labels to Content

atlassian-remove-label-content-using

Atlassian Remove Label From Content Using Query Parameter

idempotent
atlassian-remove-label-content

Atlassian Remove Label From Content

idempotent

Capability Spec

confluence-content-labels.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Atlassian Confluence Content API — Labels
  description: 'Atlassian Confluence Content API — Labels. 4 operations. Lead operation: Atlassian Get Labels for Content.
    Self-contained Naftiko capability covering one Atlassian business surface.'
  tags:
  - Atlassian
  - Labels
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ATLASSIAN_API_KEY: ATLASSIAN_API_KEY
capability:
  consumes:
  - type: http
    namespace: confluence-content-labels
    baseUri: ''
    description: Atlassian Confluence Content API — Labels business capability. Self-contained, no shared references.
    resources:
    - name: wiki-rest-api-content-id-label
      path: /wiki/rest/api/content/{id}/label
      operations:
      - name: getlabelsforcontent
        method: GET
        description: Atlassian Get Labels for Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content to be queried for its labels.
          required: true
        - name: prefix
          in: query
          type: string
          description: Filters the results to labels with the specified prefix. If this parameter
        - name: start
          in: query
          type: integer
          description: The starting index of the returned labels.
        - name: limit
          in: query
          type: integer
          description: The maximum number of labels to return per page. Note,
      - name: addlabelstocontent
        method: POST
        description: Atlassian Add Labels to Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that will have labels added to it.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: removelabelfromcontentusingqueryparameter
        method: DELETE
        description: Atlassian Remove Label From Content Using Query Parameter
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the label will be removed from.
          required: true
        - name: name
          in: query
          type: string
          description: The name of the label to be removed.
          required: true
    - name: wiki-rest-api-content-id-label-label
      path: /wiki/rest/api/content/{id}/label/{label}
      operations:
      - name: removelabelfromcontent
        method: DELETE
        description: Atlassian Remove Label From Content
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          description: The ID of the content that the label will be removed from.
          required: true
        - name: label
          in: path
          type: string
          description: The name of the label to be removed.
          required: true
    authentication:
      type: bearer
      token: '{{env.ATLASSIAN_API_KEY}}'
  exposes:
  - type: rest
    namespace: confluence-content-labels-rest
    port: 8080
    description: REST adapter for Atlassian Confluence Content API — Labels. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/wiki/rest/api/content/{id}/label
      name: wiki-rest-api-content-id-label
      description: REST surface for wiki-rest-api-content-id-label.
      operations:
      - method: GET
        name: getlabelsforcontent
        description: Atlassian Get Labels for Content
        call: confluence-content-labels.getlabelsforcontent
        with:
          id: rest.id
          prefix: rest.prefix
          start: rest.start
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addlabelstocontent
        description: Atlassian Add Labels to Content
        call: confluence-content-labels.addlabelstocontent
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: removelabelfromcontentusingqueryparameter
        description: Atlassian Remove Label From Content Using Query Parameter
        call: confluence-content-labels.removelabelfromcontentusingqueryparameter
        with:
          id: rest.id
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/wiki/rest/api/content/{id}/label/{label}
      name: wiki-rest-api-content-id-label-label
      description: REST surface for wiki-rest-api-content-id-label-label.
      operations:
      - method: DELETE
        name: removelabelfromcontent
        description: Atlassian Remove Label From Content
        call: confluence-content-labels.removelabelfromcontent
        with:
          id: rest.id
          label: rest.label
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: confluence-content-labels-mcp
    port: 9090
    transport: http
    description: MCP adapter for Atlassian Confluence Content API — Labels. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: atlassian-get-labels-content
      description: Atlassian Get Labels for Content
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: confluence-content-labels.getlabelsforcontent
      with:
        id: tools.id
        prefix: tools.prefix
        start: tools.start
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-add-labels-content
      description: Atlassian Add Labels to Content
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: confluence-content-labels.addlabelstocontent
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-remove-label-content-using
      description: Atlassian Remove Label From Content Using Query Parameter
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: confluence-content-labels.removelabelfromcontentusingqueryparameter
      with:
        id: tools.id
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.
    - name: atlassian-remove-label-content
      description: Atlassian Remove Label From Content
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: confluence-content-labels.removelabelfromcontent
      with:
        id: tools.id
        label: tools.label
      outputParameters:
      - type: object
        mapping: $.