Skip to main content
Glama

list_service_variables

Retrieve and view all environment variables for a Railway service to audit configurations, check connection strings, and manage service settings.

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

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/antonioevans/railway-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server