Skip to main content
Glama

get-project-member-list

Retrieve and filter project member details including names and email addresses from Dooray projects. Use to assign tasks or analyze team composition with optional role-based filtering and pagination.

Instructions

Get list of members in a project with their details.

This tool fetches project members and enriches each member with detailed information including name and email address.

URL Pattern Recognition: When given a Dooray URL like "https://nhnent.dooray.com/task/PROJECT_ID", extract the PROJECT_ID (the first numeric ID after "/task/") and use it as the projectId parameter.

Role Filtering:

  • Optionally filter by roles: ["admin"], ["member"], or ["admin", "member"]

  • If not specified, returns all members regardless of role

Pagination:

  • Default page size is 20 (maximum: 100)

  • Use page parameter to get additional pages if totalCount > size

Note: Returns compact response with essential fields only (id, name, externalEmailAddress).

Examples:

  • Get all members: {"projectId": "123456"}

  • Get only admins: {"projectId": "123456", "roles": ["admin"]}

  • Get with pagination: {"projectId": "123456", "page": 0, "size": 50}

Returns a paginated response with totalCount and array of members containing:

  • id: Member ID (organizationMemberId)

  • name: Member's display name

  • externalEmailAddress: Member's email address

Use this tool to find project members for assigning tasks or understanding team composition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYesProject ID to get members from
rolesNoFilter by roles (optional)
pageNoPage number for pagination (default: 0)
sizeNoNumber of items per page (default: 20, max: 100)

Implementation Reference

  • The core handler function that fetches project members using projectsApi.getProjectMembers, enriches each with member details from commonApi.getMemberDetails, handles pagination and errors, and returns a JSON-formatted response.
    export async function getProjectMemberListHandler(args: GetProjectMemberListInput) {
      try {
        // Step 1: Fetch project members (only IDs and roles)
        const projectMembers = await projectsApi.getProjectMembers(args);
    
        // Step 2: Fetch detailed info for each member in parallel
        const memberDetailsPromises = projectMembers.data.map(async (pm) => {
          try {
            const details = await commonApi.getMemberDetails(pm.organizationMemberId);
            return {
              id: details.id,
              name: details.name,
              externalEmailAddress: details.externalEmailAddress,
            };
          } catch (error) {
            // If member details fail, return partial info
            return {
              id: pm.organizationMemberId,
              name: 'Unknown',
              externalEmailAddress: 'Unknown',
            };
          }
        });
    
        const enrichedMembers = await Promise.all(memberDetailsPromises);
    
        // Step 3: Return compact response with only requested fields
        const compactResult = {
          totalCount: projectMembers.totalCount,
          data: enrichedMembers,
        };
    
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(compactResult, null, 2),
            },
          ],
        };
      } catch (error) {
        return {
          content: [
            {
              type: 'text',
              text: `Error: ${formatError(error)}`,
            },
          ],
          isError: true,
        };
      }
    }
  • Zod schema defining the input parameters: projectId (required), optional roles filter, page, and size for pagination.
    export const getProjectMemberListSchema = z.object({
      projectId: z.string().describe('Project ID to get members from'),
      roles: z.array(z.enum(['admin', 'member'])).optional().describe('Filter by roles (admin, member)'),
      page: z.number().optional().describe('Page number (default: 0)'),
      size: z.number().optional().describe('Items per page (default: 20, max: 100)'),
    });
  • src/index.ts:61-61 (registration)
    Registration of the tool in the central toolRegistry mapping tool name to its handler and schema for execution.
    'get-project-member-list': { handler: getProjectMemberListHandler, schema: getProjectMemberListSchema },
  • src/index.ts:33-33 (registration)
    Import of the tool components (tool object, handler, schema) from the implementation file.
    import { getProjectMemberListTool, getProjectMemberListHandler, getProjectMemberListSchema } from './tools/projects/get-project-member-list.js';
  • src/index.ts:84-84 (registration)
    Inclusion of the tool object in the list of available tools advertised by the MCP server.
    getProjectMemberListTool,
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and does so effectively. It explains pagination behavior (default page size, maximum, how to get additional pages), URL pattern recognition for extracting project IDs, role filtering options and defaults, and the compact response format. The only minor gap is lack of explicit mention about authentication requirements or rate limits.

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 well-structured with clear sections (URL Pattern Recognition, Role Filtering, Pagination, Note, Examples, Returns) and front-loads the core purpose. While comprehensive, some sections could be slightly more concise, but every sentence adds meaningful information that helps the agent understand how to use the tool effectively.

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

Completeness4/5

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

For a tool with 4 parameters, no annotations, and no output schema, the description provides excellent context. It explains the response format in detail, includes multiple usage examples, covers behavioral aspects like pagination and filtering, and gives practical guidance. The only minor gap is the lack of explicit error handling or edge case information, but overall it's highly complete.

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

Parameters4/5

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

Despite 100% schema description coverage, the description adds significant value beyond the schema. It provides concrete examples of parameter usage, explains the URL pattern recognition for obtaining projectId, clarifies role filtering behavior ('If not specified, returns all members regardless of role'), and gives practical guidance on pagination usage. This goes well beyond the basic parameter descriptions in the schema.

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

Purpose5/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 with specific verbs ('Get list of members', 'fetches project members and enriches each member') and identifies the resource ('project members'). It distinguishes from siblings like 'get-project' or 'get-project-list' by focusing specifically on members rather than projects themselves.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool ('Use this tool to find project members for assigning tasks or understanding team composition') and includes practical examples. It also distinguishes from potential alternatives by specifying the tool's specific scope (members with details) rather than other project-related information.

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/jhl8041/dooray-mcp'

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