Skip to main content
Glama

Excluir itens

glpi_excluir_itens
Destructive

Deletes GLPI items by type and ID list, moving trash-enabled records to the recycle bin or permanently purging them when requested; supports up to 50 IDs per call.

Instructions

EXCLUI itens de um tipo operacional. Sem purgar, tipos com lixeira (Ticket, Document...) vão para a lixeira e podem ser restaurados; com purgar=true a exclusão é DEFINITIVA. Itens sem lixeira (ITILFollowup, Ticket_User...) são apagados de vez. Sempre operação crítica: só com pedido explícito do usuário. Até 50 ids por chamada.

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>",
      "ids": "<ids>"
    },
    "name": "glpi_excluir_itens"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
purgarNo
itemtypeYes
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: it explains that without `purgar` items with a trash bin go to the trash and are recoverable, that purgar=true is definitive, and that items without a trash bin (ITILFollowup, Ticket_User) are always hard-deleted. It also discloses the 50-id per-call limit and the explicit-request precondition, which are exactly the behavioral facts an agent needs before invoking a destructive tool.

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?

Four tight sentences, front-loaded with the action and the most consequential distinction (trash vs permanent). No filler, and the capitalized DEFINITIVA correctly emphasizes the irreversible path.

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?

For a destructive bulk mutation with an output schema already covering return values, the description supplies the essential semantics: recoverability, itemtype-dependent behavior, call size limit, and the confirmation requirement. The remaining gap is the unexplained `confirmado_pelo_usuario` flag and the absence of the valid itemtype set.

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 a good job on `purgar` (default false, trash vs definitive) and on the `ids` cap (up to 50 per call), while `itemtype` is only illustrated by examples rather than enumerated. The fourth parameter, `confirmado_pelo_usuario`, is never mentioned in the description despite being an apparent safety gate, leaving a real gap.

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 ("EXCLUI") and a scoped resource ("itens de um tipo operacional"), making it immediately distinguishable from glpi_criar_itens and glpi_atualizar_itens. An agent knows this is bulk deletion by itemtype without opening 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?

Explicitly states the tool is a critical operation to be used only on the user's explicit request, which is real when-to-use guidance. It also splits the decision between soft-delete and permanent purge, though it does not name a sibling alternative (e.g. restore or list) for the non-delete case.

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