jamjet_approve
Submit an approval or rejection decision for a paused workflow execution awaiting human review, recording it in the audit trail and resuming the workflow.
Instructions
Submit an approval or rejection decision for a workflow execution that is paused and waiting for human review. Use this when jamjet_list_executions shows a 'paused' execution or jamjet_get_events shows an ApprovalRequested event. Side effects: appends an ApprovalReceived event to the event log, recording the authenticated API token as the approver ('mcp-client' only in dev mode), and, if the execution is paused, resumes it to 'running' status so the next node can proceed. The decision is recorded in the immutable audit trail. Returns a JSON object with execution_id and accepted: true. Fails if execution_id is not found, if decision is not exactly 'approved' or 'rejected', or if nothing is pending approval (or node_id does not match a pending approval). Related: use jamjet_get_events to see the ApprovalRequested event details before deciding.
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": {
"execution_id": "<execution_id>",
"decision": "<decision>"
},
"name": "jamjet_approve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional free-text comment explaining the decision. Recorded in the audit trail alongside the approval event. | |
| node_id | No | ID of the node that requested approval. Helps correlate the decision with the correct approval gate when a workflow has multiple. | |
| decision | Yes | The approval decision. Must be exactly 'approved' or 'rejected'. 'approved' resumes the workflow; 'rejected' records the rejection. | |
| tenant_id | No | Tenant partition. Defaults to 'default'. Must match the tenant used when the execution was created. Outside dev mode the tenant is the API token's tenant and a different value is refused. | |
| execution_id | Yes | Execution ID of the paused workflow awaiting approval. Accepts 'exec_<uuid>' or bare UUID format. | |
| action_digest | No | The action_digest (or, for an agent tool dispatch, the calls_hash) from the context of the pending approval you reviewed. Required to approve outside dev mode. If the pending request has been superseded the decision is refused, so you never approve an action you did not see. |