Skip to main content
Glama

clearActiveCollection

Clears the active collection to expand transcript searches across all available collections within the YouTube intelligence system.

Instructions

Clear the active collection so transcript search fans back out across all collections.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The clearActiveCollection function implementation within the knowledge base. It deletes the active_collection_id from the application state.
    clearActiveCollection(): ClearActiveCollectionOutput {
      const previousActiveCollectionId = this.getActiveCollectionId();
      this.deleteAppState("active_collection_id");
      return {
        cleared: Boolean(previousActiveCollectionId),
        previousActiveCollectionId: previousActiveCollectionId ?? undefined,
        provenance: localProvenance(),
      };
    }
  • Definition/registration of the clearActiveCollection tool in the MCP server's tool list.
      name: "clearActiveCollection",
      description: "Clear the active collection so transcript search fans back out across all collections.",
      inputSchema: {
        type: "object",
        properties: {},
        additionalProperties: false,
      },
    },
  • Tool execution logic that routes the clearActiveCollection call to the service implementation.
    case "clearActiveCollection":
      return service.clearActiveCollection();

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/rajanrengasamy/vidlens-mcp'

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