domain_list
List all service and custom domains for a Railway service to view endpoints, manage configurations, and audit domain settings.
Instructions
[API] List all domains (both service and custom) for a service
⚡️ Best for: ✓ Viewing service endpoints ✓ Managing domain configurations ✓ Auditing domain settings
→ Prerequisites: service_list
→ Next steps: domain_create, domain_update
→ Related: service_info, tcp_proxy_list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ID of the project containing the service | |
| environmentId | Yes | ID of the environment that the service is in to list domains from (usually obtained from service_list) | |
| serviceId | Yes | ID of the service to list domains for |
Implementation Reference
- src/tools/domain.tool.ts:27-29 (handler)The handler function that executes the domain_list tool by invoking domainService.listDomains with the provided projectId, environmentId, and serviceId.async ({ projectId, environmentId, serviceId }) => { return domainService.listDomains(projectId, environmentId, serviceId); }
- src/tools/domain.tool.ts:22-26 (schema)Zod input schema defining parameters for the domain_list tool: projectId (string), environmentId (string), serviceId (string).{ projectId: z.string().describe("ID of the project containing the service"), environmentId: z.string().describe("ID of the environment that the service is in to list domains from (usually obtained from service_list)"), serviceId: z.string().describe("ID of the service to list domains for") },
- src/tools/index.ts:16-37 (registration)Registration function that collects and registers all tools to the MCP server, including the domain_list tool via the domainTools array.export function registerAllTools(server: McpServer) { // Collect all tools const allTools = [ ...databaseTools, ...deploymentTools, ...domainTools, ...projectTools, ...serviceTools, ...tcpProxyTools, ...variableTools, ...configTools, ...volumeTools, ...templateTools, ] as Tool[]; // Register each tool with the server allTools.forEach((tool) => { server.tool( ...tool ); }); }