Skip to main content
Glama

cmmn-complete_task

cmmn-complete_task

Complete a CMMN task by storing the result, marking it completed, and evaluating sentries. Optionally bypass human or entry gates with force=true.

Instructions

Completes a task. Stores result in task.data.result, sets status to completed, and evaluates sentries. Pre-flight gates: human tasks require confirm_human=true; tasks in 'available' state with unsatisfied entry sentries return 'blocked_by'; tasks with acceptance_criteria require the judge-layer evidence path — call cmmn-claim_complete_with_evidence instead, OR use force=true here to bypass. Use force=true to bypass any gate when the user has explicitly confirmed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirm_humanNoRequired to complete a task with task_type='human'. Default false: human tasks halt with action_required='user_confirmation' and the agent must surface the task to the user. Set to true ONLY after the user has explicitly confirmed.
forceNoBypass all completion gates (human-task confirmation AND entry-sentry check). Use when the user has explicitly asked to skip workflow gating. Default false.
resultNoOptional result data to store as a map or JSON string (e.g., {client_id: '#16:0', notes: 'Selected NASTF'})
task_idYesTask ID (@rid format)
Behavior4/5

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

Discloses major behaviors: stores result, sets status, evaluates sentries, pre-flight gates for human tasks, sentry satisfaction, and acceptance criteria. Mentions return condition 'blocked_by'. Could be more explicit about side effects or permissions, but sufficient.

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?

Dense single paragraph that front-loads the main action and then details gates. Slightly long but every sentence adds value. Could be split into bullet points for clarity, but concise overall.

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?

Covers main purpose, gates, and alternatives. No output schema, but mentions return of 'blocked_by'. Doesn't describe successful response format, but the description is fairly complete for a task completion tool.

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?

Input schema has 100% coverage with good descriptions. The description adds context for when to set confirm_human and force, explaining the gating logic. This goes beyond the schema definitions.

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 verb 'completes' and resource 'task'. It explains the effect: stores result, sets status, evaluates sentries. It distinguishes from sibling cmmn-claim_complete_with_evidence for tasks with acceptance criteria.

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?

Explicitly says when to use an alternative: 'tasks with acceptance_criteria require the judge-layer evidence path — call cmmn-claim_complete_with_evidence instead, OR use force=true here to bypass.' Also explains when to use force=true and the conditions for human tasks.

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