Skip to main content
Glama

Responder pedido de aprovação

glpi_responder_aprovacao

Approve or reject a GLPI approval request, requiring a comment when rejecting; use the request ID from the ticket timeline or pending dashboard.

Instructions

RESPONDE um pedido de aprovação feito ao usuário (ou a um grupo dele). Recusar exige comentário. O id do pedido aparece na timeline de glpi_ver_chamado e os pendentes em glpi_meu_painel.

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": {
      "validacao_id": "<validacao_id>",
      "aprovar": "<aprovar>"
    },
    "name": "glpi_responder_aprovacao"
  }
}

Input Schema

NameRequiredDescriptionDefault
aprovarYes
comentarioNo
validacao_idYes
confirmado_pelo_usuarioNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true), so the bar is lower. The description nevertheless adds a real business rule not present in the structured data: 'Recusar exige comentário', a conditional requirement the schema does not enforce. It stops short of saying what happens on a re-response or whether the confirmation parameter gates execution.

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, front-loaded with the action, then the refusal rule, then the discovery pointers. No filler and nothing that repeats the schema or annotations.

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 bounded mutation tool with an output schema and existing annotations, the description covers action, prerequisite lookup, and the one conditional constraint an agent could otherwise get wrong. The unexplained confirmation flag keeps it from being fully complete.

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 description coverage is 0%, so the description carries the full burden. It adds meaning for two of four parameters by tying comentario to refusals and validacao_id to the timeline/painel sources, but 'confirmado_pelo_usuario' is never explained and aprovar is only implied, leaving a genuine gap on a parameter whose semantics are not self-evident.

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?

The description names a specific verb and resource ('RESPONDE um pedido de aprovação') and constrains the actor to the requesting user or their group, which cleanly separates it from the sibling that creates approval requests (glpi_pedir_aprovacao) and from glpi_responder_solucao.

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?

It tells the agent how to obtain the required id ('aparece na timeline de glpi_ver_chamado') and where to find pending items ('os pendentes em glpi_meu_painel'), routing the agent to the right sibling tools. There is no explicit when-not condition, but the preconditions for the call are clear.

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