Skip to main content
Glama

fluig_process_convert_instances

Migrate open process instances to a new version by mapping source activities to destination states. Run without confirmation to review the dry-run mapping, then confirm execution.

Instructions

🛑 A OPERAÇÃO MAIS DESTRUTIVA DO MCP. Migra solicitações ABERTAS para uma nova versão do processo. Converter FINALIZA as tarefas pendentes e cria novas no destino — mapeamento errado significa trabalho em curso PERDIDO, sem volta. Chame primeiro SEM confirm para ver o dryRun com o mapeamento, revise par a par, e só então confirme. Descubra as instâncias com fluig_request_list e as atividades com fluig_process_def_states. Nunca rode em lote sem revisar.

Input Schema

NameRequiredDescriptionDefault
envYesOBRIGATÓRIO. Ambiente alvo: "teste" (homologação, o host de FLUIG_HOST) ou "prod" (PRODUÇÃO REAL, o host de FLUIG_HOST_PROD). Não há default: a escolha é sempre explícita, para que ninguém leia homologação achando que é produção nem escreva em produção achando que é teste.
confirmNoexecuta de verdade; sem isso devolve dryRun
newStatesYesatividades de destino (pares posicionais com actualStates)
newVersionYesversão destino
actualStatesYesatividades de origem
processInstanceIdYessolicitações a converter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses irreversibility, loss of in-progress work on bad mapping, the finalize-and-recreate side effect, and the dryRun-first behavior of `confirm`. This is exactly the behavioral context an agent needs before invoking a destructive batch mutation.

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 most important warning is front-loaded and every sentence carries an operational instruction. It is somewhat long and the capitalized alarmist framing is louder than necessary, but no sentence is wasted.

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 6-parameter destructive mutation with no output schema and no annotations, the description covers destructiveness, dryRun preview, discovery helpers, and review workflow. It stops short of describing permission requirements or error/partial-failure behavior, which would round it out fully.

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 coverage is 100% and every parameter is documented in-schema, including the positional pairing of actualStates/newStates and the dryRun semantics of `confirm`. The description mostly restates that ("chame primeiro SEM confirm") without adding format or validation rules beyond the schema, so the baseline 3 applies.

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: migrating open requests to a new process version, and clarifies that conversion finalizes pending tasks and creates new ones at the destination. This is clearly distinguishable from siblings like fluig_process_move, fluig_process_cancel, or fluig_process_version_release.

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?

Explicit sequencing: call first without `confirm` to get the dryRun mapping, review pair by pair, then confirm; never batch without review. It also routes the agent to fluig_request_list for instances and fluig_process_def_states for activities, naming concrete alternatives rather than leaving discovery to guesswork.

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

Deploy Server

Other Tools