Skip to main content
Glama

Calcular no Projef

projef_calcular

Submits a new Projef Web judicial calculation, applying correction, interest/Selic, and fees, then returns totals, installment breakdowns, and the official PDF link.

Instructions

Faz um novo cálculo judicial no Projef Web da JFRS: corrige as parcelas informadas, aplica juros/Selic e honorários, e devolve o identificador, o link público do PDF oficial (url_pdf), o resumo por parte, as sucumbências, o total da conta, os critérios aplicados e o demonstrativo parcela a parcela (principal, coeficiente, principal corrigido, juros, Selic % e R$, total). Cria um registro novo nos servidores da JFRS a cada chamada (guardado por 3 anos) e leva de 15 a 40 segundos. Para reabrir um cálculo já feito, use projef_recuperar.

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": {
      "criterio_correcao": "<criterio_correcao>",
      "data_atualizacao": "<data_atualizacao>",
      "partes": "<partes>"
    },
    "name": "projef_calcular"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo
reuNo
rraNoAs parcelas são Rendimentos Recebidos Acumuladamente (art. 12-A da Lei 7.713/88)
autorNo
cidadeNo
partesYesCredores, cada um com suas parcelas
operadorNoConfeccionador do cálculo
honorariosNoHonorários de sucumbência
gerar_sicarNoGerar o demonstrativo SICAR-JF4R; consulta o número do processo no eproc da 4ª Região, que substitui autor e réu pelos dados reais do processo
incluir_pdfNoAnexar também o PDF (até 90 KB); o link url_pdf vem sempre
instituicaoNo
observacoesNo
selic_ec113NoAplicar Selic a partir de 12/2021 (EC 113/21)
juros_codigoNoCódigo da taxa de juros moratórios (lista em projef_opcoes); '0' = sem juros0
incluir_textoNoIncluir o texto integral do demonstrativo
selic_citacaoNoAplicar Selic a partir da citação
numero_processoNoNúmero CNJ do processo (20 dígitos, com ou sem pontuação), opcional
data_atualizacaoYesData-base da atualização (mm/aaaa)
criterio_correcaoYesid do critério de correção monetária (lista em projef_opcoes). 3 = repetição de indébito tributário (Manual da JF, Selic); 65 = ações condenatórias em geral (Manual 2022)
juros_data_inicioNoInício dos juros (ex.: mês da citação); necessário quando há juros
percentual_acordoNoPercentual de acordo
permitir_deflacaoNoPermitir deflação do valor nominal da parcela

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Adds exactly the behavior annotations cannot express: every call creates a new record on JFRS servers retained for 3 years, and execution takes 15 to 40 seconds. It also describes the outputs (identificador, url_pdf, resumo por parte, sucumbências, total, demonstrativo parcela a parcela) even though no output schema exists.

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?

Purpose, side effects, cost and the alternative are all in three front-loaded sentences with no filler. The long return-value enumeration in the first sentence is dense but each item is informative.

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 22-parameter, non-idempotent, open-world creation tool with no output schema, the definition covers mutation semantics, latency, retention and return contents. Minor gaps remain: no mention of validation failure modes or of projef_opcoes for the criteria ids.

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 73% with rich nested descriptions and enums, so the schema carries most of the burden. The description only gestures at the input shape ('parcelas informadas', juros/Selic, honorários) without clarifying any of the 22 parameters, so it adds little beyond structured fields.

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?

States a specific verb and resource ('Faz um novo cálculo judicial no Projef Web da JFRS') and immediately enumerates the transformation performed (correção das parcelas, juros/Selic, honorários) plus the returned artifacts. It explicitly contrasts with the sibling projef_recuperar for reopening an existing calculation.

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?

Gives a clear routing rule: use this to create a calculation, use projef_recuperar to reopen one already made. It does not mention projef_opcoes as the source for the criterio_correcao/juros_codigo id lists (only the schema does), so guidance is strong but not exhaustive.

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

Deploy Server

Other Tools