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[];
    }
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. It mentions optional date filtering and return metadata, but fails to disclose critical behavioral traits such as pagination behavior (implied by the 'cursor' parameter but not explained), rate limits, authentication needs, or whether it's read-only. This leaves significant gaps for an agent to understand how to use it effectively.

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 appropriately sized and front-loaded, consisting of two concise sentences that directly state the purpose and key details (filtering and return metadata). Every sentence earns its place with no wasted words, making it efficient for quick understanding.

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 (3 parameters, no output schema, no annotations), the description is partially complete. It covers the basic purpose and return metadata but lacks details on behavioral aspects like pagination, which is hinted at in the schema but not explained. Without annotations or output schema, more context on usage and results would improve completeness.

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?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by mentioning 'optional date filtering', which aligns with 'fromDateTime' and 'toDateTime', but doesn't provide additional syntax or format details. Baseline 3 is appropriate as the schema does the heavy lifting.

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 verb ('List') and resource ('Gong calls'), specifying what the tool does. It distinguishes from siblings like 'get_call_details' and 'get_transcripts' by focusing on listing calls with metadata rather than detailed or transcript data. However, it doesn't explicitly differentiate from 'search_calls', which might offer broader filtering options.

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

Usage Guidelines3/5

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

The description implies usage for listing calls with date filtering, but doesn't explicitly state when to use this tool versus alternatives like 'search_calls' or 'list_users'. It provides some context (date filtering) but lacks clear exclusions or named alternatives, leaving usage somewhat ambiguous.

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

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