Close goal
close_goalClose a goal with a terminal status, ending its pursuit.
Records the closing event and reason in the goal's history and saves a
version snapshot of the goal. A closed goal cannot be reactivated; to
stop work temporarily use pause_goal instead.
Args:
goal_id: UUID of the goal.
final_status: One of 'achieved', 'failed', 'expired', 'superseded'.
reason: Explanation for closing. Required when final_status is
'failed'; optional otherwise.
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": {
"goal_id": "<goal_id>",
"final_status": "<final_status>"
},
"name": "close_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| goal_id | Yes | ||
| final_status | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| status | No | ||
| progress | No | ||
| goal_type | No | ||
| created_at | No | ||
| updated_at | No | ||
| description | No | ||
| parent_goal_id | No | ||
| priority_weight | No |