Skip to main content
Glama

Campos pesquisáveis de um tipo

glpi_opcoes_de_busca
Read-onlyIdempotent

Lists searchable GLPI fields for an item type and returns the field numbers used by glpi_buscar in campo and colunas; filter by partial field name.

Instructions

Lista os campos pesquisáveis de um tipo: o número de cada campo é o que glpi_buscar usa em campo e em colunas. filtro: parte do nome do campo. Os números dos campos de chamado mais usados estão no recurso glpi://referencia.

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

Input Schema

NameRequiredDescriptionDefault
filtroNo
itemtypeYes

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 cover the safety profile (readOnly, idempotent, non-destructive), so the description's added value is the semantic disclosure that returned numbers are identifiers consumed elsewhere, plus the scoping advice for `filtro` and the pointer to a reference resource. That is meaningful context beyond the annotations. It stops short of saying how large the result set might be or whether the listing is complete versus truncated.

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?

Compact and front-loaded: the operation, then the meaning of its output, then the parameter hint, then the shortcut resource. No filler, and each sentence carries information the agent can act on.

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 two-parameter read-only lookup with an output schema and full annotation coverage, the description supplies nearly everything needed: purpose, output semantics, filter behavior, and an escape hatch via glpi://referencia. The missing piece is what values `itemtype` accepts, which is the one thing that could block a first correct call.

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 does well on `filtro` ("parte do nome do campo" — substring match on field name), but `itemtype` is only gestured at as "de um tipo" with no hint of admissible values (e.g. Ticket, User) even though it is the sole required parameter and has no enum in the schema. Half the parameters are effectively undocumented.

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?

States a specific verb and resource ("Lista os campos pesquisáveis de um tipo") and, crucially, explains what the output means: each field's number is what glpi_buscar consumes in `campo` and `colunas`. This distinguishes it cleanly from the sibling glpi_buscar by positioning it as the prerequisite lookup.

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?

The workflow is clear from the text: call this to obtain field numbers before using glpi_buscar, and use `filtro` to narrow by partial field name. It even routes the agent to the glpi://referencia resource for common ticket fields instead of enumerating them here. No explicit when-not-to-use statement or named exclusions, so 4 rather than 5.

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