jamjet_approve
Submit an approval or rejection decision for a paused workflow execution. Records the decision and resumes the workflow if approved.
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 (with user_id 'mcp-client') 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 or if decision is not exactly 'approved' or 'rejected'. Related: use jamjet_get_events to see the ApprovalRequested event details before deciding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Optional free-text comment explaining the decision. Recorded in the audit trail alongside the approval event. | |
| decision | Yes | The approval decision. Must be exactly 'approved' or 'rejected'. 'approved' resumes the workflow; 'rejected' records the rejection. | |
| execution_id | Yes | Execution ID of the paused workflow awaiting approval. Accepts 'exec_<uuid>' or bare UUID format. | |
| node_id | No | ID of the node that requested approval. Helps correlate the decision with the correct approval gate when a workflow has multiple. | |
| tenant_id | No | Tenant partition. Defaults to 'default'. Must match the tenant used when the execution was created. |