Flickr · Capability

Flickr API — Collections

Photos — Collections. 1 operations. Lead operation: Get The Collection Tree. Self-contained Naftiko capability covering one Flickr business surface.

Run with Naftiko FlickrPhotosCollections

What You Can Do

GET
Collectionsgettree — Get The Collection Tree
/v1/collections/get-tree

MCP Tools

get-collection-tree

Get The Collection Tree

read-only idempotent

Capability Spec

flickr-collections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Flickr API — Collections
  description: 'Photos — Collections. 1 operations. Lead operation: Get The Collection Tree. Self-contained Naftiko capability covering one Flickr business surface.'
  tags:
    - Flickr
    - Photos
    - Collections
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
  - namespace: env
    keys:
      FLICKR_API_KEY: FLICKR_API_KEY
capability:
  consumes:
    - type: http
      namespace: flickr-collections
      baseUri: https://api.flickr.com/services
      description: Flickr API — Collections business capability. Self-contained, no shared references.
      authentication:
        type: apikey
        key: api_key
        value: '{{env.FLICKR_API_KEY}}'
        placement: query
      resources:
        - name: rest-flickr-collections-gettree
          path: /rest/flickr.collections.getTree
          operations:
            - name: collectionsGetTree
              method: GET
              description: Get The Collection Tree
              inputParameters:
                - name: api_key
                  in: query
                  type: string
                  required: true
                  description: Application API key.
                - name: collection_id
                  in: query
                  type: string
                  required: false
                  description: collection_id
                - name: user_id
                  in: query
                  type: string
                  required: true
                  description: user_id
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: flickr-collections-rest
      port: 8080
      description: REST adapter for Flickr API — Collections. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/collections/get-tree
          name: rest-flickr-collections-gettree
          description: REST surface for Get The Collection Tree.
          operations:
            - method: GET
              name: collectionsGetTree
              description: Get The Collection Tree
              call: flickr-collections.collectionsGetTree
              with:
                api_key: rest.api_key
                collection_id: rest.collection_id
                user_id: rest.user_id
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: flickr-collections-mcp
      port: 9090
      transport: http
      description: MCP adapter for Flickr API — Collections. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: get-collection-tree
          description: Get The Collection Tree
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: flickr-collections.collectionsGetTree
          with:
            api_key: tools.api_key
            collection_id: tools.collection_id
            user_id: tools.user_id
          outputParameters:
            - type: object
              mapping: $.