database_deploy_from_template
Deploy a pre-configured database using Railway's official templates and best practices for PostgreSQL, MongoDB, Redis, and other common database types.
Instructions
[WORKFLOW] Deploy a pre-configured database using Railway's official templates and best practices
⚡️ Best for: ✓ Standard database deployments ✓ Quick setup with security defaults ✓ Common database types (PostgreSQL, MongoDB, Redis)
⚠️ Not for: × Custom database versions × Complex configurations × Unsupported database types
→ Prerequisites: database_list_types
→ Alternatives: service_create_from_image
→ Next steps: variable_list, service_info
→ Related: volume_create, service_update
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": {
"projectId": "<projectId>",
"type": "<type>",
"region": "<region>",
"environmentId": "<environmentId>"
},
"name": "database_deploy_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project where the database will be deployed | |
| type | Yes | Type of database to deploy (e.g., postgresql, mongodb, redis). Use service_create_from_image for other types. | |
| region | Yes | Region where the database should be deployed, try us-west1 before all other regions | |
| environmentId | Yes | Environment ID where the database will be deployed (usually obtained from project_info) | |
| name | No | Optional custom name for the database service. Default: {type}-database |