Skip to main content
Glama

Estatísticas de chamados

glpi_estatisticas_chamados
Read-onlyIdempotent

Count GLPI tickets in a date range grouped by status, type, priority, category, technician, group, requester, entity, location, origin, or month; includes overdue count and average resolution time.

Instructions

Conta os chamados de um período, agrupados por um campo, entre os que o perfil ativo enxerga. Traz também quantos estouraram o prazo e o tempo médio de solução.

desde / ate: AAAA-MM-DD (ate vazio = até hoje). data_de: qual data define o período. agrupar_por: status, tipo, prioridade, categoria, tecnico, grupo_tecnico, requerente, entidade, localizacao, origem ou mes. limite_de_chamados: teto de chamados lidos (até 10000); se o período tiver mais, a resposta avisa que a contagem é parcial.

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": {
      "desde": "<desde>"
    },
    "name": "glpi_estatisticas_chamados"
  }
}

Input Schema

NameRequiredDescriptionDefault
ateNo
desdeYes
data_deNoabertura
agrupar_porNostatus
limite_de_chamadosNo
so_dos_meus_gruposNo
so_atribuidos_a_mimNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With annotations already covering read-only/idempotent/non-destructive, the description adds genuinely new behavior: results are scoped to what the active profile can see, the limit is a hard read ceiling (up to 10000), and exceeding the period's volume yields a flagged partial count. That partial-result warning is exactly the kind of caveat an agent needs before trusting totals.

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?

Front-loaded lead sentence followed by tight per-parameter lines; nothing is padded. Minor waste in re-listing the agrupar_por enum values that the schema already constrains.

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 7-parameter aggregation tool with an output schema, the description covers the period scope, grouping dimension, visibility restriction and partial-result behavior well enough to call it correctly. The two unmentioned boolean filters are self-describing by name, which keeps this from being a blocking gap.

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 must carry the load; it does explain desde/ate format (AAAA-MM-DD, empty ate = today), what data_de selects, and restates the agrupar_por enum. However it says nothing about so_dos_meus_grupos or so_atribuidos_a_mim (2 of 7 params) and omits the 3000 default for limite_de_chamados, leaving meaningful gaps.

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?

States a specific verb and resource ('Conta os chamados de um período, agrupados por um campo') and adds the two extra outputs (prazo estourado, tempo médio de solução), which makes it clearly an aggregation tool rather than a lister. It never names the sibling search/list tool it should be preferred over, so differentiation is by inference only.

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?

Usage is implied by the aggregation wording and by the note that only tickets visible to the active profile are counted, but there is no explicit when-to-use/when-not guidance versus glpi_buscar_chamados or the bulk-action siblings. The partial-count caveat is the only real decision-support sentence.

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