Skip to main content
Glama

fluig_process_events_xml

Reads process event source code directly from the BPM definition XML to inspect beforeStateEntry, afterTaskCreate, and afterProcessFinish handlers without depending on event tables or widgets.

Instructions

Lê os eventos de PROCESSO (beforeStateEntry, afterTaskCreate, afterProcessFinish...) com o código-fonte, direto do XML da definição. NÃO precisa do FluiggersWidget nem de ler a tabela event_proces — é a fonte de verdade oficial.

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": {
      "processId": "<processId>",
      "env": "<env>"
    },
    "name": "fluig_process_events_xml"
  }
}

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.
destinoNoarquivo para gravar o conteúdo inteiro (opcional; a resposta traz só o resumo), dentro de FLUIG_SAIDA_DIR (padrão: ~/fluig-mcp-saida); caminho relativo é relativo a ela, e caminho fora dela é recusado
versionNoversão específica (opcional)
maxCharsNomáximo de caracteres na resposta inline (opcional; padrão 20000)
processIdYesid do processo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.3.0
    • addedInput schema / properties / destino
      Added value: +{
      +  "description": "arquivo para gravar o conteúdo inteiro (opcional; a resposta traz só o resumo), dentro de FLUIG_SAIDA_DIR (padrão: ~/fluig-mcp-saida); caminho relativo é relativo a ela, e caminho fora dela é recusado",
      +  "type": "string"
      +}
    • addedInput schema / properties / env
      Added value: +{
      +  "description": "OBRIGATÓ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.",
      +  "enum": [
      +    "teste",
      +    "prod"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / maxChars
      Added value: +{
      +  "description": "máximo de caracteres na resposta inline (opcional; padrão 20000)",
      +  "type": "number"
      +}
    • changedInput schema / properties / processId / description
      Previous value: -"Process id."New value: +"id do processo"
    • changedInput schema / properties / version / description
      Previous value: -"Specific version (optional)."New value: +"versão específica (opcional)"
    • changedInput schema / required
      Previous value: -[
      -  "processId"
      -]New value: +[
      +  "processId",
      +  "env"
      +]
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load: it does disclose that this is a read of the definition XML and that it is the authoritative source, which is useful. However, it omits the truncation behavior (maxChars default, destino writes the full content while the inline response is only a summary) — that information lives only in the schema — and says nothing about permissions or failure modes.

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?

Two tight sentences, the read purpose front-loaded and the 'no widget / no table' differentiator immediately after. Nothing is padded and 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 5-parameter read tool with full schema coverage and no output schema, the description gives enough to select and call it correctly; the response-shape caveats are handled by the schema. A brief note on the summary-vs-full-file behavior would have made it fully self-sufficient.

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% and the schema explains env, destino, version, maxChars and processId thoroughly, including the file-path sandbox and the explicit env choice. The description adds no parameter-level meaning, 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 ('Lê') and a specific resource ('eventos de PROCESSO') plus the exact source ('direto do XML da definição'), and gives concrete event examples (beforeStateEntry, afterTaskCreate, afterProcessFinish). It also distinguishes itself from the sibling event tools by declaring it bypasses FluiggersWidget and the event_proces table.

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?

Explicitly tells the agent to prefer this over the widget/table route ('NÃO precisa do FluiggersWidget nem de ler a tabela event_proces — é a fonte de verdade oficial'), which is real routing guidance. It stops short of naming which sibling (e.g. fluig_process_event_get) to use for the write/other-read case, so the exclusion is one-sided.

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