Skip to main content
Glama

Aplicar ação em massa

glpi_aplicar_acao_em_massa
Destructive

Applies a GLPI bulk action to up to 100 explicit item IDs, requiring user confirmation before executing this critical operation.

Instructions

APLICA uma ação em massa do GLPI a uma lista explícita de ids (até 100). Veja as ações com glpi_acoes_em_massa e os parâmetros com glpi_parametros_acao_em_massa. Sempre operação crítica: só com pedido explícito do usuário.

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

Input Schema

NameRequiredDescriptionDefault
idsYes
acaoYes
itemtypeYes
parametrosNo
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the description's added value is the confirmation policy (only on explicit user request) and the 100-id batch ceiling, both real behavioral constraints. It does not address atomicity/partial-failure behavior across the id list, which matters for a non-idempotent destructive batch operation.

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?

Three short sentences: the action and its cap first, then discovery pointers, then the safety constraint. No filler and nothing repeated from the annotations or title.

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?

Output schema exists, so return values need not be described, and the destructive-safety angle is covered. However, for a 5-parameter destructive batch tool at 0% schema coverage, the meanings of 'itemtype' and the 'confirmado_pelo_usuario' flag are left for the agent to infer.

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 coverage is 0%, so the description carries the burden. It clarifies ids (explicit list, max 100) and points to glpi_acoes_em_massa and glpi_parametros_acao_em_massa for 'acao' and 'parametros', but leaves 'itemtype' and 'confirmado_pelo_usuario' unexplained beyond the implicit confirmation policy.

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?

States a specific verb and resource — bulk-apply a GLPI mass action — with an explicit scope: an explicit list of ids, capped at 100. It also distinguishes itself from glpi_acoes_em_massa (list of actions) and glpi_parametros_acao_em_massa (parameters), so an agent can route without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit precondition — 'Sempre operação crítica: só com pedido explícito do usuário' — which functions as a hard when-to-use gate. It also names the two discovery siblings an agent must consult before calling, so the workflow order is unambiguous.

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