Skip to main content
Glama

Buscar usuários

glpi_buscar_usuarios
Read-onlyIdempotent

Search active GLPI users by login, name, or surname to retrieve IDs for requester, observer, technician, or approver roles; requires user-read permission.

Instructions

Procura usuários ativos por login, nome ou sobrenome e devolve o id, usado para requerente, observador, técnico ou aprovador. Exige um perfil que leia usuários.

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": {
      "texto": "<texto>"
    },
    "name": "glpi_buscar_usuarios"
  }
}

Input Schema

NameRequiredDescriptionDefault
textoYes
limiteNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description still adds two non-obvious traits beyond them: results are restricted to active users, and the call requires a profile with user-read permission. It omits any mention of the result cap implied by 'limite' (default 20) or what happens when the cap is hit, which keeps it short of a 5.

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 sentences, zero filler, with the core purpose and the returned id front-loaded before the access prerequisite. Every clause carries new information.

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 lookup with an output schema and full annotations, the definition covers purpose, return value, scope (active users) and authorization requirement. The remaining gaps are edge-case behaviors — result-cap handling and empty-result behavior — which are minor against a tool this simple.

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 bare 'texto' and 'limite' titles must be compensated by prose. The description usefully explains that 'texto' matches login, first name or surname, but says nothing about match type (partial vs exact, case/accent sensitivity) and leaves 'limite' entirely undefined as a maximum-result cap.

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 ('Procura'), a specific resource ('usuários ativos'), the searchable fields (login, nome, sobrenome), the return value (o id) and the downstream role of that id (requerente, observador, técnico ou aprovador). Nothing else in the sibling list searches users, so an agent can recognize this as the user-lookup tool and the ticket-actor resolver 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?

Provides a real prerequisite ('Exige um perfil que leia usuários') and implies the use case by naming the actor roles the returned id feeds into. However it never says when to prefer this over other lookups, never mentions that only active users are matched (so inactive accounts cannot be found here), and gives no guidance on refining a query that returns nothing.

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