naftiko: 1.0.0-alpha2 info: label: Google Cloud Spanner API — Databases description: 'Google Cloud Spanner API — Databases. 4 operations. Lead operation: Google Cloud Spanner List databases. Self-contained Naftiko capability covering one Google Cloud Spanner business surface.' tags: - Google Cloud Spanner - Databases created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GOOGLE_CLOUD_SPANNER_API_KEY: GOOGLE_CLOUD_SPANNER_API_KEY capability: consumes: - type: http namespace: cloud-spanner-databases baseUri: https://spanner.googleapis.com/v1 description: Google Cloud Spanner API — Databases business capability. Self-contained, no shared references. resources: - name: projects-project-instances-instance-databases path: /projects/{project}/instances/{instance}/databases operations: - name: listdatabases method: GET description: Google Cloud Spanner List databases outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: project in: path type: string required: true - name: instance in: path type: string required: true - name: pageSize in: query type: integer - name: pageToken in: query type: string - name: createdatabase method: POST description: Google Cloud Spanner Create a database outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: project in: path type: string required: true - name: instance in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: projects-project-instances-instance-databases-database path: /projects/{project}/instances/{instance}/databases/{database} operations: - name: getdatabase method: GET description: Google Cloud Spanner Get a database outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: project in: path type: string required: true - name: instance in: path type: string required: true - name: database in: path type: string required: true - name: dropdatabase method: DELETE description: Google Cloud Spanner Drop a database outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: project in: path type: string required: true - name: instance in: path type: string required: true - name: database in: path type: string required: true authentication: type: bearer token: '{{env.GOOGLE_CLOUD_SPANNER_API_KEY}}' exposes: - type: rest namespace: cloud-spanner-databases-rest port: 8080 description: REST adapter for Google Cloud Spanner API — Databases. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{project}/instances/{instance}/databases name: projects-project-instances-instance-databases description: REST surface for projects-project-instances-instance-databases. operations: - method: GET name: listdatabases description: Google Cloud Spanner List databases call: cloud-spanner-databases.listdatabases with: project: rest.project instance: rest.instance pageSize: rest.pageSize pageToken: rest.pageToken outputParameters: - type: object mapping: $. - method: POST name: createdatabase description: Google Cloud Spanner Create a database call: cloud-spanner-databases.createdatabase with: project: rest.project instance: rest.instance body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{project}/instances/{instance}/databases/{database} name: projects-project-instances-instance-databases-database description: REST surface for projects-project-instances-instance-databases-database. operations: - method: GET name: getdatabase description: Google Cloud Spanner Get a database call: cloud-spanner-databases.getdatabase with: project: rest.project instance: rest.instance database: rest.database outputParameters: - type: object mapping: $. - method: DELETE name: dropdatabase description: Google Cloud Spanner Drop a database call: cloud-spanner-databases.dropdatabase with: project: rest.project instance: rest.instance database: rest.database outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-spanner-databases-mcp port: 9090 transport: http description: MCP adapter for Google Cloud Spanner API — Databases. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: google-cloud-spanner-list-databases description: Google Cloud Spanner List databases hints: readOnly: true destructive: false idempotent: true call: cloud-spanner-databases.listdatabases with: project: tools.project instance: tools.instance pageSize: tools.pageSize pageToken: tools.pageToken outputParameters: - type: object mapping: $. - name: google-cloud-spanner-create-database description: Google Cloud Spanner Create a database hints: readOnly: false destructive: false idempotent: false call: cloud-spanner-databases.createdatabase with: project: tools.project instance: tools.instance body: tools.body outputParameters: - type: object mapping: $. - name: google-cloud-spanner-get-database description: Google Cloud Spanner Get a database hints: readOnly: true destructive: false idempotent: true call: cloud-spanner-databases.getdatabase with: project: tools.project instance: tools.instance database: tools.database outputParameters: - type: object mapping: $. - name: google-cloud-spanner-drop-database description: Google Cloud Spanner Drop a database hints: readOnly: false destructive: true idempotent: true call: cloud-spanner-databases.dropdatabase with: project: tools.project instance: tools.instance database: tools.database outputParameters: - type: object mapping: $.