compare_periodos
Compare two date ranges side-by-side over the same filters. Returns each period's total metrics plus absolute and percentage deltas.
Instructions
Compare two date ranges side-by-side over the same filters — answers questions like "did Jun/2024 (electoral year) differ from Jun/2025 in bid volumes?".
Wraps two aggregate_licitacoes_por_periodo calls and returns each period's total metrics plus absolute and percentage deltas. Use granularidade-style buckets implicitly = "ano" for the comparison (one bucket per period, summed).
When esfera filter or value metrics are requested, the underlying tool paginates internally — be conservative with range size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periodoA | Yes | ||
| periodoB | Yes | ||
| modalidades | No | Modality codes. Default: [6, 8, 9]. | |
| uf | No | Two-letter state code. | |
| codigoMunicipioIbge | No | ||
| cnpjOrgao | No | Procuring agency CNPJ. | |
| esfera | No | Filter by sphere. | |
| metricas | No |