railway-mcp

by jason-tan-swe
Verified

service_update

[API] Update a service's configuration

⚡️ Best for: ✓ Changing service settings ✓ Updating resource limits ✓ Modifying deployment configuration

⚠️ Not for: × Updating environment variables (use variable_set) × Restarting services (use service_restart) × Triggering new deployments (use deployment_trigger)

→ Prerequisites: service_list, service_info

→ Next steps: deployment_trigger

→ Related: service_restart, variable_set

Input Schema

NameRequiredDescriptionDefault
buildCommandNoOptional: Command to build the service
environmentIdYesID of the environment to update (usually obtained from service_info)
healthcheckPathNoOptional: Path for health checks
numReplicasNoOptional: Number of service replicas to run
projectIdYesID of the project containing the service
regionNoOptional: Region to deploy the service in
rootDirectoryNoOptional: Root directory containing the service code
serviceIdYesID of the service to update
sleepApplicationNoOptional: Whether to enable sleep mode
startCommandNoOptional: Command to start the service

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "buildCommand": { "description": "Optional: Command to build the service", "type": "string" }, "environmentId": { "description": "ID of the environment to update (usually obtained from service_info)", "type": "string" }, "healthcheckPath": { "description": "Optional: Path for health checks", "type": "string" }, "numReplicas": { "description": "Optional: Number of service replicas to run", "type": "number" }, "projectId": { "description": "ID of the project containing the service", "type": "string" }, "region": { "description": "Optional: Region to deploy the service in", "enum": [ "asia-southeast1", "asia-southeast1-eqsg3a", "europe-west4", "europe-west4-drams3a", "us-east4", "us-east4-eqdc4a", "us-west1", "us-west2" ], "type": "string" }, "rootDirectory": { "description": "Optional: Root directory containing the service code", "type": "string" }, "serviceId": { "description": "ID of the service to update", "type": "string" }, "sleepApplication": { "description": "Optional: Whether to enable sleep mode", "type": "boolean" }, "startCommand": { "description": "Optional: Command to start the service", "type": "string" } }, "required": [ "projectId", "serviceId", "environmentId" ], "type": "object" }