Skip to main content
Glama

Quem está conectado

glpi_sessao
Read-onlyIdempotent

Shows the active GLPI session's user, profile, entity, and groups to diagnose permission errors; use it first to confirm which profile controls available actions.

Instructions

Mostra quem está conectado: usuário, perfil ativo, perfis disponíveis, entidade ativa e grupos do usuário. Use primeiro quando aparecer um erro de permissão: o que pode ser visto e feito depende do perfil ativo (troque com glpi_trocar_perfil).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "glpi_sessao"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered structurally. The description adds the non-obvious causal context that what can be seen and done depends on the active profile, which is genuine value beyond the annotations. It stops short of further detail (e.g. whether it reflects cached or freshly fetched session state), so it is strong but not maximal.

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 short sentences, front-loaded with what is returned and then with when to reach for it. Every clause carries information; nothing restates the title or the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no parameters, a full output schema, and rich annotations, the definition supplies everything an agent needs: purpose, contents, and the diagnostic moment to invoke it. No gap remains that the description, rather than the schema, would have to fill.

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?

The tool takes zero parameters, so the baseline is 4 and there is nothing for the description to disambiguate. Listed fields are outputs, not inputs, so they do not create parameter ambiguity.

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?

The description names a specific resource (the current session) and enumerates exactly what is returned: user, active profile, available profiles, active entity, and user groups. It also distinguishes itself from the sibling that mutates this state (glpi_trocar_perfil), so an agent can tell the two apart without opening either schema.

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

Usage Guidelines5/5

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

It states an explicit trigger — 'Use first when a permission error appears' — which gives the agent a concrete diagnostic entry point. It also names the alternative for the related action ('troque com glpi_trocar_perfil'), covering both when to use this tool and which sibling handles the adjacent case.

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