volume_create
Create persistent storage volumes for Railway services to handle database storage, persistent data, and file storage needs.
Instructions
[API] Create a new persistent volume for a service
⚡️ Best for: ✓ Setting up database storage ✓ Configuring persistent data ✓ Adding file storage
⚠️ Not for: × Temporary storage needs × Static file hosting × Memory caching
→ Prerequisites: service_list
→ Next steps: volume_list
→ Related: service_update, database_deploy
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>",
"environmentId": "<environmentId>",
"serviceId": "<serviceId>",
"mountPath": "<mountPath>"
},
"name": "volume_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project containing the service | |
| environmentId | Yes | ID of the environment for the volume (usually obtained from service_info) | |
| serviceId | Yes | ID of the service to attach volume to | |
| mountPath | Yes | Path where the volume should be mounted in the container |