naftiko: 1.0.0-alpha2 info: label: Prisma Postgres Management API — Database Backups description: 'Prisma Postgres Management API — Database Backups. 3 operations. Lead operation: Prisma List database backups. Self-contained Naftiko capability covering one Prisma business surface.' tags: - Prisma - Database Backups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PRISMA_API_KEY: PRISMA_API_KEY capability: consumes: - type: http namespace: postgres-management-database-backups baseUri: https://api.prisma.io/v1 description: Prisma Postgres Management API — Database Backups business capability. Self-contained, no shared references. resources: - name: databases-databaseId-backups path: /databases/{databaseId}/backups operations: - name: listdatabasebackups method: GET description: Prisma List database backups outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdatabasebackup method: POST description: Prisma Create a manual database backup outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: databases-databaseId-backups-backupId-restore path: /databases/{databaseId}/backups/{backupId}/restore operations: - name: restoredatabasebackup method: POST description: Prisma Restore a database from backup outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: backupId in: path type: string description: Unique identifier of the backup to restore required: true authentication: type: bearer token: '{{env.PRISMA_API_KEY}}' exposes: - type: rest namespace: postgres-management-database-backups-rest port: 8080 description: REST adapter for Prisma Postgres Management API — Database Backups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/databases/{databaseid}/backups name: databases-databaseid-backups description: REST surface for databases-databaseId-backups. operations: - method: GET name: listdatabasebackups description: Prisma List database backups call: postgres-management-database-backups.listdatabasebackups outputParameters: - type: object mapping: $. - method: POST name: createdatabasebackup description: Prisma Create a manual database backup call: postgres-management-database-backups.createdatabasebackup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/databases/{databaseid}/backups/{backupid}/restore name: databases-databaseid-backups-backupid-restore description: REST surface for databases-databaseId-backups-backupId-restore. operations: - method: POST name: restoredatabasebackup description: Prisma Restore a database from backup call: postgres-management-database-backups.restoredatabasebackup with: backupId: rest.backupId outputParameters: - type: object mapping: $. - type: mcp namespace: postgres-management-database-backups-mcp port: 9090 transport: http description: MCP adapter for Prisma Postgres Management API — Database Backups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: prisma-list-database-backups description: Prisma List database backups hints: readOnly: true destructive: false idempotent: true call: postgres-management-database-backups.listdatabasebackups outputParameters: - type: object mapping: $. - name: prisma-create-manual-database-backup description: Prisma Create a manual database backup hints: readOnly: false destructive: false idempotent: false call: postgres-management-database-backups.createdatabasebackup with: body: tools.body outputParameters: - type: object mapping: $. - name: prisma-restore-database-backup description: Prisma Restore a database from backup hints: readOnly: false destructive: false idempotent: false call: postgres-management-database-backups.restoredatabasebackup with: backupId: tools.backupId outputParameters: - type: object mapping: $.