Flickr · Capability

Flickr API — Favorites

Photos — Favorites. 2 operations. Lead operation: Get A User's Favorites. Self-contained Naftiko capability covering one Flickr business surface.

Run with Naftiko FlickrPhotosFavorites

What You Can Do

GET
Favoritesgetlist — Get A User's Favorites
/v1/favorites/get-list
POST
Favoritesadd — Mark Photo As Favorite
/v1/favorites/add

MCP Tools

get-user-s-favorites

Get A User's Favorites

read-only idempotent
mark-photo-favorite

Mark Photo As Favorite

Capability Spec

flickr-favorites.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Flickr API — Favorites
  description: "Photos — Favorites. 2 operations. Lead operation: Get A User's Favorites. Self-contained Naftiko capability covering one Flickr business surface."
  tags:
    - Flickr
    - Photos
    - Favorites
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
  - namespace: env
    keys:
      FLICKR_API_KEY: FLICKR_API_KEY
capability:
  consumes:
    - type: http
      namespace: flickr-favorites
      baseUri: https://api.flickr.com/services
      description: Flickr API — Favorites business capability. Self-contained, no shared references.
      authentication:
        type: apikey
        key: api_key
        value: '{{env.FLICKR_API_KEY}}'
        placement: query
      resources:
        - name: rest-flickr-favorites-getlist
          path: /rest/flickr.favorites.getList
          operations:
            - name: favoritesGetList
              method: GET
              description: Get A User's Favorites
              inputParameters:
                - name: api_key
                  in: query
                  type: string
                  required: true
                  description: Application API key.
                - name: user_id
                  in: query
                  type: string
                  required: true
                  description: user_id
                - name: page
                  in: query
                  type: integer
                  required: false
                  description: page
                - name: per_page
                  in: query
                  type: integer
                  required: false
                  description: per_page
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: rest-flickr-favorites-add
          path: /rest/flickr.favorites.add
          operations:
            - name: favoritesAdd
              method: POST
              description: Mark Photo As Favorite
              inputParameters:
                - name: api_key
                  in: query
                  type: string
                  required: true
                  description: Application API key.
                - name: photo_id
                  in: query
                  type: string
                  required: true
                  description: photo_id
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: flickr-favorites-rest
      port: 8080
      description: REST adapter for Flickr API — Favorites. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/favorites/get-list
          name: rest-flickr-favorites-getlist
          description: REST surface for Get A User's Favorites.
          operations:
            - method: GET
              name: favoritesGetList
              description: Get A User's Favorites
              call: flickr-favorites.favoritesGetList
              with:
                api_key: rest.api_key
                user_id: rest.user_id
                page: rest.page
                per_page: rest.per_page
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/favorites/add
          name: rest-flickr-favorites-add
          description: REST surface for Mark Photo As Favorite.
          operations:
            - method: POST
              name: favoritesAdd
              description: Mark Photo As Favorite
              call: flickr-favorites.favoritesAdd
              with:
                api_key: rest.api_key
                photo_id: rest.photo_id
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: flickr-favorites-mcp
      port: 9090
      transport: http
      description: MCP adapter for Flickr API — Favorites. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: get-user-s-favorites
          description: Get A User's Favorites
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: flickr-favorites.favoritesGetList
          with:
            api_key: tools.api_key
            user_id: tools.user_id
            page: tools.page
            per_page: tools.per_page
          outputParameters:
            - type: object
              mapping: $.
        - name: mark-photo-favorite
          description: Mark Photo As Favorite
          hints:
            readOnly: false
            destructive: false
            idempotent: false
          call: flickr-favorites.favoritesAdd
          with:
            api_key: tools.api_key
            photo_id: tools.photo_id
          outputParameters:
            - type: object
              mapping: $.