Complete or reopen a task
Mark a task completed, or open it again.
MCP tool freshsales_write → complete_task
write
Changes the status of one task you own or share. It touches only the task, and one call with completed set to false undoes it, so it does not wait for your OK by default.
Parameters
| Name | Type | Description |
|---|---|---|
| task_id integer required | integer | Task id from list_tasks. |
| completed boolean | boolean | true to complete, false to reopen. Default true. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "freshsales_write",
"arguments": {
"operation": "complete_task",
"arguments": {
"task_id": 1
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"task_id": 8800121,
"status": "completed"
},
"isError": false
}