Prisma · Capability

Prisma Postgres Management API — Connections

Prisma Postgres Management API — Connections. 3 operations. Lead operation: Prisma Delete a connection string. Self-contained Naftiko capability covering one Prisma business surface.

Run with Naftiko PrismaConnections

What You Can Do

DELETE
Deleteconnection — Prisma Delete a connection string
/v1/connections/{connectionid}
GET
Listconnections — Prisma List database connection strings
/v1/databases/{databaseid}/connections
POST
Createconnection — Prisma Create a database connection string
/v1/databases/{databaseid}/connections

MCP Tools

prisma-delete-connection-string

Prisma Delete a connection string

idempotent
prisma-list-database-connection-strings

Prisma List database connection strings

read-only idempotent
prisma-create-database-connection-string

Prisma Create a database connection string

Capability Spec

postgres-management-connections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Prisma Postgres Management API — Connections
  description: 'Prisma Postgres Management API — Connections. 3 operations. Lead operation: Prisma Delete a connection string.
    Self-contained Naftiko capability covering one Prisma business surface.'
  tags:
  - Prisma
  - Connections
  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-connections
    baseUri: https://api.prisma.io/v1
    description: Prisma Postgres Management API — Connections business capability. Self-contained, no shared references.
    resources:
    - name: connections-connectionId
      path: /connections/{connectionId}
      operations:
      - name: deleteconnection
        method: DELETE
        description: Prisma Delete a connection string
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: connectionId
          in: path
          type: string
          description: Unique identifier of the connection string
          required: true
    - name: databases-databaseId-connections
      path: /databases/{databaseId}/connections
      operations:
      - name: listconnections
        method: GET
        description: Prisma List database connection strings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createconnection
        method: POST
        description: Prisma Create a database connection string
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.PRISMA_API_KEY}}'
  exposes:
  - type: rest
    namespace: postgres-management-connections-rest
    port: 8080
    description: REST adapter for Prisma Postgres Management API — Connections. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/connections/{connectionid}
      name: connections-connectionid
      description: REST surface for connections-connectionId.
      operations:
      - method: DELETE
        name: deleteconnection
        description: Prisma Delete a connection string
        call: postgres-management-connections.deleteconnection
        with:
          connectionId: rest.connectionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/databases/{databaseid}/connections
      name: databases-databaseid-connections
      description: REST surface for databases-databaseId-connections.
      operations:
      - method: GET
        name: listconnections
        description: Prisma List database connection strings
        call: postgres-management-connections.listconnections
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createconnection
        description: Prisma Create a database connection string
        call: postgres-management-connections.createconnection
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: postgres-management-connections-mcp
    port: 9090
    transport: http
    description: MCP adapter for Prisma Postgres Management API — Connections. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: prisma-delete-connection-string
      description: Prisma Delete a connection string
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: postgres-management-connections.deleteconnection
      with:
        connectionId: tools.connectionId
      outputParameters:
      - type: object
        mapping: $.
    - name: prisma-list-database-connection-strings
      description: Prisma List database connection strings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: postgres-management-connections.listconnections
      outputParameters:
      - type: object
        mapping: $.
    - name: prisma-create-database-connection-string
      description: Prisma Create a database connection string
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: postgres-management-connections.createconnection
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.