Skip to main content
Glama

setActiveCollection

Specify which YouTube transcript collection to search by default when no collection is provided, streamlining transcript analysis workflows.

Instructions

Set the default collection that transcript search should focus on when collectionId is omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collectionIdYes

Implementation Reference

  • Tool handler for setActiveCollection in mcp-server.ts which delegates to the service class.
    case "setActiveCollection":
      return service.setActiveCollection({
        collectionId: readString(args, "collectionId"),
      });
  • Tool registration for setActiveCollection in mcp-server.ts.
      name: "setActiveCollection",
      description: "Set the default collection that transcript search should focus on when collectionId is omitted.",
      inputSchema: {
        type: "object",
        properties: {
          collectionId: { type: "string" },
        },
        required: ["collectionId"],
        additionalProperties: false,
      },
    },
  • Actual implementation of setActiveCollection in the knowledge-base service.
    setActiveCollection(collectionId: string): SetActiveCollectionOutput {
      const collection = this.getCollectionSummary(collectionId);
      if (!collection) {

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