Skip to main content
Glama

clear_conversation

Remove conversation history for a specific conversation ID to manage storage and maintain privacy in the NanoBanana MCP server.

Instructions

Clear conversation history for a specific conversation ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conversation_idYesThe conversation ID to clear

Implementation Reference

  • The handler implementation for the 'clear_conversation' tool, which deletes a conversation from the 'conversations' map based on the provided conversation_id.
    case "clear_conversation": {
      const { conversation_id } = args as any;
      conversations.delete(conversation_id);
    
      return {
        content: [
          {
            type: "text",
            text: `Conversation history cleared for ID: ${conversation_id}`,
          },
        ],
      };
    }
  • The tool registration and schema definition for 'clear_conversation' in the list of available MCP tools.
    {
      name: "clear_conversation",
      description: "Clear conversation history for a specific conversation ID",
      inputSchema: {
        type: "object",
        properties: {
          conversation_id: {
            type: "string",
            description: "The conversation ID to clear",
          },
        },

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/pistachiomatt/nanobanana-mcp'

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