hamravesh_create_database
Create a managed database (DBaaS) by specifying engine, version, plan, CPU, RAM, and disk. Supports PostgreSQL, MySQL, MongoDB, and Redis.
Instructions
ساخت یک دیتابیسِ مدیریتشده (DBaaS). واحدها: cpu = millicore (۱۰۰۰=۱ core)، ram/disk = MB. num_of_standbys = تعدادِ standby (۰ = فقط master). plan را از GET /dbaas/api/v1/app/plans/ بگیر (code_name مثل fixed-plan-0). engine باید دقیقاً با همان حروف باشد: PostgreSQL / MySQL / MongoDB / Redis / … . cluster_id و namespace_id را از یک دیتابیس یا اپِ موجود (list/get) بردار. (غیرفعال — برای فعالسازی HAMRAVESH_ALLOW_WRITE=1) [پیشنمایش: dry_run:true یا env HAMRAVESH_DRY_RUN=1]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"engine": "<engine>",
"version": "<version>",
"plan": "<plan>",
"cpu": "<cpu>",
"ram": "<ram>",
"disk": "<disk>",
"cluster_id": "<cluster_id>",
"namespace_id": "<namespace_id>"
},
"name": "hamravesh_create_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| engine | Yes | نوعِ دیتابیس، مثل PostgreSQL | |
| version | Yes | نسخه، مثل 17.4 | |
| plan | Yes | code_name پلن، مثل fixed-plan-0 | |
| cpu | Yes | millicore (۱۰۰۰=۱ core) | |
| ram | Yes | MB | |
| disk | Yes | MB | |
| num_of_standbys | No | تعدادِ standby؛ پیشفرض ۰ | |
| is_managed | No | پیشفرض true | |
| cluster_id | Yes | ||
| namespace_id | Yes | ||
| org | No |