Skip to main content
Glama

Anexar arquivos ao chamado

glpi_anexar_ao_chamado

Attach local files from allowed folders to a GLPI ticket follow-up so they appear in the timeline and notify users without changing ticket status.

Instructions

ANEXA arquivos locais ao chamado, dentro de um acompanhamento (aparece na timeline e notifica, como na interface). Não muda o status do chamado. Exige poder comentar nele. caminhos: arquivos em pastas liberadas (GLPIHARBOR_PASTAS_UPLOAD).

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": {
      "id": "<id>",
      "caminhos": "<caminhos>"
    },
    "name": "glpi_anexar_ao_chamado"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
textoNoSegue anexo.
privadoNo
caminhosYes
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare the generic write/open-world/non-idempotent profile; the description adds genuinely useful behavior: the attachment surfaces in the timeline, generates a notification 'como na interface', and does not change ticket status. It also discloses the permission requirement and the folder whitelist constraint on paths. It omits what the 'privado' and 'confirmado_pelo_usuario' flags change operationally, which keeps it below a 5.

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?

Front-loaded with the action verb and kept to three short, information-dense clauses with no filler. The layout is slightly awkward (mid-sentence line break, lowercase 'caminhos:' fragment), but nothing is redundant.

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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. Still, for a 5-parameter mutation tool with zero schema coverage, the undefined 'privado' and 'confirmado_pelo_usuario' parameters leave an agent guessing about visibility and confirmation behavior before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 5 parameters, so the description must carry the load and it only partially does: it explains that 'caminhos' must point to files under the allowed upload folders. 'texto', 'privado' (private vs public followup) and especially 'confirmado_pelo_usuario' (a confirmation gate defaulting to false) are left completely unexplained, which is a meaningful gap for a mutation tool.

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 ('ANEXA arquivos locais ao chamado') and clarifies the channel it uses ('dentro de um acompanhamento'), which separates it from a plain comment or a document upload. It stops short of naming the sibling tools it differs from (e.g. glpi_comentar_chamado, glpi_enviar_documento), so the agent must infer the distinction from the phrasing.

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?

Implies the use case (put local files on a ticket as a timeline followup) and gives one real precondition ('Exige poder comentar nele'), plus the reassurance that status is unchanged. However, there is no explicit when-not-to-use guidance or pointer to the alternative tool for sending an existing document versus attaching a local file.

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