Flickr · Capability

Flickr API — Places

Photos — Places. 2 operations. Lead operation: Find Place By Query. Self-contained Naftiko capability covering one Flickr business surface.

Run with Naftiko FlickrPhotosPlaces

What You Can Do

GET
Placesfind — Find Place By Query
/v1/places/find
GET
Placesfindbylatlon — Find Place By Lat/Lon
/v1/places/find-by-lat-lon

MCP Tools

find-place-query

Find Place By Query

read-only idempotent
find-place-lat-lon

Find Place By Lat/Lon

read-only idempotent

Capability Spec

flickr-places.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Flickr API — Places
  description: 'Photos — Places. 2 operations. Lead operation: Find Place By Query. Self-contained Naftiko capability covering one Flickr business surface.'
  tags:
    - Flickr
    - Photos
    - Places
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
  - namespace: env
    keys:
      FLICKR_API_KEY: FLICKR_API_KEY
capability:
  consumes:
    - type: http
      namespace: flickr-places
      baseUri: https://api.flickr.com/services
      description: Flickr API — Places business capability. Self-contained, no shared references.
      authentication:
        type: apikey
        key: api_key
        value: '{{env.FLICKR_API_KEY}}'
        placement: query
      resources:
        - name: rest-flickr-places-find
          path: /rest/flickr.places.find
          operations:
            - name: placesFind
              method: GET
              description: Find Place By Query
              inputParameters:
                - name: api_key
                  in: query
                  type: string
                  required: true
                  description: Application API key.
                - name: query
                  in: query
                  type: string
                  required: true
                  description: query
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: rest-flickr-places-findbylatlon
          path: /rest/flickr.places.findByLatLon
          operations:
            - name: placesFindByLatLon
              method: GET
              description: Find Place By Lat/Lon
              inputParameters:
                - name: api_key
                  in: query
                  type: string
                  required: true
                  description: Application API key.
                - name: lat
                  in: query
                  type: number
                  required: true
                  description: lat
                - name: lon
                  in: query
                  type: number
                  required: true
                  description: lon
                - name: accuracy
                  in: query
                  type: integer
                  required: false
                  description: accuracy
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: flickr-places-rest
      port: 8080
      description: REST adapter for Flickr API — Places. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/places/find
          name: rest-flickr-places-find
          description: REST surface for Find Place By Query.
          operations:
            - method: GET
              name: placesFind
              description: Find Place By Query
              call: flickr-places.placesFind
              with:
                api_key: rest.api_key
                query: rest.query
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/places/find-by-lat-lon
          name: rest-flickr-places-findbylatlon
          description: REST surface for Find Place By Lat/Lon.
          operations:
            - method: GET
              name: placesFindByLatLon
              description: Find Place By Lat/Lon
              call: flickr-places.placesFindByLatLon
              with:
                api_key: rest.api_key
                lat: rest.lat
                lon: rest.lon
                accuracy: rest.accuracy
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: flickr-places-mcp
      port: 9090
      transport: http
      description: MCP adapter for Flickr API — Places. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: find-place-query
          description: Find Place By Query
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: flickr-places.placesFind
          with:
            api_key: tools.api_key
            query: tools.query
          outputParameters:
            - type: object
              mapping: $.
        - name: find-place-lat-lon
          description: Find Place By Lat/Lon
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: flickr-places.placesFindByLatLon
          with:
            api_key: tools.api_key
            lat: tools.lat
            lon: tools.lon
            accuracy: tools.accuracy
          outputParameters:
            - type: object
              mapping: $.