Skip to main content
Glama

session-delete

Remove a specific session by its ID to manage session data and maintain system organization within the LLM Conveyors platform.

Instructions

Delete a session by ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSession ID

Implementation Reference

  • The session-delete tool is registered and implemented within the registerSessionTools function. The handler calls client.sessions.delete and returns a success or error message.
    server.tool(
      "session-delete",
      "Delete a session by ID.",
      {
        id: z.string().describe("Session ID"),
      },
      async (params) => {
        try {
          await client.sessions.delete(params.id);
          return { content: [{ type: "text", text: JSON.stringify({ deleted: true, id: params.id }) }] };
        } catch (err) {
          const message = err instanceof Error ? err.message : String(err);
          return { content: [{ type: "text", text: `Error: ${message}` }], isError: true };
        }
      },
    );

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/ebenezer-isaac/llmconveyors-mcp'

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