add_task_comment
Add comments to tasks in Goodday project management to provide updates, instructions, or feedback for team collaboration.
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>",
"user_id": "<user_id>",
"message": "<message>"
},
"name": "add_task_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| user_id | Yes | ||
| message | Yes |
Implementation Reference
- goodday_mcp/main.py:592-613 (handler)This is the core handler function implementing the 'add_task_comment' tool. It constructs a payload with user ID and message, then calls the Goodday API via make_goodday_request to POST a comment to the specified task, handling errors and success responses.
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"