add_task_comment
Attach comments to tasks on Goodday using task and user IDs. This tool enables clear communication and updates within project workflows.
Instructions
Add a comment to a task.
Args: task_id: The ID of the task user_id: User on behalf of whom API will execute update message: Comment text
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| task_id | Yes | ||
| user_id | Yes |
Implementation Reference
- goodday_mcp/main.py:592-613 (handler)The handler function for the 'add_task_comment' MCP tool. It takes task_id, user_id, and message as input, constructs a POST request to the Goodday API endpoint 'task/{task_id}/comment', and returns success or error message.async def add_task_comment(task_id: str, user_id: str, message: str) -> str: """Add a comment to a task. Args: task_id: The ID of the task user_id: User on behalf of whom API will execute update message: Comment text """ data = { "userId": user_id, "message": message } result = await make_goodday_request(f"task/{task_id}/comment", "POST", data) if not result: return "Unable to add comment: No response received" if isinstance(result, dict) and "error" in result: return f"Unable to add comment: {result.get('error', 'Unknown error')}" return "Comment added successfully"