Skip to main content
Glama

Alterar itens de qualquer tipo

glpi_atualizar_itens

Updates one or multiple GLPI operational items by ID using only changed fields, with user confirmation before writing; use ticket-specific updates for tickets.

Instructions

ALTERA um ou vários itens de um tipo operacional. Grava no GLPI em nome do usuário: só a pedido dele, e o servidor pede confirmação. Para chamados prefira glpi_atualizar_chamado.

dados: só os campos que mudam. Um item: informe id. Vários: lista em que cada objeto leva o seu "id" (lote é operação crítica). A caixa de confirmação mostra o valor atual de cada campo, quando o perfil consegue ler o item.

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": {
      "itemtype": "<itemtype>",
      "dados": "<dados>"
    },
    "name": "glpi_atualizar_itens"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
dadosYes
itemtypeYes
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing that writes are attributed to the acting user, that the server demands confirmation, that the confirmation dialog shows current field values, and that this preview is conditional on the profile being able to read the item. Batch being called out as critical is useful risk context. It stops short of saying what happens on partial batch failure or whether changes are reversible.

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 verb and the sibling routing are front-loaded, and the single-vs-batch rule is stated compactly. The line-broken layout is slightly harder to scan than a tight paragraph, but no sentence is filler.

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 the mutation's safety profile is covered by annotations plus the confirmation discussion. Still missing for a batch-capable write tool: valid itemtype values, atomicity/partial-failure behavior, and any permission requirements for the write itself rather than the preview.

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?

With 0% schema description coverage the description must carry parameter meaning, and it does explain the key ones: `dados` holds only changed fields, single updates pass `id`, batch updates pass a list where each object carries its own 'id'. However `itemtype` format/valid values and the `confirmado_pelo_usuario` flag are only implied by the confirmation narrative, not defined.

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 ('ALTERA um ou vários itens de um tipo operacional') and explicitly routes tickets to the sibling glpi_atualizar_chamado, so an agent can separate this from the ticket-specific updater. The phrase 'tipo operacional' stays abstract — the concrete itemtype values are never named — which keeps it just below a fully self-sufficient statement.

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 clear usage context: act only at the user's request, expect server-side confirmation, and prefer glpi_atualizar_chamado for tickets. It also flags batch mode as a critical operation. It does not address other plausible alternatives (mass actions, task updates) or state when not to use it, so it is clear but not exhaustive.

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