Skip to main content
Glama

list_users

Retrieve all users from your Gong workspace with details like name, email, and settings. Use this tool to manage user access and view workspace members.

Instructions

List all Gong users in your workspace. Returns user details including name, email, and settings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoPagination cursor for fetching next page of results

Implementation Reference

  • Core handler function in GongClient that implements the logic to fetch users from Gong API /v2/users endpoint with optional cursor and includeAvatars parameters.
    async listUsers(options?: { cursor?: string; includeAvatars?: boolean; }): Promise<UsersResponse> { const params: Record<string, string> = {}; if (options?.cursor) { params.cursor = options.cursor; } if (options?.includeAvatars !== undefined) { params.includeAvatars = String(options.includeAvatars); } return this.get<UsersResponse>('/users', params); }
  • Input schema and metadata registration for the 'list_users' tool provided to MCP clients via ListTools.
    name: "list_users", description: "List all Gong users in your workspace. Returns user details including name, email, and settings.", inputSchema: { type: "object", properties: { cursor: { type: "string", description: "Pagination cursor for fetching next page of results", }, }, }, },
  • MCP server dispatch handler that executes the list_users tool by calling gong.listUsers and formatting the response.
    case "list_users": { const result = await gong.listUsers({ cursor: args?.cursor as string | undefined, }); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • TypeScript interface defining the structure of the response from the listUsers API call.
    export interface UsersResponse { requestId: string; records: { cursor?: string; totalRecords: number; currentPageSize: number; currentPageNumber: number; }; users: User[]; }

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