Skip to main content
Glama
Winthor Análises MCP

Winthor Análises MCP

comparar_periodo

Read-onlyIdempotent

Compares sales, purchases, and revenue for a period against the same period in up to five prior years, with fair day-level cutoff for unfinished periods, optionally grouped by product or supplier.

Instructions

Compara vendas, compras e faturamento de um período com o mesmo período de anos anteriores.

Ex.: inicio="2025-11-01", fim="2025-11-30", anos_anteriores=3 compara novembro de 2025 com novembro de 2024, 2023 e 2022. Se o período ainda não terminou, todos os anos são cortados no mesmo dia para comparar de forma justa. agrupar_por="produto" ou "fornecedor" mostra os maiores itens (até limite) ano a ano. anos_anteriores vai de 1 a 5.

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": {
      "inicio": "<inicio>",
      "fim": "<fim>"
    },
    "name": "comparar_periodo"
  }
}

Input Schema

NameRequiredDescriptionDefault
fimYes
inicioYes
limiteNo
agrupar_porNototal
indicadoresNo
anos_anterioresNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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, destructiveHint=false and openWorldHint=false, so the description rightly spends its words on behavior the annotations cannot express: incomplete periods are truncated to the same day across all years for a fair comparison, and grouping returns the top items capped at `limite`. It does not describe the comparison output itself (percentages vs. absolute deltas), which would complete the behavioral picture.

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?

Four short paragraphs, front-loaded with the purpose, then the example, then the edge-case behavior, then the parameter ranges. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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

Completeness3/5

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

With 6 parameters, no output schema and no documented return shape, the definition leaves the agent guessing what a comparison result looks like (per-year rows? deltas? aggregated totals?). The input side is well covered, but for a read-only analytical tool the missing return-shape hint is a meaningful leftover gap.

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 has to carry the parameter burden and largely does: it supplies a concrete date format for inicio/fim, states the years range as 'anos_anteriores vai de 1 a 5', and explains agrupar_por semantics and the role of `limite`. The one real gap is `indicadores` — its values are only implied by the opening sentence, and the null default (all indicators) is never explained.

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 first sentence names a specific verb and three concrete resources (vendas, compras, faturamento) and defines the comparison target (same period in previous years), which is enough for an agent to know exactly what this does. It never names a sibling (e.g. sazonalidade) to delineate the boundary, so it stops short of a 5.

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?

The worked example ('inicio="2025-11-01", fim="2025-11-30", anos_anteriores=3') shows the intended usage pattern, and the agrupar_por sentence indicates when to reach for grouping (to see top items per year). There is no explicit when-not guidance or reference to alternative tools, so it is clear context without exclusions.

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