Skip to main content
Glama

Documentos necessários ao cálculo (pedido ao usuário)

calculo_documentos_necessarios
Read-onlyIdempotent

Determine the documents a PJe-Calc labor calculation requires, check whether received files cover all months, and generate a ready-to-send request for missing items.

Instructions

PRIMEIRO PASSO de todo cálculo. Diz quais documentos o caso exige (sentença, decisões posteriores, registro, TRCT, holerites de todo o período, cartões de ponto, recibos de férias e 13º, extrato do FGTS, norma coletiva...), confere se os recebidos cobrem todos os meses, lista as perguntas que só o usuário responde e devolve um texto pronto para pedir o que falta ("pedido"). Use com a especificação (mesmo parcial, com contrato.documentos e contrato.coleta) ou, antes dela, com respostas rápidas: parcelas deferidas, datas e documentos já recebidos. Repita a cada rodada até "completa": true. Veja pjecalc://docs/modulos/documentos.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
admissaoNoSem especificação: data de admissão.
demissaoNoSem especificação: data de saída.
parcelasNoSem especificação: parcelas deferidas (ex.: ["HORAS EXTRAS 50%", "FGTS + 40%"]).
arquivo_jsonNoAlternativa: caminho de um arquivo .json com a especificação.
especificacaoNoEspecificação do cálculo (JSON). Formato em calculo_modelo_json.
documentos_recebidosNoSem especificação: documentos já recebidos.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.0-mcp.13

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so safety is covered. The description adds genuinely useful behavior beyond that: it is iterative ('repita a cada rodada'), emits a request text ('pedido'), and signals completion via 'completa: true', plus points to a doc resource.

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?

Dense but front-loaded with the key role ('PRIMEIRO PASSO'), then scope, then usage modes, then the loop condition. Every sentence carries weight, though the parenthetical document enumeration is somewhat long.

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 6-parameter, nested-object tool with no output schema, the description explains the return (a 'pedido' text) and the completion signal ('completa': true). It is largely complete, though the exact shape of the returned request is only indirectly described.

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 baseline is 3. The description goes further by grouping parameters by mode: admissao/demissao/parcelas/documentos_recebidos apply 'sem especificação' while especificacao/arquivo_json are the alternative path, clarifying inter-parameter relationships the schema only hints at.

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 'PRIMEIRO PASSO de todo cálculo' and then states the concrete verb+resource: it determines which documents a case requires, checks month coverage, lists user-only questions, and returns a ready 'pedido' text. This clearly positions it against document-validation and planning siblings like catalogo_validar_documentos and calculo_plano_interpretacao.

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 explicitly states two entry modes (with a specification, 'mesmo parcial', or before it using quick answers such as parcelas deferidas and dates) and the loop condition ('Repita a cada rodada até completa: true'). It gives clear context but names no explicit sibling alternatives or when-not-to-use cases.

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