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