Skip to main content
Glama

Write a task form

set_task_form
DestructiveIdempotent

Create or replace a user task or start event form as a Camunda 8 form-js schema, with each field mapped to a process variable; an empty fields list removes the form.

Instructions

Creates or replaces the form of a user task or start event (a plain task becomes a user task), kept in the diagram file as a form-js schema linked for Camunda 8. Each field key is the process variable it fills in: reuse the names the diagram reads ("Amount > 3000" reads amount; a gateway "Category?" with answer branches reads category). An empty fields list with no schema removes the form. Returns the form id, its variables and the findings.

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": {
      "elementId": "<elementId>",
      "fields": "<fields>"
    },
    "name": "set_task_form"
  }
}

Input Schema

NameRequiredDescriptionDefault
introNoShort instructions under the heading (Markdown)
titleNoHeading shown at the top of the form, for example the task name
fieldsYes
schemaNoAdvanced: a complete form-js schema as JSON text, used instead of title, intro and fields
elementIdYesId of a diagram element, as returned by get_shapes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.6

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the form is stored in the diagram file as a form-js schema linked for Camunda 8, that existing forms are replaced, and that an empty fields list without schema removes the form. It also mentions the returned form id, variables and findings, though it does not explain permissions or error behavior.

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

Conciseness5/5

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

The description is compact and front-loaded: it states the core action and transformation first, then explains key semantics, then removal behavior, then return values. Every sentence contributes useful information without repetition.

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?

For a mutation tool with annotations covering safety and an 80%-documented schema, the description is largely complete. It covers replacement, transformation, removal, and the returned values, though it leaves the meaning and structure of 'findings' unexplained.

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?

With 80% schema coverage, the schema already documents most parameters. The description adds meaningful semantics for field keys by explaining that each key is the process variable the field fills in and should reuse names read by the diagram, with concrete examples such as amount and category.

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 gives a precise verb and resource: creates or replaces the form of a user task or start event, with the detail that a plain task becomes a user task. This clearly distinguishes the tool from read-oriented siblings such as get_task_forms and from general diagram editing 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?

It explains the main usage context: write a form for a user task or start event, and remove the form by passing an empty fields list with no schema. It does not explicitly name alternatives or exclusions, but the when-to-use conditions are clear enough.

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