railway-mcp
by jason-tan-swe
Verified
variable_set
[API] Create or update an environment variable
⚡️ Best for: ✓ Setting configuration values ✓ Updating connection strings ✓ Managing service secrets
⚠️ Not for: × Bulk variable updates (use variable_bulk_set) × Temporary configuration changes
→ Prerequisites: service_list
→ Alternatives: variable_bulk_set
→ Next steps: deployment_trigger, service_restart
→ Related: variable_list, variable_delete
Input Schema
Name | Required | Description | Default |
---|---|---|---|
environmentId | Yes | ID of the environment for the variable (usually obtained from service_list) | |
name | Yes | Name of the environment variable | |
projectId | Yes | ID of the project containing the service | |
serviceId | No | Optional: ID of the service for the variable, if omitted creates/updates a shared variable | |
value | Yes | Value to set for the variable |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools
- configure_api_token
- database_deploy_from_template
- database_list_types
- deployment_list
- deployment_logs
- deployment_status
- deployment_trigger
- domain_check
- domain_create
- domain_delete
- domain_list
- domain_update
- list_service_variables
- project_create
- project_delete
- project_environments
- project_info
- project_list
- service_create_from_image
- service_create_from_repo
- service_delete
- service_info
- service_list
- service_restart
- service_update
- tcp_proxy_create
- tcp_proxy_delete
- tcp_proxy_list
- variable_bulk_set
- variable_copy
- variable_delete
- variable_set
- volume_create
- volume_delete
- volume_list
- volume_update