Scaleway · Capability

Managed Database for PostgreSQL and MySQL API — Endpoints

Managed Database for PostgreSQL and MySQL API — Endpoints. 4 operations. Lead operation: Get a Database Instance endpoint. Self-contained Naftiko capability covering one Scaleway business surface.

Run with Naftiko ScalewayEndpoints

What You Can Do

GET
Getendpoint — Get a Database Instance endpoint
/v1/rdb/v1/regions/{region}/endpoints/{endpoint-id}
DELETE
Deleteendpoint — Delete a Database Instance endpoint
/v1/rdb/v1/regions/{region}/endpoints/{endpoint-id}
POST
Migrateendpoint — Migrate an existing instance endpoint to another instance
/v1/rdb/v1/regions/{region}/endpoints/{endpoint-id}/migrate
POST
Createendpoint — Create a new Database Instance endpoint
/v1/rdb/v1/regions/{region}/instances/{instance-id}/endpoints

MCP Tools

get-database-instance-endpoint

Get a Database Instance endpoint

read-only idempotent
delete-database-instance-endpoint

Delete a Database Instance endpoint

idempotent
migrate-existing-instance-endpoint-another

Migrate an existing instance endpoint to another instance

create-new-database-instance-endpoint

Create a new Database Instance endpoint

Capability Spec

database-endpoints.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Managed Database for PostgreSQL and MySQL API — Endpoints
  description: 'Managed Database for PostgreSQL and MySQL API — Endpoints. 4 operations. Lead operation: Get a Database Instance
    endpoint. Self-contained Naftiko capability covering one Scaleway business surface.'
  tags:
  - Scaleway
  - Endpoints
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCALEWAY_API_KEY: SCALEWAY_API_KEY
capability:
  consumes:
  - type: http
    namespace: database-endpoints
    baseUri: https://api.scaleway.com
    description: Managed Database for PostgreSQL and MySQL API — Endpoints business capability. Self-contained, no shared
      references.
    resources:
    - name: rdb-v1-regions-region-endpoints-endpoint_id
      path: /rdb/v1/regions/{region}/endpoints/{endpoint_id}
      operations:
      - name: getendpoint
        method: GET
        description: Get a Database Instance endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: endpoint_id
          in: path
          type: string
          description: UUID of the endpoint you want to get.
          required: true
      - name: deleteendpoint
        method: DELETE
        description: Delete a Database Instance endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: endpoint_id
          in: path
          type: string
          description: UUID of the endpoint you want to delete.
          required: true
    - name: rdb-v1-regions-region-endpoints-endpoint_id-migrate
      path: /rdb/v1/regions/{region}/endpoints/{endpoint_id}/migrate
      operations:
      - name: migrateendpoint
        method: POST
        description: Migrate an existing instance endpoint to another instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: endpoint_id
          in: path
          type: string
          description: UUID of the endpoint you want to migrate.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: rdb-v1-regions-region-instances-instance_id-endpoints
      path: /rdb/v1/regions/{region}/instances/{instance_id}/endpoints
      operations:
      - name: createendpoint
        method: POST
        description: Create a new Database Instance endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: region
          in: path
          type: string
          description: The region you want to target
          required: true
        - name: instance_id
          in: path
          type: string
          description: UUID of the Database Instance you to which you want to add an endpoint.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: X-Auth-Token
      value: '{{env.SCALEWAY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: database-endpoints-rest
    port: 8080
    description: REST adapter for Managed Database for PostgreSQL and MySQL API — Endpoints. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/rdb/v1/regions/{region}/endpoints/{endpoint-id}
      name: rdb-v1-regions-region-endpoints-endpoint-id
      description: REST surface for rdb-v1-regions-region-endpoints-endpoint_id.
      operations:
      - method: GET
        name: getendpoint
        description: Get a Database Instance endpoint
        call: database-endpoints.getendpoint
        with:
          region: rest.region
          endpoint_id: rest.endpoint_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteendpoint
        description: Delete a Database Instance endpoint
        call: database-endpoints.deleteendpoint
        with:
          region: rest.region
          endpoint_id: rest.endpoint_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/rdb/v1/regions/{region}/endpoints/{endpoint-id}/migrate
      name: rdb-v1-regions-region-endpoints-endpoint-id-migrate
      description: REST surface for rdb-v1-regions-region-endpoints-endpoint_id-migrate.
      operations:
      - method: POST
        name: migrateendpoint
        description: Migrate an existing instance endpoint to another instance
        call: database-endpoints.migrateendpoint
        with:
          region: rest.region
          endpoint_id: rest.endpoint_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/rdb/v1/regions/{region}/instances/{instance-id}/endpoints
      name: rdb-v1-regions-region-instances-instance-id-endpoints
      description: REST surface for rdb-v1-regions-region-instances-instance_id-endpoints.
      operations:
      - method: POST
        name: createendpoint
        description: Create a new Database Instance endpoint
        call: database-endpoints.createendpoint
        with:
          region: rest.region
          instance_id: rest.instance_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: database-endpoints-mcp
    port: 9090
    transport: http
    description: MCP adapter for Managed Database for PostgreSQL and MySQL API — Endpoints. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: get-database-instance-endpoint
      description: Get a Database Instance endpoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: database-endpoints.getendpoint
      with:
        region: tools.region
        endpoint_id: tools.endpoint_id
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-database-instance-endpoint
      description: Delete a Database Instance endpoint
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: database-endpoints.deleteendpoint
      with:
        region: tools.region
        endpoint_id: tools.endpoint_id
      outputParameters:
      - type: object
        mapping: $.
    - name: migrate-existing-instance-endpoint-another
      description: Migrate an existing instance endpoint to another instance
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: database-endpoints.migrateendpoint
      with:
        region: tools.region
        endpoint_id: tools.endpoint_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-database-instance-endpoint
      description: Create a new Database Instance endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: database-endpoints.createendpoint
      with:
        region: tools.region
        instance_id: tools.instance_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.