Skip to main content
Glama
Juris Licita MCP
by bitbusca

Calcular prazo processual

calcular_prazo
Read-onlyIdempotent

Calculates Brazilian procedural deadlines under CPC, CLT, or calendar-day rules, accounting for court holidays, recess, suspension, double deadlines, and DJEN/electronic service dates.

Instructions

Vencimento de prazo processual com passo a passo: CPC (dias úteis), CLT, dias corridos, publicação no DJEN (a data informada é a disponibilização), intimação eletrônica com ciência ficta de 10 dias, prazo em dobro, recesso e suspensão de 20/12 a 20/01, feriados forenses do tribunal e feriados municipais da comarca, cada dia pulado com a fonte. Calendários completos só nos tribunais de tribunais_cobertos; nos demais, avisa e usa os feriados nacionais. Cálculo local.

Input Schema

NameRequiredDescriptionDefault
diasYesDias do prazo, antes de dobrar (ex.: 15).
tipoNouteis (CPC art. 219, padrão), clt (CLT art. 775) ou corridos (CPP art. 798; prazos materiais).
dobroNoPrazo em dobro (CPC 183, 186, 180, 229).
eventoNopublicacao (padrão): a data é a publicação. djen: a data é a DISPONIBILIZAÇÃO no Diário de Justiça Eletrônico Nacional. intimacao_eletronica: a data é o ENVIO pelo sistema.
inicioYesData do evento (AAAA-MM-DD ou DD/MM/AAAA): publicação/intimação (padrão), disponibilização no DJEN ou envio da intimação eletrônica (veja "evento").
comarcaNoComarca ou cidade da vara, para feriado municipal (ex.: Campo Grande).
juizadoNoProcesso no Juizado Especial (sem dobro para a Fazenda).
materiaNoMatéria (muda o recesso). Padrão: pela sigla do tribunal.
consultaNoIntimação eletrônica: data em que foi aberta, se antes dos 10 dias.
tribunalNoSigla do tribunal (TJMS, TRT24, TJSP, TRF3…). Veja tribunais_cobertos.
autosEletronicosNoAutos eletrônicos (padrão true; litisconsortes não dobram no eletrônico).

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?

Annotations already mark it as read-only, idempotent, non-destructive, and local (openWorldHint false); the description goes further by explaining that computation is local, that each skipped day is reported with its source, that the DJEN date is the disponibilização, and that unsupported tribunals trigger a warning plus national-holiday fallback. That is real behavioral context beyond the annotations.

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 is front-loaded and every clause carries information; the colon list of covered regimes is efficient. The single dense sentence could be split for readability, but there is no 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 an 11-parameter, domain-heavy tool with no output schema, the description explains what is computed, what the result reports ('passo a passo', each skipped day with its source), and how coverage gaps behave. Only the shape of the returned step-by-step output and error/warning format remain under-specified.

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 baseline is 3; the description still adds interpretive meaning by tying 'dias' to the pre-doubling value, explaining the 10-day ciência ficta window, the 20/12–20/01 recess and suspension, and the tribunal/comarca holiday sources. It stops short of clarifying every parameter (e.g., how 'consulta' interacts with the 10 days), so not a 5.

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+resource: computes the due date of a procedural deadline, and enumerates exactly what regimes it handles (CPC business days, CLT, calendar days, DJEN publication, electronic intimation with 10-day fictitious notice, double deadlines, recess 20/12–20/01, court and municipal holidays). It is clearly distinguishable from simple counters like contar_dias_uteis or somar_dias_uteis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage context (procedural deadline in a specific court/comarca) is implied by the mentioned regimes, and it does warn that full calendars exist only for tribunals in tribunais_cobertos, falling back to national holidays otherwise. However, no sibling tool is named as an alternative, so an agent must infer when to prefer this over contar_dias_uteis or prazos_da_lei.

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