{
  "service": "xata",
  "displayName": "Xata",
  "categories": [
    "Developer Tools",
    "Data"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "XATA_API_KEY",
      "description": "Xata API key sent as an Authorization Bearer token. Create and manage API keys with the Xata CLI or console: https://xata.io/docs/platform/api-key."
    }
  ],
  "homepageUrl": "https://xata.io/",
  "actions": [
    {
      "id": "xata.get_branch",
      "service": "xata",
      "name": "get_branch",
      "description": "Get details for a Xata branch by organizationID, projectID, and branchID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata organizationID path parameter."
          },
          "projectID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata projectID path parameter."
          },
          "branchID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata branchID path parameter."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationID",
          "projectID",
          "branchID"
        ],
        "description": "The input payload for selecting a Xata branch."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "branch": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The unique Xata branch ID."
              },
              "name": {
                "type": "string",
                "description": "The Xata branch name."
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when Xata created the branch.",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "description": "The timestamp when Xata last updated the branch.",
                "format": "date-time"
              },
              "region": {
                "type": "string",
                "description": "The region where the Xata branch is deployed."
              },
              "publicAccess": {
                "type": "boolean",
                "description": "Whether the branch allows public access."
              },
              "backupsEnabled": {
                "type": "boolean",
                "description": "Whether backups are enabled for the branch."
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The branch description when one is present."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "parentID": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The parent branch ID when one is present."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Xata."
              },
              "connectionString": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The database connection string returned by Xata when present."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The status object returned by Xata."
              },
              "scaleToZero": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The scaleToZero object returned by Xata."
              },
              "configuration": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The configuration object returned by Xata."
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "createdAt",
              "updatedAt",
              "region",
              "publicAccess",
              "backupsEnabled",
              "description",
              "parentID",
              "raw",
              "connectionString",
              "status",
              "scaleToZero",
              "configuration"
            ],
            "description": "A normalized Xata branch."
          }
        },
        "additionalProperties": false,
        "required": [
          "branch"
        ],
        "description": "The response returned when getting a Xata branch."
      }
    },
    {
      "id": "xata.get_organization",
      "service": "xata",
      "name": "get_organization",
      "description": "Get details for a Xata organization by organizationID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata organizationID path parameter."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationID"
        ],
        "description": "The input payload for selecting a Xata organization."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organization": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The unique Xata organization ID."
              },
              "name": {
                "type": "string",
                "description": "The Xata organization name."
              },
              "status": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The status object returned by Xata."
              },
              "marketplace": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The marketplace provider for the organization, if present."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Xata."
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "status",
              "marketplace",
              "raw"
            ],
            "description": "A normalized Xata organization."
          }
        },
        "additionalProperties": false,
        "required": [
          "organization"
        ],
        "description": "The response returned when getting a Xata organization."
      }
    },
    {
      "id": "xata.get_project",
      "service": "xata",
      "name": "get_project",
      "description": "Get details for a Xata project by organizationID and projectID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata organizationID path parameter."
          },
          "projectID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata projectID path parameter."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationID",
          "projectID"
        ],
        "description": "The input payload for selecting a Xata project."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "project": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The unique Xata project ID."
              },
              "name": {
                "type": "string",
                "description": "The Xata project name."
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when Xata created the project.",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "description": "The timestamp when Xata last updated the project.",
                "format": "date-time"
              },
              "configuration": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The configuration object returned by Xata."
              },
              "raw": {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The raw object returned by Xata."
              }
            },
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "createdAt",
              "updatedAt",
              "configuration",
              "raw"
            ],
            "description": "A normalized Xata project."
          }
        },
        "additionalProperties": false,
        "required": [
          "project"
        ],
        "description": "The response returned when getting a Xata project."
      }
    },
    {
      "id": "xata.list_available_regions",
      "service": "xata",
      "name": "list_available_regions",
      "description": "List Xata regions where new branches can be deployed for an organization.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata organizationID path parameter."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationID"
        ],
        "description": "The input payload for selecting a Xata organization."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "regions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique Xata region ID."
                },
                "publicAccess": {
                  "type": "boolean",
                  "description": "Whether the region supports public data-plane access."
                },
                "backupsEnabled": {
                  "type": "boolean",
                  "description": "Whether backups are enabled for branches created in this region."
                },
                "provider": {
                  "type": "string",
                  "description": "The cloud provider that runs the region."
                },
                "organizationId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The organization that owns the region when the region is private."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Xata."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "publicAccess",
                "backupsEnabled",
                "provider",
                "organizationId",
                "raw"
              ],
              "description": "A normalized Xata region."
            },
            "description": "The Xata regions returned by the API."
          }
        },
        "additionalProperties": false,
        "required": [
          "regions"
        ],
        "description": "The response returned when listing Xata available regions."
      }
    },
    {
      "id": "xata.list_branches",
      "service": "xata",
      "name": "list_branches",
      "description": "List Xata branches within a project.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata organizationID path parameter."
          },
          "projectID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata projectID path parameter."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationID",
          "projectID"
        ],
        "description": "The input payload for selecting a Xata project."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "branches": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique Xata branch ID."
                },
                "name": {
                  "type": "string",
                  "description": "The Xata branch name."
                },
                "createdAt": {
                  "type": "string",
                  "description": "The timestamp when Xata created the branch.",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "description": "The timestamp when Xata last updated the branch.",
                  "format": "date-time"
                },
                "region": {
                  "type": "string",
                  "description": "The region where the Xata branch is deployed."
                },
                "publicAccess": {
                  "type": "boolean",
                  "description": "Whether the branch allows public access."
                },
                "backupsEnabled": {
                  "type": "boolean",
                  "description": "Whether backups are enabled for the branch."
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The branch description when one is present."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "parentID": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The parent branch ID when one is present."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Xata."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "name",
                "createdAt",
                "updatedAt",
                "region",
                "publicAccess",
                "backupsEnabled",
                "description",
                "parentID",
                "raw"
              ],
              "description": "A normalized Xata branch list item."
            },
            "description": "The Xata branches returned by the API."
          }
        },
        "additionalProperties": false,
        "required": [
          "branches"
        ],
        "description": "The response returned when listing Xata branches."
      }
    },
    {
      "id": "xata.list_organizations",
      "service": "xata",
      "name": "list_organizations",
      "description": "List Xata organizations available to the authenticated API key.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "The input payload for listing Xata organizations."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique Xata organization ID."
                },
                "name": {
                  "type": "string",
                  "description": "The Xata organization name."
                },
                "status": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The status object returned by Xata."
                },
                "marketplace": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The marketplace provider for the organization, if present."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Xata."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "name",
                "status",
                "marketplace",
                "raw"
              ],
              "description": "A normalized Xata organization."
            },
            "description": "The Xata organizations returned by the API."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizations"
        ],
        "description": "The response returned when listing Xata organizations."
      }
    },
    {
      "id": "xata.list_projects",
      "service": "xata",
      "name": "list_projects",
      "description": "List Xata projects within an organization.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "organizationID": {
            "type": "string",
            "minLength": 1,
            "description": "The Xata organizationID path parameter."
          }
        },
        "additionalProperties": false,
        "required": [
          "organizationID"
        ],
        "description": "The input payload for selecting a Xata organization."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "projects": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique Xata project ID."
                },
                "name": {
                  "type": "string",
                  "description": "The Xata project name."
                },
                "createdAt": {
                  "type": "string",
                  "description": "The timestamp when Xata created the project.",
                  "format": "date-time"
                },
                "updatedAt": {
                  "type": "string",
                  "description": "The timestamp when Xata last updated the project.",
                  "format": "date-time"
                },
                "configuration": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The configuration object returned by Xata."
                },
                "raw": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "The raw object returned by Xata."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "name",
                "createdAt",
                "updatedAt",
                "configuration",
                "raw"
              ],
              "description": "A normalized Xata project."
            },
            "description": "The Xata projects returned by the API."
          }
        },
        "additionalProperties": false,
        "required": [
          "projects"
        ],
        "description": "The response returned when listing Xata projects."
      }
    }
  ]
}
