naftiko: 1.0.0-alpha2 info: label: Snyk API — Tenants description: 'Snyk API — Tenants. 6 operations. Lead operation: Get a list of all accessible Tenants. Self-contained Naftiko capability covering one Snyk business surface.' tags: - Snyk - Tenants created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SNYK_API_KEY: SNYK_API_KEY capability: consumes: - type: http namespace: rest-tenants baseUri: https://api.snyk.io/rest description: Snyk API — Tenants business capability. Self-contained, no shared references. resources: - name: tenants path: /tenants operations: - name: listtenants method: GET description: Get a list of all accessible Tenants outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: query type: string description: Only return tenants whose name contains this value. - name: tenants-tenant_id path: /tenants/{tenant_id} operations: - name: gettenant method: GET description: Get a single Tenant by ID outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatetenant method: PATCH description: Update tenant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: tenants-tenant_id-memberships path: /tenants/{tenant_id}/memberships operations: - name: gettenantmemberships method: GET description: Get all memberships of the tenant (Early Access) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sort_order in: query type: string description: Order in which results are returned. - name: tenants-tenant_id-memberships-membership_id path: /tenants/{tenant_id}/memberships/{membership_id} operations: - name: deletetenantmembership method: DELETE description: Delete an individual tenant membership for a single user. (Early Access) outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatetenantmembership method: PATCH description: Update tenant membership (Early Access) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.SNYK_API_KEY}}' exposes: - type: rest namespace: rest-tenants-rest port: 8080 description: REST adapter for Snyk API — Tenants. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/tenants name: tenants description: REST surface for tenants. operations: - method: GET name: listtenants description: Get a list of all accessible Tenants call: rest-tenants.listtenants with: name: rest.name outputParameters: - type: object mapping: $. - path: /v1/tenants/{tenant-id} name: tenants-tenant-id description: REST surface for tenants-tenant_id. operations: - method: GET name: gettenant description: Get a single Tenant by ID call: rest-tenants.gettenant outputParameters: - type: object mapping: $. - method: PATCH name: updatetenant description: Update tenant call: rest-tenants.updatetenant with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/tenants/{tenant-id}/memberships name: tenants-tenant-id-memberships description: REST surface for tenants-tenant_id-memberships. operations: - method: GET name: gettenantmemberships description: Get all memberships of the tenant (Early Access) call: rest-tenants.gettenantmemberships with: sort_order: rest.sort_order outputParameters: - type: object mapping: $. - path: /v1/tenants/{tenant-id}/memberships/{membership-id} name: tenants-tenant-id-memberships-membership-id description: REST surface for tenants-tenant_id-memberships-membership_id. operations: - method: DELETE name: deletetenantmembership description: Delete an individual tenant membership for a single user. (Early Access) call: rest-tenants.deletetenantmembership outputParameters: - type: object mapping: $. - method: PATCH name: updatetenantmembership description: Update tenant membership (Early Access) call: rest-tenants.updatetenantmembership with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: rest-tenants-mcp port: 9090 transport: http description: MCP adapter for Snyk API — Tenants. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-list-all-accessible-tenants description: Get a list of all accessible Tenants hints: readOnly: true destructive: false idempotent: true call: rest-tenants.listtenants with: name: tools.name outputParameters: - type: object mapping: $. - name: get-single-tenant-id description: Get a single Tenant by ID hints: readOnly: true destructive: false idempotent: true call: rest-tenants.gettenant outputParameters: - type: object mapping: $. - name: update-tenant description: Update tenant hints: readOnly: false destructive: false idempotent: true call: rest-tenants.updatetenant with: body: tools.body outputParameters: - type: object mapping: $. - name: get-all-memberships-tenant-early description: Get all memberships of the tenant (Early Access) hints: readOnly: true destructive: false idempotent: true call: rest-tenants.gettenantmemberships with: sort_order: tools.sort_order outputParameters: - type: object mapping: $. - name: delete-individual-tenant-membership-single description: Delete an individual tenant membership for a single user. (Early Access) hints: readOnly: false destructive: true idempotent: true call: rest-tenants.deletetenantmembership outputParameters: - type: object mapping: $. - name: update-tenant-membership-early-access description: Update tenant membership (Early Access) hints: readOnly: false destructive: false idempotent: true call: rest-tenants.updatetenantmembership with: body: tools.body outputParameters: - type: object mapping: $.