Skip to main content
Glama
session-management.ts1.19 kB
import { Tool } from "@modelcontextprotocol/sdk/types.js"; export const sessionManagementTools: Tool[] = [ { name: "list_sessions", description: "List all active sessions with stats (age, message count, last activity). " + "Use to continue the most relevant session instead of starting from scratch.", inputSchema: { type: "object", properties: {}, }, }, { name: "close_session", description: "Close a specific session by session ID. Ask before closing if the user might still need it.", inputSchema: { type: "object", properties: { session_id: { type: "string", description: "The session ID to close", }, }, required: ["session_id"], }, }, { name: "reset_session", description: "Reset a session's chat history (keep same session ID). " + "Use for a clean slate when the task changes; ask the user before resetting.", inputSchema: { type: "object", properties: { session_id: { type: "string", description: "The session ID to reset", }, }, required: ["session_id"], }, }, ];

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/PleasePrompto/notebooklm-mcp'

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