naftiko: 1.0.0-alpha2 info: label: Discord Linked Roles API — Role Connections description: 'Discord Linked Roles API — Role Connections. 4 operations. Lead operation: Discord List application role connection metadata. Self-contained Naftiko capability covering one Discord business surface.' tags: - Discord - Role Connections created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DISCORD_API_KEY: DISCORD_API_KEY capability: consumes: - type: http namespace: linked-roles-role-connections baseUri: https://discord.com/api/v10 description: Discord Linked Roles API — Role Connections business capability. Self-contained, no shared references. resources: - name: applications-application_id-role-connections-metadata path: /applications/{application_id}/role-connections/metadata operations: - name: getapplicationroleconnectionmetadatarecords method: GET description: Discord List application role connection metadata outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateapplicationroleconnectionmetadatarecords method: PUT description: Discord Update application role connection metadata outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: users-@me-applications-application_id-role-connection path: /users/@me/applications/{application_id}/role-connection operations: - name: getuserapplicationroleconnection method: GET description: Discord Get user application role connection outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateuserapplicationroleconnection method: PUT description: Discord Update user application role connection outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.DISCORD_API_KEY}}' exposes: - type: rest namespace: linked-roles-role-connections-rest port: 8080 description: REST adapter for Discord Linked Roles API — Role Connections. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/applications/{application-id}/role-connections/metadata name: applications-application-id-role-connections-metadata description: REST surface for applications-application_id-role-connections-metadata. operations: - method: GET name: getapplicationroleconnectionmetadatarecords description: Discord List application role connection metadata call: linked-roles-role-connections.getapplicationroleconnectionmetadatarecords outputParameters: - type: object mapping: $. - method: PUT name: updateapplicationroleconnectionmetadatarecords description: Discord Update application role connection metadata call: linked-roles-role-connections.updateapplicationroleconnectionmetadatarecords with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/users/me/applications/{application-id}/role-connection name: users-me-applications-application-id-role-connection description: REST surface for users-@me-applications-application_id-role-connection. operations: - method: GET name: getuserapplicationroleconnection description: Discord Get user application role connection call: linked-roles-role-connections.getuserapplicationroleconnection outputParameters: - type: object mapping: $. - method: PUT name: updateuserapplicationroleconnection description: Discord Update user application role connection call: linked-roles-role-connections.updateuserapplicationroleconnection with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: linked-roles-role-connections-mcp port: 9090 transport: http description: MCP adapter for Discord Linked Roles API — Role Connections. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: discord-list-application-role-connection description: Discord List application role connection metadata hints: readOnly: true destructive: false idempotent: true call: linked-roles-role-connections.getapplicationroleconnectionmetadatarecords outputParameters: - type: object mapping: $. - name: discord-update-application-role-connection description: Discord Update application role connection metadata hints: readOnly: false destructive: false idempotent: true call: linked-roles-role-connections.updateapplicationroleconnectionmetadatarecords with: body: tools.body outputParameters: - type: object mapping: $. - name: discord-get-user-application-role description: Discord Get user application role connection hints: readOnly: true destructive: false idempotent: true call: linked-roles-role-connections.getuserapplicationroleconnection outputParameters: - type: object mapping: $. - name: discord-update-user-application-role description: Discord Update user application role connection hints: readOnly: false destructive: false idempotent: true call: linked-roles-role-connections.updateuserapplicationroleconnection with: body: tools.body outputParameters: - type: object mapping: $.