planetscale · Capability

PlanetScale Platform API — Webhooks

PlanetScale Platform API — Webhooks. 2 operations. Lead operation: List webhooks. Self-contained Naftiko capability covering one Planetscale business surface.

Run with Naftiko PlanetscaleWebhooks

What You Can Do

GET
Listwebhooks — List webhooks
/v1/organizations/{organization}/databases/{database}/webhooks
POST
Createwebhook — Create a webhook
/v1/organizations/{organization}/databases/{database}/webhooks

MCP Tools

list-webhooks

List webhooks

read-only idempotent
create-webhook

Create a webhook

Capability Spec

platform-webhooks.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: PlanetScale Platform API — Webhooks
  description: 'PlanetScale Platform API — Webhooks. 2 operations. Lead operation: List webhooks. Self-contained Naftiko capability
    covering one Planetscale business surface.'
  tags:
  - Planetscale
  - Webhooks
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PLANETSCALE_API_KEY: PLANETSCALE_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-webhooks
    baseUri: https://api.planetscale.com/v1
    description: PlanetScale Platform API — Webhooks business capability. Self-contained, no shared references.
    resources:
    - name: organizations-organization-databases-database-webhooks
      path: /organizations/{organization}/databases/{database}/webhooks
      operations:
      - name: listwebhooks
        method: GET
        description: List webhooks
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createwebhook
        method: POST
        description: Create a webhook
        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.PLANETSCALE_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-webhooks-rest
    port: 8080
    description: REST adapter for PlanetScale Platform API — Webhooks. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations/{organization}/databases/{database}/webhooks
      name: organizations-organization-databases-database-webhooks
      description: REST surface for organizations-organization-databases-database-webhooks.
      operations:
      - method: GET
        name: listwebhooks
        description: List webhooks
        call: platform-webhooks.listwebhooks
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createwebhook
        description: Create a webhook
        call: platform-webhooks.createwebhook
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-webhooks-mcp
    port: 9090
    transport: http
    description: MCP adapter for PlanetScale Platform API — Webhooks. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-webhooks
      description: List webhooks
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: platform-webhooks.listwebhooks
      outputParameters:
      - type: object
        mapping: $.
    - name: create-webhook
      description: Create a webhook
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-webhooks.createwebhook
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.