Skip to main content
Glama

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
NameRequiredDescriptionDefault
projectIdYesID of the project containing the service
environmentIdYesID of the environment that the service is in to list domains from (usually obtained from service_list)
serviceIdYesID of the service to list domains for

Implementation Reference

  • 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); }
  • 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") },
  • 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 ); }); }

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/epitaphe360/railway-mcp'

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