Skip to main content
Glama

Ler vários itens de uma vez

glpi_obter_varios
Read-onlyIdempotent

Retrieves multiple GLPI items of different types in one call, returning an all-or-nothing result if any requested item is missing or inaccessible.

Instructions

Lê vários itens de tipos diferentes numa só chamada. itens: [{"itemtype": "Ticket", "items_id": 10}, {"itemtype": "User", "items_id": 2}]. Se um deles não existir ou não for visível, a chamada inteira falha.

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": {
      "itens": "<itens>"
    },
    "name": "glpi_obter_varios"
  }
}

Input Schema

NameRequiredDescriptionDefault
itensYes
expandir_nomesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and open-world. The description adds the genuinely important all-or-nothing semantics — if any item is missing or invisible the entire call fails — which is exactly the non-obvious risk an agent needs before choosing a batch call.

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 lines: purpose first, payload example second, failure condition last. The example is the most compact way to convey an untyped nested payload, and no sentence is wasted.

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 failure semantics are a strong addition. Still missing for a batch read of arbitrary item types: the meaning of expandir_nomes, whether itemtype values are case-sensitive or constrained, and any cap on array size.

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% and the array is typed only as additionalProperties:true, so the description does real work by showing the {itemtype, items_id} payload shape via example. However, the expandir_nomes parameter (default true) is never mentioned, so half the parameters remain unexplained.

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 — reading several items of different types in a single call — and the word 'vários' implicitly contrasts it with the single-item sibling glpi_obter_item. It never names an alternative explicitly, but an agent can tell what it does without opening the schema.

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?

Usage context is only implied: the batch nature suggests use when multiple heterogeneous items are needed at once. The all-or-nothing failure note is effectively a warning against batching uncertain IDs, but it is presented as behavior rather than as a when-to-use/when-not rule, and no alternative tool is named.

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