Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
commentNoOptional free-text comment explaining the decision. Recorded in the audit trail alongside the approval event.
decisionYesThe approval decision. Must be exactly 'approved' or 'rejected'. 'approved' resumes the workflow; 'rejected' records the rejection.
execution_idYesExecution ID of the paused workflow awaiting approval. Accepts 'exec_<uuid>' or bare UUID format.
node_idNoID of the node that requested approval. Helps correlate the decision with the correct approval gate when a workflow has multiple.
tenant_idNoTenant partition. Defaults to 'default'. Must match the tenant used when the execution was created.
Behavior5/5

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

The description fully discloses side effects: appends an ApprovalReceived event, resumes the execution to 'running' status, and records the decision in an immutable audit trail. It also specifies the return value (JSON with execution_id and accepted: true) and failure conditions (invalid execution_id or decision). Since no annotations are provided, the description carries the full burden and meets it comprehensively.

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?

The description is well-structured, starting with the core purpose, followed by usage conditions, side effects, return value, failure modes, and a related tool suggestion. Every sentence adds value without redundancy. However, it could be slightly more concise (e.g., combining the failure conditions into a single sentence), but overall it is efficient for the amount of information conveyed.

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

Completeness4/5

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

Given the tool has 5 parameters and no output schema, the description covers purpose, usage context, side effects, return value, and error conditions. It mentions the return object structure but does not elaborate on the 'rejected' decision's effect on the execution flow beyond 'records the rejection.' Still, it is largely complete for the known context gaps.

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

Parameters3/5

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

The input schema already provides descriptions for all 5 parameters (100% coverage). The description adds minor context, such as the format of execution_id ('exec_<uuid> or bare UUID'), but this does not significantly enhance understanding beyond the schema. Baseline 3 is appropriate as the description does not compensate substantially for the already complete schema.

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?

The description clearly states the tool's purpose: 'Submit an approval or rejection decision for a workflow execution that is paused and waiting for human review.' The verb 'submit' and resource 'approval/rejection decision' are specific, and the context 'paused and waiting for human review' distinguishes it from sibling tools like jamjet_cancel_execution or jamjet_run_workflow.

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

Usage Guidelines4/5

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

The description explicitly states when to use the tool: 'Use this when jamjet_list_executions shows a paused execution or jamjet_get_events shows an ApprovalRequested event.' It also suggests a related tool: 'use jamjet_get_events to see the ApprovalRequested event details before deciding.' However, it does not explicitly contrast with alternatives like jamjet_cancel_execution for cancellation, so it lacks full comparative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamjet-labs/jamjet'

If you have feedback or need assistance with the MCP directory API, please join our Discord server