Skip to main content
Glama
callcenter-kpi-mcp

callcenter-kpi-mcp

by jojao115

CSAT por operador

csat_por_operador
Read-only

Compare average CSAT scores and satisfied-response percentages per operator over a date range, filtering out operators with too few responses so averages stay reliable.

Instructions

Nota média de satisfação (CSAT, 1 a 5) e % de satisfeitos por operador num período. Ignora quem teve poucas respostas, para a média não enganar.

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": "csat_por_operador"
  }
}

Input Schema

NameRequiredDescriptionDefault
ordemNoPadrão: melhores.melhores
limiteNoMáximo de linhas na resposta. Padrão: 20.
fila_idNoFiltra uma fila (suporte, financeiro, comercial). Os ids saem de listar_empresas.
data_fimNoÚltimo dia, incluído, AAAA-MM-DD. Padrão: ontem.
empresa_idNoFiltra uma empresa. Sem ele, soma todas. Os ids saem de listar_empresas.
data_inicioNoPrimeiro dia, AAAA-MM-DD (fuso de São Paulo). Padrão: 7 dias antes de data_fim.
minimo_respostasNoRespostas mínimas para o operador entrar na lista. Padrão: 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one genuinely non-obvious behavioral trait — that operators with too few responses are silently excluded so the average isn't misleading — but says nothing about ordering effects, pagination, or what a row looks like beyond the two metrics.

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, metric first and the exclusion caveat second, with the rationale ('para a média não enganar') packed into the same clause. No filler or repetition.

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 read-only aggregate with 7 fully documented, all-optional parameters and no nested objects, the description plus schema covers what an agent needs to call it correctly, and the return content (média e % por operador) is stated even without an output schema. Only the tie-in to sibling tools is missing.

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 100%, so every parameter (ordem, limite, empresa_id, fila_id, data_inicio, data_fim, minimo_respostas) is already documented in the schema, including defaults and id provenance. The description only gestures at the period and the low-volume cutoff, adding no format, unit, or interaction detail beyond the schema; baseline 3 applies.

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?

Names a specific metric pair (média de CSAT 1–5 e % de satisfeitos), the unit of analysis (por operador) and the time scoping (num período) — an agent knows exactly what it gets. It does not, however, distinguish itself from the sibling ranking_operadores, which sounds like it could answer a similar question.

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 only implied through the metric definition: an agent infers it should call this when it wants satisfaction broken down by operator. There is no explicit when-to-use, no when-not-to-use, and no pointer to an alternative such as ranking_operadores or atendimento_detalhe.

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