Skip to main content
Glama
leomc06

mcp-teste-llm2

by leomc06

Resumo de tickets por cliente

resumo_tickets_por_cliente

Group tickets by customer/requester to show counts and percentages, sorted high to low, with optional status, area, department, operator, priority, and date filters (top 20 default).

Instructions

Agrupa os tickets (chamados) por cliente/solicitante (contact_name) e informa a quantidade e o percentual em cada um (ordenado do maior pro menor), com filtros opcionais por status, área, departamento, operador, prioridade e período de abertura (dataInicio/dataFim). Diferente das outras dimensões (status/área/prioridade/operador/departamento), cliente não é um catálogo pequeno e fechado, por isso o resumo já vem limitado aos 20 primeiros por padrão (ajustável via limite).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
areaNo
ordemNo
limiteNo
statusNo
dataFimNo
operadorNo
dataInicioNo
prioridadeNo
departamentoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it discloses meaningful behavior: results are sorted by volume, and the summary is capped at 20 clients by default because client is not a small closed catalog (adjustable via limite). It does not cover permissions, rate limits, or the exact return shape, but the rationale for the cap is unusually informative.

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 dense sentences with the core grouping behavior front-loaded followed by the filter list and the limit caveat. Every clause carries information; nothing is repeated from the schema or wasted.

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?

For a 9-parameter aggregation tool with no output schema and no annotations, the description covers the operation, the returned metrics, ordering, the parameter set, and the default-limit behavior. An agent has what it needs to call this correctly.

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 description coverage is 0%, so the description must compensate, and it names every filter parameter (status, área, departamento, operador, prioridade, dataInicio/dataFim) plus limite and the ordering behavior. It lacks format detail (e.g. the YYYY-MM-DD pattern for dates), so it falls short of a full 5.

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?

It states a precise verb and resource (group tickets by client/requester via contact_name) and describes the output (count and percentage per client, ordered descending). It explicitly distinguishes itself from the sibling resumo_* tools that aggregate on status/area/priority/operator/department.

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 that the tool produces an aggregated per-client summary with optional filters, and contrasts it against the other 'dimensions' summarized by sibling tools. However, it never explicitly states when to prefer this over listar_tickets or buscar_ticket_por_numero; the routing is implied rather than spelled out.

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