Stack Exchange · Capability

Stack Exchange API — Tags

Stack Exchange API — Tags. 3 operations. Lead operation: Get All Tags. Self-contained Naftiko capability covering one Stack Exchange business surface.

Run with Naftiko Stack ExchangeTags

What You Can Do

GET
Gettags — Get All Tags
/v1/tags
GET
Gettaginfo — Get Tag Info
/v1/tags/{tags}/info
GET
Getrelatedtags — Get Related Tags
/v1/tags/{tags}/related

MCP Tools

get-all-tags

Get All Tags

read-only idempotent
get-tag-info

Get Tag Info

read-only idempotent
get-related-tags

Get Related Tags

read-only idempotent

Capability Spec

stack-exchange-tags.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stack Exchange API — Tags
  description: 'Stack Exchange API — Tags. 3 operations. Lead operation: Get All Tags. Self-contained Naftiko capability covering
    one Stack Exchange business surface.'
  tags:
  - Stack Exchange
  - Tags
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STACK_EXCHANGE_API_KEY: STACK_EXCHANGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: stack-exchange-tags
    baseUri: https://api.stackexchange.com/2.3
    description: Stack Exchange API — Tags business capability. Self-contained, no shared references.
    resources:
    - name: tags
      path: /tags
      operations:
      - name: gettags
        method: GET
        description: Get All Tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: inname
          in: query
          type: string
          description: Filter tags whose name contains this string
    - name: tags-tags-info
      path: /tags/{tags}/info
      operations:
      - name: gettaginfo
        method: GET
        description: Get Tag Info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tags
          in: path
          type: string
          description: Semicolon-delimited list of tag names
          required: true
    - name: tags-tags-related
      path: /tags/{tags}/related
      operations:
      - name: getrelatedtags
        method: GET
        description: Get Related Tags
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tags
          in: path
          type: string
          description: Semicolon-delimited list of tag names
          required: true
    authentication:
      type: bearer
      token: '{{env.STACK_EXCHANGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: stack-exchange-tags-rest
    port: 8080
    description: REST adapter for Stack Exchange 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: gettags
        description: Get All Tags
        call: stack-exchange-tags.gettags
        with:
          inname: rest.inname
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tags/{tags}/info
      name: tags-tags-info
      description: REST surface for tags-tags-info.
      operations:
      - method: GET
        name: gettaginfo
        description: Get Tag Info
        call: stack-exchange-tags.gettaginfo
        with:
          tags: rest.tags
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tags/{tags}/related
      name: tags-tags-related
      description: REST surface for tags-tags-related.
      operations:
      - method: GET
        name: getrelatedtags
        description: Get Related Tags
        call: stack-exchange-tags.getrelatedtags
        with:
          tags: rest.tags
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stack-exchange-tags-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stack Exchange API — Tags. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-all-tags
      description: Get All Tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stack-exchange-tags.gettags
      with:
        inname: tools.inname
      outputParameters:
      - type: object
        mapping: $.
    - name: get-tag-info
      description: Get Tag Info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stack-exchange-tags.gettaginfo
      with:
        tags: tools.tags
      outputParameters:
      - type: object
        mapping: $.
    - name: get-related-tags
      description: Get Related Tags
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stack-exchange-tags.getrelatedtags
      with:
        tags: tools.tags
      outputParameters:
      - type: object
        mapping: $.