railway-mcp

by jason-tan-swe
Verified

list_service_variables

[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

NameRequiredDescriptionDefault
environmentIdYesID of the environment to list variables from (usually obtained from service_list)
projectIdYesID of the project containing the service
serviceIdNoOptional: ID of the service to list variables for, if not provided, shared variables across all services will be listed

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "environmentId": { "description": "ID of the environment to list variables from (usually obtained from service_list)", "type": "string" }, "projectId": { "description": "ID of the project containing the service", "type": "string" }, "serviceId": { "description": "Optional: ID of the service to list variables for, if not provided, shared variables across all services will be listed", "type": "string" } }, "required": [ "projectId", "environmentId" ], "type": "object" }