Skip to main content
Glama

proxy_delete_session

Remove a captured network session from storage to manage disk space and maintain privacy by deleting recorded traffic data.

Instructions

Delete a recorded session from disk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession ID

Implementation Reference

  • The registration and handler definition for the 'proxy_delete_session' tool. It uses `proxyManager.deleteSession` to perform the deletion.
    server.tool(
      "proxy_delete_session",
      "Delete a recorded session from disk.",
      {
        session_id: z.string().describe("Session ID"),
      },
      async ({ session_id }) => {
        try {
          await proxyManager.deleteSession(session_id);
          return {
            content: [{ type: "text", text: JSON.stringify({ status: "success", deleted: session_id }) }],
          };
        } catch (e) {
          return { content: [{ type: "text", text: JSON.stringify({ status: "error", error: toError(e) }) }] };
        }
      },
    );
Install Server

Other Tools

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/yfe404/proxy-mcp'

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