Skip to main content
Glama

Foto de um usuário

glpi_foto_usuario
Read-onlyIdempotent

Downloads a GLPI user's profile photo to the downloads folder if available, so AI agents can retrieve user images using the user ID.

Instructions

Baixa a foto de perfil de um usuário (se houver) para a pasta de downloads.

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": {
      "usuario_id": "<usuario_id>"
    },
    "name": "glpi_foto_usuario"
  }
}

Input Schema

NameRequiredDescriptionDefault
usuario_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description usefully adds the local side effect (a file written to the downloads folder) and the possibility that no photo exists, but says nothing about the resulting filename, overwrite behavior, or what happens on failure.

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?

A single front-loaded sentence with the action first and the destination second; no filler. It is minimal but does not sacrifice clarity for brevity.

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?

The tool is simple (one parameter) and has an output schema, so return values need no explanation. However, for a download tool the description leaves open where the ID comes from and what the agent should expect when no photo exists, which are relevant for correct invocation.

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% and the single parameter usuario_id carries no description or enum, so the description must compensate. It only says the ID refers to 'um usuário' without clarifying the ID source/format or whether it is a GLPI internal ID.

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 verb and resource ('Baixa a foto de perfil de um usuário') plus the destination ('para a pasta de downloads'), which clearly separates it from generic search or document tools. It stops short of explicitly distinguishing itself from siblings like glpi_baixar_documento or glpi_buscar_usuarios.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus alternatives, nor any prerequisite such as how to obtain the usuario_id (e.g., via glpi_buscar_usuarios). The parenthetical '(se houver)' hints at a conditional case but gives no actionable rule.

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