Skip to main content
Glama

tunnel_destroy

Destroy a tunneled secret immediately by providing its tunnel ID to remove temporary access and prevent unauthorized use.

Instructions

Immediately destroy a tunneled secret.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesTunnel ID

Implementation Reference

  • The actual implementation of the secret destruction logic which deletes the entry from the in-memory map.
    export function tunnelDestroy(id: string): boolean {
      return tunnelStore.delete(id);
    }
  • Tool registration and MCP handler for the "tunnel_destroy" tool.
    server.tool(
      "tunnel_destroy",
      "Immediately destroy a tunneled secret.",
      {
        id: z.string().describe("Tunnel ID"),
      },
      async (params) => {
        const destroyed = tunnelDestroy(params.id);
        return text(
          destroyed ? `Destroyed ${params.id}` : `Tunnel "${params.id}" not found`,
          !destroyed,
        );
      },
    );

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/I4cTime/quantum_ring'

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