Skip to main content
Glama

list_calls

Retrieve Gong call records with date filtering to access metadata including ID, title, duration, and participants for sales conversation analysis.

Instructions

List Gong calls with optional date filtering. Returns call metadata including ID, title, duration, and participants.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromDateTimeNoStart date/time filter in ISO 8601 format (e.g., 2024-01-01T00:00:00Z)
toDateTimeNoEnd date/time filter in ISO 8601 format (e.g., 2024-01-31T23:59:59Z)
cursorNoPagination cursor for fetching next page of results

Implementation Reference

  • Core handler function listCalls in GongClient that queries the Gong API for calls with optional date range and pagination filters.
    async listCalls(options?: { fromDateTime?: string; toDateTime?: string; workspaceId?: string; cursor?: string; }): Promise<CallsResponse> { const params: Record<string, string> = {}; if (options?.fromDateTime) { params.fromDateTime = options.fromDateTime; } if (options?.toDateTime) { params.toDateTime = options.toDateTime; } if (options?.workspaceId) { params.workspaceId = options.workspaceId; } if (options?.cursor) { params.cursor = options.cursor; } return this.get<CallsResponse>('/calls', params); }
  • MCP tool dispatch handler for 'list_calls': extracts arguments, calls gong.listCalls, and returns JSON-formatted response.
    case "list_calls": { const result = await gong.listCalls({ fromDateTime: args?.fromDateTime as string | undefined, toDateTime: args?.toDateTime as string | undefined, cursor: args?.cursor as string | undefined, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • src/index.ts:45-68 (registration)
    Registers the 'list_calls' tool in the ListTools response, including name, description, and input schema.
    { name: "list_calls", description: "List Gong calls with optional date filtering. Returns call metadata including ID, title, duration, and participants.", inputSchema: { type: "object", properties: { fromDateTime: { type: "string", description: "Start date/time filter in ISO 8601 format (e.g., 2024-01-01T00:00:00Z)", }, toDateTime: { type: "string", description: "End date/time filter in ISO 8601 format (e.g., 2024-01-31T23:59:59Z)", }, cursor: { type: "string", description: "Pagination cursor for fetching next page of results", }, }, }, },
  • TypeScript interface defining the structure of the API response for listCalls.
    export interface CallsResponse { requestId: string; records: { cursor?: string; totalRecords: number; currentPageSize: number; currentPageNumber: number; }; calls: Call[]; }

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/JustinBeckwith/gongio-mcp'

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