Create Cluster
create-clusterPurpose: Provision a new RawTree dedicated cluster in an organization.
Instructions
Purpose: Provision a new RawTree dedicated cluster in an organization.
Returns: The newly created cluster, including its ID, lifecycle status, and initial resources. Provisioning continues asynchronously after the request is accepted; use get-cluster to check progress.
Behavior: The cluster starts at minimumSize and can vertically autoscale per replica up to maximumSize. The replica count remains fixed. s3Storage is optional: omit it to use RawTree-managed storage. When provided, it configures customer-owned data and backup destinations through a customer IAM role. Destination paths are optional; data and backups (each with a bucket), plus roleArn are required inside s3Storage. s3StorageAccess contains the immutable externalId and resourceTag for this cluster's S3 storage access. The API generates omitted values independently using secure UUIDs, but requires an explicit s3StorageAccess.externalId for custom S3 matching the customer IAM trust policy. The MCP client forwards optional identity values without generating them. Tag eligible customer buckets and IAM roles with rawtree.com/cluster=. Database operations reuse this saved identity automatically.
Auth: The RawTree API requires a user access token with organization admin access. Authorization is enforced by the API.
Safety: When selecting a region, first call list-regions and use the same regionId for list-cluster-sizes, verify-cluster-s3-access and create-cluster. You MUST first call list-cluster-sizes, then confirm the exact organization, region, name, replica count, minimum per-replica size, maximum per-replica size, vertical autoscaling behavior, and idle timeout with the user. If idleTimeoutMinutes is omitted, explain that the server default will apply. For one replica, warn that the cluster has no redundancy. If s3Storage is provided, first call verify-cluster-s3-access with the identical configuration and confirm the data and backup buckets, optional paths, role ARN, and External ID. Pass the same s3StorageAccess.externalId to verification and creation. Never reuse a successful verification after changing s3StorageAccess.externalId or any s3Storage field. Confirm any explicitly supplied identity values with the user; generated values are returned with the cluster.
Reliability: This operation is not idempotent. If the response is ambiguous, call list-clusters to reconcile by organization and name before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | URL-friendly cluster name using letters, numbers, '_' or '-'. | |
| regionId | No | Region ID returned by list-regions. Use the same region for sizes, S3 verification and creation. Omit for the default backend. | |
| replicas | Yes | Number of cluster replicas. | |
| s3Storage | No | Optional customer-owned S3 configuration. Omit to use RawTree-managed storage. Verify the identical configuration with verify-cluster-s3-access before creation. | |
| maximumSize | Yes | Maximum vertical autoscaling size returned by list-cluster-sizes. Must be at or above minimumSize in the returned catalog. | |
| minimumSize | Yes | Initial and minimum vertical autoscaling size returned by list-cluster-sizes. | |
| organization | Yes | Organization in which to create the cluster. | |
| s3StorageAccess | No | Creation-only S3 storage identity overrides. Omit to let the API generate values. Custom storage requires externalId matching verification. | |
| idleTimeoutMinutes | No | Minutes of inactivity before automatically pausing. Use 0 to disable idling. Omit to use the server default. |