get_project_users
Retrieve users assigned to a specific project in Goodday project management. Use this tool to identify team members working on a particular project by providing the project ID.
Instructions
Get users associated with a specific project.
Args: project_id: The ID of the project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- goodday_mcp/main.py:650-669 (handler)The main handler function for the 'get_project_users' tool. It is decorated with @mcp.tool() for registration and implements the core logic: calls the Goodday API endpoint 'project/{project_id}/users', handles errors, formats the user list using format_user helper, and returns formatted output.@mcp.tool() async def get_project_users(project_id: str) -> str: """Get users associated with a specific project. Args: project_id: The ID of the project """ data = await make_goodday_request(f"project/{project_id}/users") if not data: return "No users found for this project." if isinstance(data, dict) and "error" in data: return f"Unable to fetch project users: {data.get('error', 'Unknown error')}" if not isinstance(data, list): return f"Unexpected response format: {str(data)}" users = [format_user(user) for user in data] return "\n---\n".join(users)