Skip to main content
Glama

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
NameRequiredDescriptionDefault
projectIdYesID of the project to list services from

Implementation Reference

  • Handler function for the 'service_list' tool that delegates to serviceService.listServices(projectId).
    async ({ projectId }) => { return serviceService.listServices(projectId); }
  • Input schema for the service_list tool, defining the required projectId parameter.
    projectId: z.string().describe("ID of the project to list services from") },
  • 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); } ),
  • Global registration of all tools, including service_list from serviceTools, to the MCP 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/jason-tan-swe/railway-mcp'

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