Skip to main content
Glama

Pedir aprovação

glpi_pedir_aprovacao

Request approval for a GLPI ticket from a specific user or group; specify the approver and optional comment so they receive an email to validate the request.

Instructions

PEDE aprovação (validação) do chamado a um usuário ou a um grupo. Informe usuario_id OU grupo_id. O aprovador recebe e-mail do GLPI.

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

Input Schema

NameRequiredDescriptionDefault
idYes
grupo_idNo
comentarioNo
usuario_idNo
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and idempotentHint=false; the description's note that the approver receives a GLPI e-mail usefully explains the open-world side effect. It does not say whether a prior pending approval is replaced, what happens if both or neither identifier is supplied, or what distinguishes confirmed state.

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?

Three short sentences, front-loaded with the action and the target constraint, with no filler. The awkward line break and mixed register are cosmetic rather than wasteful.

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 no explanation, and the mutation side effect is partially disclosed. Still, three of five parameters are undocumented and eligibility/idempotence semantics for a non-idempotent write are absent, so the definition is thinner than the tool's complexity warrants.

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

Parameters2/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 covers usuario_id and grupo_id (adding the valuable XOR constraint). The required 'id', plus 'comentario' and especially 'confirmado_pelo_usuario', are given no meaning anywhere, leaving an agent to guess at a boolean that likely changes behavior.

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?

The description states a specific verb and resource: request approval/validation of a ticket, directed at a user or a group. That is clear enough to separate it from glpi_responder_aprovacao (responding) by implication, but the description never names the counterpart explicitly.

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

Usage Guidelines3/5

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

The 'Informe usuario_id OU grupo_id' sentence gives a hard usage constraint (exactly one target), which is genuinely helpful. However, there is no guidance on when a ticket is eligible for approval, what state it must be in, or what to do if approval was already requested.

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