service_list
View and manage all services within a Railway project to track service IDs, status, and configurations. Use in conjunction with project_list and service_info for comprehensive infrastructure oversight.
Instructions
[API] List all services in a specific Railway project
⚡️ Best for: ✓ Getting an overview of a project's services ✓ Finding service IDs ✓ Checking service status
→ Prerequisites: project_list
→ Next steps: service_info, deployment_list
→ Related: project_info, variable_list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project to list services from |
Implementation Reference
- src/tools/service.tool.ts:26-28 (handler)Handler function for the 'service_list' tool that delegates to serviceService.listServices(projectId).async ({ projectId }) => { return serviceService.listServices(projectId); }
- src/tools/service.tool.ts:24-25 (schema)Input schema for the service_list tool, defining the required projectId parameter.projectId: z.string().describe("ID of the project to list services from") },
- src/tools/service.tool.ts:7-29 (registration)Definition and inclusion of the service_list tool in the serviceTools array.createTool( "service_list", // TODO: update this tool to also return the status of the service formatToolDescription({ type: 'API', description: "List all services in a specific Railway project", bestFor: [ "Getting an overview of a project's services", "Finding service IDs", "Checking service status", ], relations: { prerequisites: ["project_list"], nextSteps: ["service_info", "deployment_list"], related: ["project_info", "variable_list"] } }), { projectId: z.string().describe("ID of the project to list services from") }, async ({ projectId }) => { return serviceService.listServices(projectId); } ),
- src/tools/index.ts:32-36 (registration)Global registration of all tools, including service_list from serviceTools, to the MCP server.allTools.forEach((tool) => { server.tool( ...tool ); });