Skip to main content
Glama

Relatório do cálculo liquidado

calculo_relatorio
Idempotent

Generates PJe-Calc reports for liquidated calculations, returning complete or selected sections as HTML text or saving them as PDF files.

Instructions

Gera o relatório do PJe-Calc (Operações > Imprimir) de um cálculo já liquidado. Padrão: o relatório COMPLETO, com as seções que se aplicam ao cálculo (resumo, dados, faltas e férias, histórico salarial, cartão de ponto mensal e diário, demonstrativo das verbas com base, divisor, multiplicador e quantidade, juros, FGTS, contribuição social, eSocial, IR, multas, honorários, custas, justificativa). Formato HTML devolve o texto (e os totais extraídos do Resumo); formato PDF grava o arquivo. Tipos avulsos: RESUMO_DE_CALCULO, DADOS_DO_CALCULO, DEMONSTRATIVO_DE_CALCULO, APURACAO_DE_JUROS, DEMONSTRATIVO_FGTS, DEMONSTRATIVO_INSS, DEMONSTRATIVO_IRPF, DEMONSTRATIVO_HONORARIO, DEMONSTRATIVO_CUSTAS, DEMONSTRATIVO_MULTA, HISTORICO_SALARIAL, FALTAS_E_FERIAS, JUSTIFICATIVA, RESUMO_PRECATORIO, DEMONSTRATIVO_ESOCIAL_INSS_FGTS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tiposNoPadrão: ["COMPLETO"] (as seções que se aplicam ao cálculo). Ou a lista de seções avulsas.
formatoNoHTML devolve o texto; PDF grava o arquivo (padrão HTML).
id_calculoYesNúmero do cálculo no PJe-Calc.
arquivo_pdfNoDestino do PDF (formato PDF).
max_caracteresNoCorta o texto devolvido (padrão 20000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.16.0-mcp.14
    • addedInput schema / properties / formato / description
      Added value: +"HTML devolve o texto; PDF grava o arquivo (padrão HTML)."
    • addedInput schema / properties / id_calculo / description
      Added value: +"Número do cálculo no PJe-Calc."
  2. First observedv2.16.0-mcp.13

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety and idempotency, and the description adds important behavior: default full report, HTML returning text plus extracted totals, and PDF writing a file. It does not discuss error cases or what happens if the calculation is not liquidated, but the main side effect is disclosed.

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?

The description is front-loaded with purpose and default behavior, then lists report sections and standalone types. It is dense and long, but most of the length is useful domain detail rather than filler.

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 report-generation tool with no output schema, it sufficiently explains defaults, output formats, file-writing behavior, and available report types. Minor gaps remain around the exact returned total structure and failure modes, but an agent can invoke it 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 coverage is 100%, so the schema documents the parameters, but the description adds meaningful detail by explaining the default COMPLETO value and enumerating the available standalone report types beyond the schema's generic string array. It does not add much about max_caracteres or arquivo_pdf beyond what the schema already says.

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 states a specific verb and resource: generate the PJe-Calc report for an already-liquidated calculation. The 'já liquidado' constraint distinguishes it from calculation-mutation and liquidation siblings, though no sibling is named explicitly.

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 clearly explains the default COMPLETO behavior, the standalone report types, and when HTML versus PDF is appropriate. It does not explicitly exclude sibling tools such as calculo_ler_pjc or calculo_exportar_pjc, so usage routing is clear but not exhaustive.

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