Discourse · Capability

Discourse API Documentation — Tags

Discourse API Documentation — Tags. 6 operations. Lead operation: Get a specific tag. Self-contained Naftiko capability covering one Discourse business surface.

Run with Naftiko DiscourseTags

What You Can Do

GET
Gettag — Get a specific tag
/v1/tag/name-json
GET
Listtaggroups — Get a list of tag groups
/v1/tag-groups-json
POST
Createtaggroup — Creates a tag group
/v1/tag-groups-json
GET
Gettaggroup — Get a single tag group
/v1/tag-groups/id-json
PUT
Updatetaggroup — Update tag group
/v1/tag-groups/id-json
GET
Listtags — Get a list of tags
/v1/tags-json

MCP Tools

get-specific-tag

Get a specific tag

read-only idempotent
get-list-tag-groups

Get a list of tag groups

read-only idempotent
creates-tag-group

Creates a tag group

get-single-tag-group

Get a single tag group

read-only idempotent
update-tag-group

Update tag group

idempotent
get-list-tags

Get a list of tags

read-only idempotent

Capability Spec

discourse-tags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Discourse API Documentation — Tags
  description: 'Discourse API Documentation — Tags. 6 operations. Lead operation: Get a specific tag. Self-contained Naftiko
    capability covering one Discourse business surface.'
  tags:
  - Discourse
  - Tags
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DISCOURSE_API_KEY: DISCOURSE_API_KEY
capability:
  consumes:
  - type: http
    namespace: discourse-tags
    baseUri: https://{defaultHost}
    description: Discourse API Documentation — Tags business capability. Self-contained, no shared references.
    resources:
    - name: tag-name}.json
      path: /tag/{name}.json
      operations:
      - name: gettag
        method: GET
        description: Get a specific tag
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: name
          in: path
          type: string
          required: true
    - name: tag_groups.json
      path: /tag_groups.json
      operations:
      - name: listtaggroups
        method: GET
        description: Get a list of tag groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createtaggroup
        method: POST
        description: Creates a tag group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: tag_groups-id}.json
      path: /tag_groups/{id}.json
      operations:
      - name: gettaggroup
        method: GET
        description: Get a single tag group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
      - name: updatetaggroup
        method: PUT
        description: Update tag group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: tags.json
      path: /tags.json
      operations:
      - name: listtags
        method: GET
        description: Get a list of tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: discourse-tags-rest
    port: 8080
    description: REST adapter for Discourse API Documentation — Tags. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/tag/name-json
      name: tag-name-json
      description: REST surface for tag-name}.json.
      operations:
      - method: GET
        name: gettag
        description: Get a specific tag
        call: discourse-tags.gettag
        with:
          name: rest.name
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tag-groups-json
      name: tag-groups-json
      description: REST surface for tag_groups.json.
      operations:
      - method: GET
        name: listtaggroups
        description: Get a list of tag groups
        call: discourse-tags.listtaggroups
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createtaggroup
        description: Creates a tag group
        call: discourse-tags.createtaggroup
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tag-groups/id-json
      name: tag-groups-id-json
      description: REST surface for tag_groups-id}.json.
      operations:
      - method: GET
        name: gettaggroup
        description: Get a single tag group
        call: discourse-tags.gettaggroup
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatetaggroup
        description: Update tag group
        call: discourse-tags.updatetaggroup
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tags-json
      name: tags-json
      description: REST surface for tags.json.
      operations:
      - method: GET
        name: listtags
        description: Get a list of tags
        call: discourse-tags.listtags
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: discourse-tags-mcp
    port: 9090
    transport: http
    description: MCP adapter for Discourse API Documentation — Tags. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-specific-tag
      description: Get a specific tag
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: discourse-tags.gettag
      with:
        name: tools.name
      outputParameters:
      - type: object
        mapping: $.
    - name: get-list-tag-groups
      description: Get a list of tag groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: discourse-tags.listtaggroups
      outputParameters:
      - type: object
        mapping: $.
    - name: creates-tag-group
      description: Creates a tag group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: discourse-tags.createtaggroup
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-tag-group
      description: Get a single tag group
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: discourse-tags.gettaggroup
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: update-tag-group
      description: Update tag group
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: discourse-tags.updatetaggroup
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-list-tags
      description: Get a list of tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: discourse-tags.listtags
      outputParameters:
      - type: object
        mapping: $.