Skip to main content
Glama

cmmn-execute_stage

cmmn-execute_stage

Execute a CMMN stage by traversing tasks depth-first; human tasks can be paused, skipped, or queued. LLM must handle 'llm_execute' prompts immediately by completing tasks.

Instructions

Executes a stage by traversing its task tree depth-first. Human tasks pause execution. IMPORTANT: When the result contains next_actions with action_required='llm_execute', YOU (the calling LLM) MUST process each prompt immediately. Read the 'prompt' field, execute the work it describes, then call cmmn-complete_task with the task_id and your result. Do NOT just report these back to the user — you are the executor. The stage is not complete until all llm_execute actions have been processed and their tasks completed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoAdditional context for process tasks
human_task_modeNoHow to handle human tasks: 'pause' (default), 'skip', 'queue'
max_depthNoMax nesting depth for nested stages (default: 5)
max_itemsNoMax items to execute before returning (default: 10)
stage_idYesStage ID to execute (@rid format)
Behavior5/5

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

With no annotations, the description fully discloses key behaviors: depth-first traversal, human task pausing, and the requirement for the LLM to process llm_execute actions immediately. It also clarifies that the stage is not complete until all such actions are handled.

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 with a clear core action and an IMPORTANT section for critical instructions. It is slightly verbose but all sentences add value. Could be more concise but remains effective.

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

Completeness3/5

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

Covers main behaviors but lacks details about the return structure (no output schema), error conditions, and behavior for different human_task_mode values. The description implies a result structure but doesn't fully explain it.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds minimal parameter context beyond what the schema provides (e.g., implying default for human_task_mode). No additional details for max_depth, max_items, or context.

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

Purpose4/5

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

The description clearly states it executes a stage via depth-first traversal, which is specific. It differentiates from siblings like cmmn-execute_task through the mention of stage versus task, but does not explicitly contrast with other related tools.

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?

Provides explicit instructions for handling llm_execute actions and when to call cmmn-complete_task. However, it does not specify when not to use this tool (e.g., for individual task execution) or mention alternative tools like cmmn-execute_task.

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/mstang/casemgr-mcp'

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