Skip to main content
Glama

tcp_proxy_list

View and manage TCP proxy configurations for Railway.app services to control external access and audit service endpoints.

Instructions

[API] List all TCP proxies for a service in a specific environment

⚡️ Best for: ✓ Viewing TCP proxy configurations ✓ Managing external access ✓ Auditing service endpoints

→ Prerequisites: service_list

→ Next steps: tcp_proxy_create

→ Related: domain_list, service_info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentIdYesID of the environment containing the service
serviceIdYesID of the service to list TCP proxies for

Implementation Reference

  • The handler function for the 'tcp_proxy_list' tool, which calls tcpProxyService.listTcpProxies(environmentId, serviceId) to list TCP proxies for a service.
    async ({ environmentId, serviceId }) => {
      return tcpProxyService.listTcpProxies(environmentId, serviceId);
    }
  • Zod schema defining the input parameters for the 'tcp_proxy_list' tool: environmentId and serviceId.
    {
      environmentId: z.string().describe("ID of the environment containing the service"),
      serviceId: z.string().describe("ID of the service to list TCP proxies for")
    },
  • Tool definition using createTool, including name, description, schema, and handler for 'tcp_proxy_list'.
    createTool(
      "tcp_proxy_list",
      formatToolDescription({
        type: 'API',
        description: "List all TCP proxies for a service in a specific environment",
        bestFor: [
          "Viewing TCP proxy configurations",
          "Managing external access",
          "Auditing service endpoints"
        ],
        relations: {
          prerequisites: ["service_list"],
          nextSteps: ["tcp_proxy_create"],
          related: ["domain_list", "service_info"]
        }
      }),
      {
        environmentId: z.string().describe("ID of the environment containing the service"),
        serviceId: z.string().describe("ID of the service to list TCP proxies for")
      },
      async ({ environmentId, serviceId }) => {
        return tcpProxyService.listTcpProxies(environmentId, serviceId);
      }
    ),
  • Registers all tools, including 'tcp_proxy_list' from tcpProxyTools, with 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/epitaphe360/railway-mcp'

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