Skip to main content
Glama

Preencher campos extras do chamado

glpi_preencher_campos_extras

Fills custom GLPI ticket fields created by the Fields plugin using label or column values; retrieve current labels via glpi_ver_chamado and write only user-approved data.

Instructions

PREENCHE campos personalizados do chamado criados pelo plugin Fields. valores: {rótulo ou coluna: valor}. Os rótulos e os valores atuais aparecem em glpi_ver_chamado, em campos_extras. Dados pessoais (CPF, por exemplo): grave só o que o usuário pediu.

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

Input Schema

NameRequiredDescriptionDefault
idYes
valoresYes
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 the mutation profile (readOnly=false, destructive=false, idempotent=false), so the description's main added value is the privacy rule: store only the personal data the user actually requested. It does not say whether values merge with or replace existing custom fields, which matters for a non-idempotent write, and does not mention what happens when the field set does not exist.

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, front-loaded sentences with no filler, and the value format is stated up front. Minor jargon ('plugin Fields', 'campos_extras') is acceptable since it maps to the sibling tool's output.

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 privacy guidance is a nice addition. However, for a nested-object mutation tool with an unexplained confirmation boolean and no statement of overwrite/merge behavior, the definition leaves real gaps an agent must guess at.

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 has to carry the parameter meaning. It explains the 'valores' map well ({rótulo ou coluna: valor}), but the 'id' parameter (presumably the ticket id) is never identified, and 'confirmado_pelo_usuario', a default-false confirmation gate, is not explained at all — a significant gap for an agent that must decide whether to set it.

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 names a specific action and resource: filling custom ticket fields created by the Fields plugin, and gives the expected key/value shape of the data. It clearly differs from the sibling that updates standard ticket attributes, though it does not name that sibling 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?

It implies a workflow by pointing to glpi_ver_chamado/campos_extras as the place where current labels and values appear, which hints that the agent should read before writing. It never states when to choose this tool over glpi_atualizar_chamado, nor when not to use it (e.g. tickets without the Fields plugin), leaving usage largely implied.

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