naftiko: 1.0.0-alpha2 info: label: Spot Administration API — Subscriptions description: 'Spot Administration API — Subscriptions. 5 operations. Lead operation: Spot Create Event Subscription. Self-contained Naftiko capability covering one Flexera business surface.' tags: - Flexera - Subscriptions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FLEXERA_API_KEY: FLEXERA_API_KEY capability: consumes: - type: http namespace: spot-administration-subscriptions baseUri: https://api.spotinst.io description: Spot Administration API — Subscriptions business capability. Self-contained, no shared references. resources: - name: events-subscription path: /events/subscription operations: - name: createsubscription method: POST description: Spot Create Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: listsubscriptions method: GET description: Spot List Event Subscriptions outputRawFormat: json outputParameters: - name: result type: object value: $. - name: events-subscription-subscriptionId path: /events/subscription/{subscriptionId} operations: - name: getsubscription method: GET description: Spot Get Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string required: true - name: updatesubscription method: PUT description: Spot Update Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletesubscription method: DELETE description: Spot Delete Event Subscription outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: subscriptionId in: path type: string required: true authentication: type: bearer token: '{{env.FLEXERA_API_KEY}}' exposes: - type: rest namespace: spot-administration-subscriptions-rest port: 8080 description: REST adapter for Spot Administration API — Subscriptions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/events/subscription name: events-subscription description: REST surface for events-subscription. operations: - method: POST name: createsubscription description: Spot Create Event Subscription call: spot-administration-subscriptions.createsubscription with: body: rest.body outputParameters: - type: object mapping: $. - method: GET name: listsubscriptions description: Spot List Event Subscriptions call: spot-administration-subscriptions.listsubscriptions outputParameters: - type: object mapping: $. - path: /v1/events/subscription/{subscriptionid} name: events-subscription-subscriptionid description: REST surface for events-subscription-subscriptionId. operations: - method: GET name: getsubscription description: Spot Get Event Subscription call: spot-administration-subscriptions.getsubscription with: subscriptionId: rest.subscriptionId outputParameters: - type: object mapping: $. - method: PUT name: updatesubscription description: Spot Update Event Subscription call: spot-administration-subscriptions.updatesubscription with: subscriptionId: rest.subscriptionId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletesubscription description: Spot Delete Event Subscription call: spot-administration-subscriptions.deletesubscription with: subscriptionId: rest.subscriptionId outputParameters: - type: object mapping: $. - type: mcp namespace: spot-administration-subscriptions-mcp port: 9090 transport: http description: MCP adapter for Spot Administration API — Subscriptions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: spot-create-event-subscription description: Spot Create Event Subscription hints: readOnly: false destructive: false idempotent: false call: spot-administration-subscriptions.createsubscription with: body: tools.body outputParameters: - type: object mapping: $. - name: spot-list-event-subscriptions description: Spot List Event Subscriptions hints: readOnly: true destructive: false idempotent: true call: spot-administration-subscriptions.listsubscriptions outputParameters: - type: object mapping: $. - name: spot-get-event-subscription description: Spot Get Event Subscription hints: readOnly: true destructive: false idempotent: true call: spot-administration-subscriptions.getsubscription with: subscriptionId: tools.subscriptionId outputParameters: - type: object mapping: $. - name: spot-update-event-subscription description: Spot Update Event Subscription hints: readOnly: false destructive: false idempotent: true call: spot-administration-subscriptions.updatesubscription with: subscriptionId: tools.subscriptionId body: tools.body outputParameters: - type: object mapping: $. - name: spot-delete-event-subscription description: Spot Delete Event Subscription hints: readOnly: false destructive: true idempotent: true call: spot-administration-subscriptions.deletesubscription with: subscriptionId: tools.subscriptionId outputParameters: - type: object mapping: $.