Skip to main content
Glama

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

NameRequiredDescriptionDefault
commentNoOptional free-text comment explaining the decision. Recorded in the audit trail alongside the approval event.
node_idNoID of the node that requested approval. Helps correlate the decision with the correct approval gate when a workflow has multiple.
decisionYesThe approval decision. Must be exactly 'approved' or 'rejected'. 'approved' resumes the workflow; 'rejected' records the rejection.
tenant_idNoTenant 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_idYesExecution ID of the paused workflow awaiting approval. Accepts 'exec_<uuid>' or bare UUID format.
action_digestNoThe 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.8.7
    • addedInput schema / properties / action_digest
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • changedInput schema / properties / tenant_id / description
      Previous value: -"Tenant partition. Defaults to 'default'. Must match the tenant used when the execution was created."New value: +"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."
  2. Addedv0.8.2
  3. Removedv0.8.1
  4. Changed6 schema fields changedv0.1.1
    • changedInput schema / properties / comment / description
      Previous value: -"Optional comment"New value: +"Optional free-text comment explaining the decision. Recorded in the audit trail alongside the approval event."
    • changedInput schema / properties / decision / description
      Previous value: -"approved or rejected"New value: +"The approval decision. Must be exactly 'approved' or 'rejected'. 'approved' resumes the workflow; 'rejected' records the rejection."
    • addedInput schema / properties / decision / enum
      Added value: +[
      +  "approved",
      +  "rejected"
      +]
    • changedInput schema / properties / execution_id / description
      Previous value: -"Execution ID"New value: +"Execution ID of the paused workflow awaiting approval. Accepts 'exec_<uuid>' or bare UUID format."
    • changedInput schema / properties / node_id / description
      Previous value: -"Node that requested approval"New value: +"ID of the node that requested approval. Helps correlate the decision with the correct approval gate when a workflow has multiple."
    • changedInput schema / properties / tenant_id / description
      Previous value: -"Tenant ID (default: default)"New value: +"Tenant partition. Defaults to 'default'. Must match the tenant used when the execution was created."
  5. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does so: it discloses side effects (ApprovalReceived event appended, execution resumed to 'running'), approver identity capture ('mcp-client' in dev mode), immutable audit-trail recording, the exact return shape (execution_id, accepted: true), and the failure modes including superseded approvals.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose then trigger, side effects, return value, and failures — a logical order. The sentence enumerating failure conditions partly restates the schema's enum constraint, a minor redundancy in an otherwise dense, waste-free description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter mutation tool with no annotations and no output schema, the description covers preconditions, side effects, return value, and refusal conditions — everything an agent needs before invoking it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes further by tying parameters to failure semantics (node_id must match a pending approval, decision must be exactly 'approved'/'rejected', execution_id lookup). It does not independently explain action_digest or tenant_id mechanics, but the schema already does.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Submit an approval or rejection decision for a workflow execution') plus the precise precondition ('paused and waiting for human review'), which distinguishes it from siblings like jamjet_get_events and jamjet_cancel_execution.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger conditions referencing sibling tools ('when jamjet_list_executions shows a paused execution or jamjet_get_events shows an ApprovalRequested event') and closes with a routing note to check jamjet_get_events first. The failure conditions implicitly define when not to call it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.