Flickr · Capability

Flickr API — Auth

Photos — Auth. 1 operations. Lead operation: Check OAuth Token. Self-contained Naftiko capability covering one Flickr business surface.

Run with Naftiko FlickrPhotosAuth

What You Can Do

GET
Authoauthchecktoken — Check OAuth Token
/v1/auth/oauth/check-token

MCP Tools

check-oauth-token

Check OAuth Token

read-only idempotent

Capability Spec

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