naftiko: 1.0.0-alpha2 info: label: Todoist API — Labels description: 'Todoist API — Labels. 5 operations. Lead operation: List Labels. Self-contained Naftiko capability covering one Todoist business surface.' tags: - Todoist - Labels created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TODOIST_API_KEY: TODOIST_API_KEY capability: consumes: - type: http namespace: todoist-labels baseUri: https://api.todoist.com/api/v1 description: Todoist API — Labels business capability. Self-contained, no shared references. resources: - name: labels path: /labels operations: - name: listlabels method: GET description: List Labels outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createlabel method: POST description: Create Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: labels-id path: /labels/{id} operations: - name: getlabel method: GET description: Get Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: updatelabel method: POST description: Update Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletelabel method: DELETE description: Delete Label outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: id in: path type: string required: true authentication: type: bearer token: '{{env.TODOIST_API_KEY}}' exposes: - type: rest namespace: todoist-labels-rest port: 8080 description: REST adapter for Todoist API — Labels. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/labels name: labels description: REST surface for labels. operations: - method: GET name: listlabels description: List Labels call: todoist-labels.listlabels outputParameters: - type: object mapping: $. - method: POST name: createlabel description: Create Label call: todoist-labels.createlabel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/labels/{id} name: labels-id description: REST surface for labels-id. operations: - method: GET name: getlabel description: Get Label call: todoist-labels.getlabel with: id: rest.id outputParameters: - type: object mapping: $. - method: POST name: updatelabel description: Update Label call: todoist-labels.updatelabel with: id: rest.id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletelabel description: Delete Label call: todoist-labels.deletelabel with: id: rest.id outputParameters: - type: object mapping: $. - type: mcp namespace: todoist-labels-mcp port: 9090 transport: http description: MCP adapter for Todoist API — Labels. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-labels description: List Labels hints: readOnly: true destructive: false idempotent: true call: todoist-labels.listlabels outputParameters: - type: object mapping: $. - name: create-label description: Create Label hints: readOnly: false destructive: false idempotent: false call: todoist-labels.createlabel with: body: tools.body outputParameters: - type: object mapping: $. - name: get-label description: Get Label hints: readOnly: true destructive: false idempotent: true call: todoist-labels.getlabel with: id: tools.id outputParameters: - type: object mapping: $. - name: update-label description: Update Label hints: readOnly: false destructive: false idempotent: false call: todoist-labels.updatelabel with: id: tools.id body: tools.body outputParameters: - type: object mapping: $. - name: delete-label description: Delete Label hints: readOnly: false destructive: true idempotent: true call: todoist-labels.deletelabel with: id: tools.id outputParameters: - type: object mapping: $.