{
  "name": "dbaas.dev",
  "description": "Ephemeral PostgreSQL databases for AI agents. Provision a fresh Postgres 15 instance in ~30 seconds, get a connection string, run tests or experiments, then it auto-cleans up on TTL.",
  "url": "https://api.dbaas.dev",
  "version": "1.0.0",
  "provider": {
    "organization": "dbaas.dev",
    "url": "https://dbaas.dev"
  },
  "capabilities": {
    "streaming": false,
    "pushNotifications": false
  },
  "defaultInputModes": ["application/json", "text/plain"],
  "defaultOutputModes": ["application/json"],
  "skills": [
    {
      "id": "provision-postgres",
      "name": "Provision Ephemeral PostgreSQL",
      "description": "Creates an ephemeral PostgreSQL 15 database with a TTL of 1–5 minutes. Returns a fully-qualified connection string once the pod is ready (~30s). The database is automatically destroyed when the TTL elapses.",
      "tags": ["database", "postgres", "postgresql", "ephemeral", "test", "ci"],
      "examples": [
        "provision a postgres database for 5 minutes",
        "give me a throwaway test database",
        "create an ephemeral postgres with 2 minute TTL"
      ],
      "inputSchema": {
        "type": "object",
        "properties": {
          "ttl_minutes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5,
            "default": 5,
            "description": "Time-to-live in minutes (1–5). Database is auto-deleted after this period."
          }
        }
      }
    },
    {
      "id": "get-status",
      "name": "Get Database Status",
      "description": "Returns current status and remaining TTL of an existing ephemeral database. Poll this after provision-postgres until status=running to get the connection string.",
      "tags": ["database", "status", "poll"],
      "inputSchema": {
        "type": "object",
        "required": ["database_id"],
        "properties": {
          "database_id": {
            "type": "string",
            "description": "The database ID returned by provision-postgres."
          }
        }
      }
    },
    {
      "id": "exec-sql",
      "name": "Execute SQL",
      "description": "Execute SQL directly on an ephemeral database without needing a client connection. Supports SELECT, INSERT, UPDATE, DELETE, DDL. Returns rows for queries, rows-affected for DML.",
      "tags": ["sql", "query", "database"],
      "inputSchema": {
        "type": "object",
        "required": ["database_id", "sql"],
        "properties": {
          "database_id": {
            "type": "string",
            "description": "The database ID."
          },
          "sql": {
            "type": "string",
            "description": "SQL statement to execute."
          }
        }
      }
    }
  ]
}
