Skip to main content
Glama

Trocar o perfil ativo

glpi_trocar_perfil
Read-onlyIdempotent

Switch the active session profile by name or ID to control what the current GLPI session can view and do in subsequent calls; this does not write data.

Instructions

Troca o perfil ativo da sessão, pelo nome ou pelo id (veja glpi_sessao). O perfil define o que pode ser visto e feito: por exemplo, quem abriu um chamado costuma comentar nele pelo perfil de autoatendimento, e tratar chamados pelo perfil técnico. Não grava nada no GLPI. A troca vale para as próximas chamadas.

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": {
      "perfil": "<perfil>"
    },
    "name": "glpi_trocar_perfil"
  }
}

Input Schema

NameRequiredDescriptionDefault
perfilYes

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 readOnlyHint, idempotentHint and destructiveHint=false, and the description reinforces this with 'Não grava nada no GLPI', clarifying that the read-only hint refers to GLPI data rather than to session state. The sentence 'A troca vale para as próximas chamadas' is genuinely valuable stateful context not conveyed by any annotation, since the effect persists across subsequent tool calls. It does not say what happens on an invalid or unauthorized profile name.

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?

The action is front-loaded in the first clause, and the following sentences each add a distinct fact (accepted identifier forms, the meaning of the profile, no writes, persistence). The self-service/technical example is illustrative rather than essential, so the text is slightly longer than strictly required but not wasteful.

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?

With an output schema present, return values need no explanation, and the description covers what changes, how long it lasts, and that no GLPI records are touched. The remaining gap is failure behavior and authorization scope for the requested profile, which matters for a state-changing session operation.

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 coverage is 0% for the single 'perfil' parameter, so the description must carry the meaning, and it does add that either a name or an id is accepted and where to look them up (glpi_sessao). It stops short of format examples or listing which profiles the caller may switch to, so some ambiguity remains about what a valid value looks like.

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 gives a specific verb and resource ('Troca o perfil ativo da sessão') and scopes it to the session, with the accepted identifier forms (name or id). It also points to glpi_sessao as the place to discover profile names/ids, but it never distinguishes itself from the similarly named sibling glpi_trocar_entidade (entity switching), leaving a plausible confusion unresolved.

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 explains concretely why an agent would switch, contrasting the self-service profile (commenting on one's own ticket) with the technical profile (handling tickets), which is exactly the context needed to decide to call it. There is no explicit 'do not use when' or named alternative for the entity-switch case, so it stops short of a full routing rule.

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