Skip to main content
Glama

Comentar no chamado

glpi_comentar_chamado

Adds a follow-up comment to a GLPI ticket, optionally with attachments, private visibility, or pending status, and controls whether the comment reopens the ticket.

Instructions

ADICIONA um acompanhamento (comentário) ao chamado, opcionalmente com anexos.

texto: texto simples ou Markdown básico (listas, negrito, código, tabelas). privado: visível só para quem pode ver itens privados (em geral, técnicos). colocar_em_pendente: o chamado vai para Pendente (motivo_pendencia_id é opcional). manter_status: impede que o comentário reabra o chamado. Sem isso, comentário de requerente em chamado pendente, solucionado ou fechado o reabre (e RECUSA a solução). anexos: caminhos de arquivos locais, em pastas liberadas. Para aprovar ou recusar uma solução, use glpi_responder_solucao.

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>",
      "texto": "<texto>"
    },
    "name": "glpi_comentar_chamado"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
textoYes
anexosNo
privadoNo
notificarNo
manter_statusNo
colocar_em_pendenteNo
motivo_pendencia_idNo
confirmado_pelo_usuarioNo
marcar_como_levado_em_contaNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare this is a non-read-only, non-destructive, open-world write, so the safety profile is covered. Beyond that, the description adds genuinely important behavior: a requester comment on a pending, solved, or closed ticket reopens it and rejects the solution unless manter_status is set, and 'privado' limits visibility to those who can see private items. Those are real state-transition side effects worth crediting, but several parameters (notificar, confirmado_pelo_usuario, marcar_como_levado_em_conta) carry unexplained behavior for a mutation tool.

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 operation is front-loaded in the first line and the rest is a tight parameter-by-parameter list with concrete examples of allowed Markdown. Every line carries information, though the trailing redirection to glpi_responder_solucao sits at the end where it is easier to miss than a leading exclusion would be.

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?

An output schema exists, so return values need no explanation, and the description covers the risky status side effects that matter most. For a 10-parameter mutation tool, the missing semantics for notificar and the two confirmation flags are the remaining gap, but the core invocation path (id + texto, optional attachments, status handling) is fully described.

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 0%, so the description must carry parameter meaning, and it only partly does. It explains texto (plain text or basic Markdown), privado (visibility), colocar_em_pendente with motivo_pendencia_id as optional, manter_status (prevents reopening), and anexos (local paths in permitted folders), but leaves id, notificar, confirmado_pelo_usuario, and marcar_como_levado_em_conta undefined. Half the surface, including a confirmation-style flag, is undocumented in both schema and description.

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 opens with a specific verb and resource ('ADICIONA um acompanhamento (comentário) ao chamado') plus the optional attachment scope. It also names the sibling it is not for ('Para aprovar ou recusar uma solução, use glpi_responder_solucao'), so an agent can distinguish it from glpi_responder_solucao without opening any schema.

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 gives an explicit boundary case with an alternative: approving or rejecting a solution belongs to glpi_responder_solucao. It also frames the choice between a plain comment, a comment that moves the ticket to Pendente, and one that preserves status. It does not address how this differs from glpi_atualizar_chamado or glpi_anexar_ao_chamado, so the routing guidance is good but not exhaustive.

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