list_service_variables
Retrieve and review environment variables for a service on Railway-MCP to audit configurations, check connection strings, and manage service settings. Requires project and environment IDs.
Instructions
[API] List all environment variables for a service
⚡️ Best for: ✓ Viewing service configuration ✓ Auditing environment variables ✓ Checking connection strings
→ Prerequisites: service_list
→ Next steps: variable_set, variable_delete
→ Related: service_info, variable_bulk_set
Input Schema
Name | Required | Description | Default |
---|---|---|---|
environmentId | Yes | ID of the environment to list variables from (usually obtained from service_list) | |
projectId | Yes | ID of the project containing the service | |
serviceId | No | Optional: ID of the service to list variables for, if not provided, shared variables across all services will be listed |