get_user_action_required_tasks
Retrieve tasks requiring immediate attention for a specific user in Goodday project management, helping prioritize work and track pending actions.
Instructions
Get action required tasks for a specific user.
Args: user_id: The ID of the user
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes |
Implementation Reference
- goodday_mcp/main.py:456-474 (handler)The main handler function for the 'get_user_action_required_tasks' MCP tool. It fetches action-required tasks for the given user_id from the Goodday API endpoint 'user/{user_id}/action-required-tasks', formats each task using format_task helper, and returns a concatenated string of formatted tasks separated by '---'.async def get_user_action_required_tasks(user_id: str) -> str: """Get action required tasks for a specific user. Args: user_id: The ID of the user """ data = await make_goodday_request(f"user/{user_id}/action-required-tasks") if not data: return "No action required tasks found." if isinstance(data, dict) and "error" in data: return f"Unable to fetch action required tasks: {data.get('error', 'Unknown error')}" if not isinstance(data, list): return f"Unexpected response format: {str(data)}" tasks = [format_task(task) for task in data] return "\n---\n".join(tasks)