naftiko: 1.0.0-alpha2 info: label: Torii API — Audit description: 'Torii API — Audit. 1 operations. Lead operation: Torii Get admin audit logs. Self-contained Naftiko capability covering one Torii business surface.' tags: - Torii - Audit created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TORII_API_KEY: TORII_API_KEY capability: consumes: - type: http namespace: torii-audit baseUri: https://api.toriihq.com/v1.0 description: Torii API — Audit business capability. Self-contained, no shared references. resources: - name: audit path: /audit operations: - name: getaudit method: GET description: Torii Get admin audit logs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: sort in: query type: string description: Field to sort results by. - name: size in: query type: integer description: Number of results per page (max 1000). - name: cursor in: query type: string description: Cursor for pagination to retrieve the next page of results. authentication: type: bearer token: '{{env.TORII_API_KEY}}' exposes: - type: rest namespace: torii-audit-rest port: 8080 description: REST adapter for Torii API — Audit. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/audit name: audit description: REST surface for audit. operations: - method: GET name: getaudit description: Torii Get admin audit logs call: torii-audit.getaudit with: sort: rest.sort size: rest.size cursor: rest.cursor outputParameters: - type: object mapping: $. - type: mcp namespace: torii-audit-mcp port: 9090 transport: http description: MCP adapter for Torii API — Audit. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: torii-get-admin-audit-logs description: Torii Get admin audit logs hints: readOnly: true destructive: false idempotent: true call: torii-audit.getaudit with: sort: tools.sort size: tools.size cursor: tools.cursor outputParameters: - type: object mapping: $.