Skip to main content
Glama

fluig_process_attachment_download

Downloads a Fluig process attachment binary to a local file using the process instance ID, attachment sequence, target environment, and destination path.

Instructions

Baixa o BINÁRIO de um anexo de solicitação para um arquivo local. ⚠️ Usa a rota singular de propósito: na rota plural do produto os parâmetros user e replacedUser estão ambos anotados @QueryParam("user") — um bug que faz replacedUser não ter efeito.

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.
destinoYesarquivo a gravar, dentro de FLUIG_SAIDA_DIR (padrão: ~/fluig-mcp-saida); caminho relativo é relativo a ela, e caminho fora dela é recusado
processInstanceIdYesid da solicitação
attachmentSequenceYessequência do anexo (ver fluig_process_attachments)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does add genuine behavioral context that structured data lacks — the deliberate use of the singular route to avoid the plural route's @QueryParam('user') bug — which is real transparency. However, it omits key behaviors for a write-to-disk operation: whether an existing file at destino is overwritten, what is returned on success, size/encoding limits, and auth requirements.

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?

Two sentences, front-loaded with the action and followed by the caveat. Both earn their place, though the @QueryParam bug detail is implementation trivia that could be compressed to 'use the singular route; the plural route ignores replacedUser'.

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?

For a 4-required-parameter file-writing tool with no annotations and no output schema, the definition covers the action and the path sandboxing (via schema) but leaves the return value and overwrite/error semantics unstated. Adequate to invoke, not complete enough to predict the effect.

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 all four parameters are already richly documented, including the env enum rationale and the FLUIG_SAIDA_DIR sandbox rule. The description adds no parameter meaning beyond the schema; the route-parameter discussion concerns user/replacedUser, which are not even inputs here, so it adds noise rather than semantics.

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?

States a specific verb and resource ('Baixa o BINÁRIO de um anexo de solicitação') plus the destination form (local file), which is precise enough to distinguish it from list-style siblings. It does not explicitly contrast itself with other download-flavored siblings such as fluig_ged_download or fluig_process_attachments, so full differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the agent can infer 'use this when you need the attachment bytes on disk', and the schema note points to fluig_process_attachments for the sequence. There is no explicit when-to-use/when-not, no prerequisite call ordering, and no mention of the sibling download tools.

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