Skip to main content
Glama

Gerar arquivo .PJC

calculo_gerar_pjc

Generate a .PJC calculation file from a JSON specification without opening PJe-Calc, ready to import into PJe-Calc 2.16.x via Cálculo > Importar.

Instructions

Gera o arquivo .PJC (formato oficial de exportação/importação do PJe-Calc) a partir da especificação. Não precisa do PJe-Calc aberto. O arquivo pode ser importado em qualquer PJe-Calc 2.16.x (Cálculo > Importar). Depois da importação é preciso clicar em Verbas > Regerar (ou usar calculo_importar_pjc, que faz isso). Com "apuracaoCartaoPonto" grava também .mcp.json com os passos pós-importação (apurar o cartão e ligar as verbas às colunas), que calculo_importar_pjc executa.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
destinoNoArquivo .PJC ou pasta de destino (padrão: pjecalc-mcp-skill/saida).
arquivo_jsonNoAlternativa: caminho de um arquivo .json com a especificação.
especificacaoNoEspecificação do cálculo (JSON). Formato em calculo_modelo_json.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.0-mcp.13

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, openWorldHint=false, idempotentHint=false, destructiveHint=false, so the safety profile is already covered. The description adds real behavioral context beyond that: it works offline without PJe-Calc running, and when 'apuracaoCartaoPonto' is present it also writes a <arquivo>.mcp.json sidecar with post-import steps. It does not state overwrite behavior for the destino path.

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?

Four dense sentences, front-loaded with what the tool produces, then workflow and side-effect details. Each sentence carries information, though the import/regerar instructions could be tightened slightly.

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?

With no output schema and nested objects, the description compensates by describing the produced artifacts (.PJC file and optional .mcp.json) and the required post-import workflow. It is nearly complete, missing only overwrite/error behavior for the destination path.

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 coverage is 100% and each parameter has its own description, so the schema already carries the load. The description mentions the 'apuracaoCartaoPonto' behavior (a field inside the specification rather than a top-level parameter) and the identity of the specification source, adding only marginal semantics.

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?

The description opens with a specific verb+resource: it generates the .PJC file (the official PJe-Calc export/import format) from a specification. It also distinguishes itself from siblings by explaining that it does not require PJe-Calc to be open and by naming calculo_importar_pjc as the downstream tool.

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?

Clear context is given: no need for PJe-Calc to be open, the file imports into any PJe-Calc 2.16.x, and after importing you must use Verbas > Regerar or run calculo_importar_pjc. It names the alternative tool and the condition that selects it, though it never explicitly contrasts against calculo_criar or calculo_exportar_pjc.

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