Skip to main content
Glama

Adicionar envolvido ao chamado

glpi_adicionar_ator

Add a user, group, or supplier to an existing GLPI ticket as requester, observer, or technician without changing other actors. Specify exactly one actor ID and optionally suppress notification.

Instructions

ADICIONA uma pessoa, um grupo ou um fornecedor a um chamado como requerente, observador ou técnico, sem mexer nos demais. Informe exatamente um entre usuario_id, grupo_id e fornecedor_id. Para o próprio usuário virar observador: papel="observador" e usuario_id = o id dele. Atribuir técnico a chamado Novo muda o status para Em atendimento. O envolvido novo recebe e-mail do GLPI, salvo com notificar=false.

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>",
      "papel": "<papel>"
    },
    "name": "glpi_adicionar_ator"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
papelYes
grupo_idNo
notificarNo
usuario_idNo
fornecedor_idNo
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false, idempotent=false, openWorld=true) by disclosing two real side effects: assigning a technician to a 'Novo' ticket flips the status to 'Em atendimento', and the new actor receives a GLPI e-mail unless notificar=false. It also states the non-destructive scope ('sem mexer nos demais'), which the annotations only imply.

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?

Five tight sentences, front-loaded with the verb and resource, then constraints, then special cases and side effects in order of operational importance. No redundant restatement of the title or schema.

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 not be described, and the mutation's key side effects are covered. Remaining gaps are the meaning of 'id' and 'confirmado_pelo_usuario', plus what happens if more than one actor id is supplied despite the 'exactly one' rule.

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

Parameters4/5

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

With 0% schema description coverage the description has to carry the load, and it does explain the mutual exclusivity of usuario_id/grupo_id/fornecedor_id, the papel enum values, and notificar's effect. However, the 'id' parameter (the ticket) and 'confirmado_pelo_usuario' are never explained anywhere, leaving two of seven params undocumented.

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?

Opens with a specific verb in caps plus the resource and the three role variants ('ADICIONA uma pessoa, um grupo ou um fornecedor a um chamado como requerente, observador ou técnico'), and adds the scope limit 'sem mexer nos demais'. An agent can tell this apart from removal or generic ticket-update siblings without reading the 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?

Gives concrete invocation rules: exactly one of usuario_id/grupo_id/fornecedor_id, and the self-observer recipe (papel="observador" with usuario_id set to the user's own id). It stops short of naming siblings such as the remove-actor or ticket-opening tools, so the when-not guidance is implicit rather than explicit.

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