naftiko: 1.0.0-alpha2 info: label: Unity Friends API — Blocks description: 'Unity Friends API — Blocks. 3 operations. Lead operation: List Blocked Players. Self-contained Naftiko capability covering one Unity business surface.' tags: - Unity - Blocks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UNITY_API_KEY: UNITY_API_KEY capability: consumes: - type: http namespace: friends-blocks baseUri: https://social.services.api.unity.com description: Unity Friends API — Blocks business capability. Self-contained, no shared references. resources: - name: v1-me-relationships-blocks path: /v1/me/relationships/blocks operations: - name: listblockedplayers method: GET description: List Blocked Players outputRawFormat: json outputParameters: - name: result type: object value: $. - name: v1-me-relationships-memberId-block path: /v1/me/relationships/{memberId}/block operations: - name: blockplayer method: POST description: Block Player outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: memberId in: path type: string required: true - name: v1-me-relationships-memberId-unblock path: /v1/me/relationships/{memberId}/unblock operations: - name: unblockplayer method: POST description: Unblock Player outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: memberId in: path type: string required: true authentication: type: bearer token: '{{env.UNITY_API_KEY}}' exposes: - type: rest namespace: friends-blocks-rest port: 8080 description: REST adapter for Unity Friends API — Blocks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/me/relationships/blocks name: v1-me-relationships-blocks description: REST surface for v1-me-relationships-blocks. operations: - method: GET name: listblockedplayers description: List Blocked Players call: friends-blocks.listblockedplayers outputParameters: - type: object mapping: $. - path: /v1/v1/me/relationships/{memberid}/block name: v1-me-relationships-memberid-block description: REST surface for v1-me-relationships-memberId-block. operations: - method: POST name: blockplayer description: Block Player call: friends-blocks.blockplayer with: memberId: rest.memberId outputParameters: - type: object mapping: $. - path: /v1/v1/me/relationships/{memberid}/unblock name: v1-me-relationships-memberid-unblock description: REST surface for v1-me-relationships-memberId-unblock. operations: - method: POST name: unblockplayer description: Unblock Player call: friends-blocks.unblockplayer with: memberId: rest.memberId outputParameters: - type: object mapping: $. - type: mcp namespace: friends-blocks-mcp port: 9090 transport: http description: MCP adapter for Unity Friends API — Blocks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-blocked-players description: List Blocked Players hints: readOnly: true destructive: false idempotent: true call: friends-blocks.listblockedplayers outputParameters: - type: object mapping: $. - name: block-player description: Block Player hints: readOnly: false destructive: false idempotent: false call: friends-blocks.blockplayer with: memberId: tools.memberId outputParameters: - type: object mapping: $. - name: unblock-player description: Unblock Player hints: readOnly: false destructive: false idempotent: false call: friends-blocks.unblockplayer with: memberId: tools.memberId outputParameters: - type: object mapping: $.