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[];
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions returning user details, but lacks behavioral traits such as pagination behavior (implied by the cursor parameter), rate limits, authentication needs, or error handling. The description is minimal and doesn't disclose key operational aspects.

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

Conciseness4/5

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

The description is concise and front-loaded, stating the core function in the first sentence and adding return details in the second. Both sentences earn their place by providing essential information without waste, though it could be slightly more structured for clarity.

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

Completeness2/5

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

Given no annotations and no output schema, the description is incomplete. It lacks details on return format, pagination behavior, error cases, and usage context. For a tool with one parameter and no structured support, the description should provide more comprehensive guidance to be fully helpful.

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%, with the cursor parameter documented in the schema. The description does not add any parameter semantics beyond what the schema provides, such as explaining how pagination works or default behaviors. Baseline score of 3 is appropriate as the schema handles parameter documentation adequately.

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 users in your workspace'), specifying what the tool does. It distinguishes from siblings like 'list_calls' by focusing on users rather than calls, though it doesn't explicitly contrast them. The purpose is specific but lacks explicit sibling differentiation.

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?

No guidance is provided on when to use this tool versus alternatives. The description does not mention prerequisites, context for usage, or comparisons with sibling tools like 'get_call_details' or 'search_calls'. It's a basic statement of function without usage context.

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