Skip to main content
Glama
kenazk

Gong MCP Server

by kenazk

retrieve_transcripts

Retrieve detailed call transcripts with speaker identification, topics, and timestamped sentences for analysis and review.

Instructions

Retrieve transcripts for specified call IDs. Returns detailed transcripts including speaker IDs, topics, and timestamped sentences.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
callIdsYesArray of Gong call IDs to retrieve transcripts for

Implementation Reference

  • MCP CallToolRequest handler case for 'retrieve_transcripts': validates arguments using isGongRetrieveTranscriptsArgs, extracts callIds, calls gongClient.retrieveTranscripts, and returns JSON response.
    case "retrieve_transcripts": {
      if (!isGongRetrieveTranscriptsArgs(args)) {
        throw new Error("Invalid arguments for retrieve_transcripts");
      }
      const { callIds } = args;
      const response = await gongClient.retrieveTranscripts(callIds);
      return {
        content: [{ 
          type: "text", 
          text: JSON.stringify(response, null, 2)
        }],
        isError: false,
      };
    }
  • src/index.ts:169-183 (registration)
    Definition of the RETRIEVE_TRANSCRIPTS_TOOL Tool object, including name, description, and inputSchema. This is registered in the list tools handler.
    const RETRIEVE_TRANSCRIPTS_TOOL: Tool = {
      name: "retrieve_transcripts",
      description: "Retrieve transcripts for specified call IDs. Returns detailed transcripts including speaker IDs, topics, and timestamped sentences.",
      inputSchema: {
        type: "object",
        properties: {
          callIds: {
            type: "array",
            items: { type: "string" },
            description: "Array of Gong call IDs to retrieve transcripts for"
          }
        },
        required: ["callIds"]
      }
    };
  • Type guard function to validate input arguments for retrieve_transcripts tool.
    function isGongRetrieveTranscriptsArgs(args: unknown): args is GongRetrieveTranscriptsArgs {
      return (
        typeof args === "object" &&
        args !== null &&
        "callIds" in args &&
        Array.isArray((args as GongRetrieveTranscriptsArgs).callIds) &&
        (args as GongRetrieveTranscriptsArgs).callIds.every(id => typeof id === "string")
      );
    }
  • GongClient method that performs the HTTP POST request to Gong API to retrieve transcripts for given callIds.
    async retrieveTranscripts(callIds: string[]): Promise<GongRetrieveTranscriptsResponse> {
      return this.request<GongRetrieveTranscriptsResponse>('POST', '/calls/transcript', undefined, {
        filter: {
          callIds,
          includeEntities: true,
          includeInteractionsSummary: true,
          includeTrackers: true
        }
      });
    }
  • TypeScript interfaces defining the request arguments and response structure for retrieve_transcripts.
    interface GongRetrieveTranscriptsResponse {
      transcripts: GongTranscript[];
    }
    
    interface GongListCallsArgs {
      [key: string]: string | undefined;
      fromDateTime?: string;
      toDateTime?: string;
    }
    
    interface GongRetrieveTranscriptsArgs {
      callIds: string[];
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions what the tool returns ('detailed transcripts including speaker IDs, topics, and timestamped sentences'), which is helpful. However, it doesn't address critical behavioral aspects like whether this is a read-only operation, potential rate limits, authentication requirements, error conditions, or what happens if call IDs are invalid. For a tool with zero annotation coverage, this leaves significant gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise and well-structured. It consists of two sentences: the first states the purpose and required input, and the second describes the return value. Every word earns its place with no redundancy or fluff. It's appropriately front-loaded with the core functionality.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (retrieving transcripts for multiple calls), lack of annotations, and no output schema, the description is minimally adequate. It covers the basic purpose and return format but misses important contextual details like error handling, permissions, or limitations. The absence of an output schema means the description should ideally explain the return structure more thoroughly, which it only does at a high level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the parameter 'callIds' clearly documented as 'Array of Gong call IDs to retrieve transcripts for.' The description doesn't add any meaningful semantic information beyond what the schema already provides. According to the rules, when schema_description_coverage is high (>80%), the baseline score is 3 even with no parameter info in the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Retrieve transcripts for specified call IDs.' It specifies the verb ('retrieve'), resource ('transcripts'), and scope ('for specified call IDs'). However, it doesn't explicitly distinguish this from the sibling tool 'list_calls' (which likely lists calls rather than retrieving transcripts), so it falls short of a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention the sibling tool 'list_calls' or any other context for selection. The only implied usage is that you need call IDs to retrieve transcripts, but this is basic parameter information rather than strategic guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/kenazk/gong-mcp'

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