naftiko: 1.0.0-alpha2 info: label: Loops OpenAPI Spec — Themes description: 'Loops OpenAPI Spec — Themes. 2 operations. Lead operation: List themes. Self-contained Naftiko capability covering one Loops business surface.' tags: - Loops - Themes created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LOOPS_API_KEY: LOOPS_API_KEY capability: consumes: - type: http namespace: loops-themes baseUri: https://app.loops.so/api/v1 description: Loops OpenAPI Spec — Themes business capability. Self-contained, no shared references. resources: - name: themes path: /themes operations: - name: get method: GET description: List themes outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: perPage in: query type: string description: How many results to return in each request. Must be between 10 and 50. Default is 20. - name: cursor in: query type: string description: A cursor to return a specific page of results. Cursors can be found from the `pagination.nextCursor` value in each response. - name: themes-themeId path: /themes/{themeId} operations: - name: get method: GET description: Get a theme outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.LOOPS_API_KEY}}' exposes: - type: rest namespace: loops-themes-rest port: 8080 description: REST adapter for Loops OpenAPI Spec — Themes. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/themes name: themes description: REST surface for themes. operations: - method: GET name: get description: List themes call: loops-themes.get with: perPage: rest.perPage cursor: rest.cursor outputParameters: - type: object mapping: $. - path: /v1/themes/{themeid} name: themes-themeid description: REST surface for themes-themeId. operations: - method: GET name: get description: Get a theme call: loops-themes.get outputParameters: - type: object mapping: $. - type: mcp namespace: loops-themes-mcp port: 9090 transport: http description: MCP adapter for Loops OpenAPI Spec — Themes. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-themes description: List themes hints: readOnly: true destructive: false idempotent: true call: loops-themes.get with: perPage: tools.perPage cursor: tools.cursor outputParameters: - type: object mapping: $. - name: get-theme description: Get a theme hints: readOnly: true destructive: false idempotent: true call: loops-themes.get outputParameters: - type: object mapping: $.