finish_task
Mark tasks as completed in a task management system by providing the task ID, enabling users to track progress and maintain organized workflows.
Instructions
Mark a task as completed.
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>"
},
"name": "finish_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:95-98 (handler)The finish_task tool handler, decorated with @mcp.tool() for registration, marks a task as completed by calling TaskService.update_task_by_id.
@mcp.tool() async def finish_task(task_id: str) -> dict[str, Any]: """Mark a task as completed.""" return service.update_task_by_id(task_id, {"completed": True})