Skip to main content
Glama

calcular_plazo_procesal

Read-only

Calculates exact Chilean procedural deadlines by applying the chosen computation regime and excluding official holidays, so users can determine the correct due date for filings.

Instructions

Calcula determinísticamente el vencimiento exacto de plazos en Chile descontando feriados legales oficiales (Art. 66 CPC lunes-sábado, Arts. 168/435 CT con suspensión DT hasta 90 días, Art. 25 Ley 19.880 lunes-viernes, o corridos).

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": {
      "fecha_notificacion": "<fecha_notificacion>",
      "plazo_dias": "<plazo_dias>"
    },
    "name": "calcular_plazo_procesal"
  }
}

Input Schema

NameRequiredDescriptionDefault
regimenNoRégimen de cómputo ('judicial_cpc', 'laboral', 'administrativo', 'corridos')judicial_cpc
plazo_diasYesNúmero de días del plazo legal
fecha_referenciaNoFecha de evaluación YYYY-MM-DD (opcional; defecto hoy)
dias_suspension_dtNoDías de suspensión por reclamo ante la DT en sede laboral (Art. 168 CT)
fecha_notificacionYesFecha de notificación o actuación base (YYYY-MM-DD)
feriados_adicionalesNoLista opcional de feriados locales/especiales YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description nonetheless adds real behavioral substance: the computation is deterministic, holidays are subtracted, day-counting differs by regime (Monday–Saturday under Art. 66 CPC, Monday–Friday under Art. 25 Ley 19.880, DT suspension up to 90 days under Arts. 168/435 CT). It does not describe output shape or failure behavior on malformed dates.

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?

A single front-loaded sentence: verb, scope, then the regime enumeration in parentheses. Every clause carries information and nothing is redundant, though the dense parenthetical of statute citations is harder to parse than a short bulleted mapping would be.

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 six-parameter legal-date calculator with full schema coverage and no output schema, the description supplies the domain model that matters most: what is being computed, on which counting basis, and what gets subtracted. Remaining gaps are minor — no statement that the result is a single date, and no note on date-format or timezone assumptions for 'fecha_referencia' versus 'fecha_notificacion'.

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 description coverage is 100%, so the baseline is 3; the description earns above that by tying the 'regimen' values to concrete legal rules and day-counting bases, which lets the agent pick the right enum string without guessing. It also contextualizes 'dias_suspension_dt' via the stated 90-day cap under Art. 168 CT.

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 description names a specific verb and resource ('Calcula ... el vencimiento exacto de plazos en Chile') and bounds the domain to Chilean procedural deadlines with statutory holiday deduction. An agent can immediately tell this is a date-computation tool, distinct in substance from quantified-claim or severance calculators, though no sibling is explicitly named or excluded.

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?

Usage is only implied: the tool is for computing deadline expirations, and the enumerated regimes ('judicial_cpc', 'laboral', 'administrativo', 'corridos') hint at which computation model applies. There is no explicit statement of when to choose this tool over alternatives, nor when-not to use it (e.g., non-Chilean jurisdictions or non-procedural timeframes).

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