Skip to main content
Glama

Ler um item de qualquer tipo

glpi_obter_item
Read-onlyIdempotent

Retrieves any GLPI item by item type and ID, with options to expand list names, include related data such as logs or documents, and convert HTML fields to readable text.

Instructions

Lê um item de qualquer tipo pelo id. Para chamados prefira glpi_ver_chamado.

itemtype: classe do GLPI, como Ticket, User, Group, Document, KnowbaseItem, Problem, Change, ITILFollowup, TicketTask, ITILSolution, TicketValidation, Computer. expandir_nomes: troca ids de listas (categoria, local, usuário) pelos nomes. incluir: dados ligados, como ["logs"] para o histórico e ["documents"] para anexos. nomes_amigaveis: chaves estrangeiras para receber o id E o nome (em _keys_names). texto_legivel: converte o HTML dos campos de texto em texto simples.

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

Input Schema

NameRequiredDescriptionDefault
idYes
incluirNo
itemtypeYes
texto_legivelNo
expandir_nomesNo
nomes_amigaveisNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds genuine behavioral context beyond that: incluir pulls in linked data such as logs and documents, texto_legivel converts HTML to plain text, and nomes_amigaveis populates a `_keys_names` field — these change what the caller receives and are not in the schema.

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?

Two routing sentences come first, followed by a tight one-line-per-parameter glossary with no filler. Every line conveys a distinct, decision-relevant fact.

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?

An output schema exists, so return-value documentation is not the description's job, and the read-only annotation set covers the safety profile. With five of six parameters meaningfully explained and an explicit sibling routing rule, the only residual gap is the trivial `id` parameter and the partially enumerated `incluir` list.

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

Parameters4/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 burden, and it mostly does: it explains itemtype with a rich list of valid classes (Ticket, User, Group, Document, KnowbaseItem, Problem, Change, ITILFollowup, TicketTask, ITILSolution, TicketValidation, Computer) and defines incluir, expandir_nomes, nomes_amigaveis and texto_legivel with concrete examples. Minor gaps remain: `id` is undocumented and the full enum for `incluir` is only partially illustrated.

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 opens with a specific verb+resource (read any item by id, across any GLPI itemtype) and immediately names the sibling to prefer for tickets (glpi_ver_chamado). An agent can distinguish this generic reader from specialized readers like glpi_ver_chamado or glpi_ler_artigo without opening any 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?

It gives a clear routing rule: use this for arbitrary itemtypes, but prefer glpi_ver_chamado for tickets. The generic-read context is well established; the only gap is that no other explicit exclusions or preconditions are stated, which is acceptable given the tool's generic nature.

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