naftiko: 1.0.0-alpha2 info: label: Facebook Graph API — Photos description: 'Facebook Graph API — Photos. 2 operations. Lead operation: Facebook Get Photo. Self-contained Naftiko capability covering one Facebook business surface.' tags: - Facebook - Photos created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FACEBOOK_API_KEY: FACEBOOK_API_KEY capability: consumes: - type: http namespace: graph-photos baseUri: https://graph.facebook.com/v21.0 description: Facebook Graph API — Photos business capability. Self-contained, no shared references. resources: - name: photo-id path: /{photo-id} operations: - name: getphoto method: GET description: Facebook Get Photo outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: photo-id in: path type: string description: The photo ID. required: true - name: user-id-photos path: /{user-id}/photos operations: - name: getuserphotos method: GET description: Facebook Get User Photos outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: user-id in: path type: string description: The user ID. required: true - name: limit in: query type: integer description: Maximum number of photos to return. authentication: type: bearer token: '{{env.FACEBOOK_API_KEY}}' exposes: - type: rest namespace: graph-photos-rest port: 8080 description: REST adapter for Facebook Graph API — Photos. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/{photo-id} name: photo-id description: REST surface for photo-id. operations: - method: GET name: getphoto description: Facebook Get Photo call: graph-photos.getphoto with: photo-id: rest.photo-id outputParameters: - type: object mapping: $. - path: /v1/{user-id}/photos name: user-id-photos description: REST surface for user-id-photos. operations: - method: GET name: getuserphotos description: Facebook Get User Photos call: graph-photos.getuserphotos with: user-id: rest.user-id limit: rest.limit outputParameters: - type: object mapping: $. - type: mcp namespace: graph-photos-mcp port: 9090 transport: http description: MCP adapter for Facebook Graph API — Photos. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: facebook-get-photo description: Facebook Get Photo hints: readOnly: true destructive: false idempotent: true call: graph-photos.getphoto with: photo-id: tools.photo-id outputParameters: - type: object mapping: $. - name: facebook-get-user-photos description: Facebook Get User Photos hints: readOnly: true destructive: false idempotent: true call: graph-photos.getuserphotos with: user-id: tools.user-id limit: tools.limit outputParameters: - type: object mapping: $.