Skip to main content
Glama

Próceres · escritos judiciales de España: papeleta, demanda y recursos

El último día de un plazo, con los festivos de la sede del juzgado

computar_plazo
Read-only

Cuenta un plazo como lo cuenta un juzgado y devuelve su último día, con el calendario que de verdad tiene delante el órgano: los festivos nacionales, los de su comunidad autónoma y las dos fiestas locales del municipio de su sede (art. 182.1 LOPJ), más la regla del mes de agosto y de la Navidad y la prórroga al primer día hábil (art. 185.2 LOPJ). Elige el orden con orden: la regla general de las actuaciones judiciales (agosto y Navidad inhábiles), el despido y las modalidades del art. 43.4 LRJS (agosto y Navidad HÁBILES, y por eso consumen el plazo) o un plazo sustantivo de prescripción o caducidad (de fecha a fecha). Devuelve el último día y por qué: el primer día que cuenta, los ajustes, los festivos que caen dentro y lo que el calendario no ha podido aplicar, que se dice en vez de callarse. Sirve para cualquier plazo procesal o sustantivo: no es el plazo de un escrito concreto (para eso está plazo_escrito_procesal). No pide ni devuelve datos personales: el nombre, el DNI, el domicilio y el contacto NO están entre sus campos (el escrito los deja como huecos entre corchetes para que los rellene quien lo presenta). No le pidas esos datos y no los escribas en la llamada.

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": {
      "inicio": "<inicio>",
      "valor": "<valor>",
      "unidad": "<unidad>",
      "tipo": "<tipo>",
      "orden": "<orden>"
    },
    "name": "computar_plazo"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccaaNoLa comunidad autónoma de la sede del órgano, para descontar sus festivos.
tipoYesCon «dias»: si son días hábiles (sin inhábiles) o naturales (todos). Con «meses» no cambia la cuenta: es de fecha a fecha.
ordenYesEl orden con el que se cuenta: «procesal» (regla general: agosto y Navidad inhábiles), «social» (despido y art. 43.4 LRJS: agosto y Navidad hábiles), «contencioso» (en agosto no corre ningún plazo de la LJCA, art. 128.2: también los dos meses del art. 46.1) o «sustantivo» (prescripción o caducidad: de fecha a fecha).
valorYesLa duración del plazo: un entero positivo (20, 15, 5…).
inicioYesLa fecha del hito que abre el plazo (notificación, cese, despido), en AAAA-MM-DD. El día del hito NO se cuenta.
unidadYesSi se cuenta en días («dias») o de fecha a fecha («meses»).
municipioNoEl municipio de la sede (el del partido judicial), para descontar sus dos fiestas locales.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / orden / description
      Previous value: -"El orden con el que se cuenta: «procesal» (regla general: agosto y Navidad inhábiles), «social» (despido y art. 43.4 LRJS: agosto y Navidad hábiles) o «sustantivo» (prescripción o caducidad: de fecha a fecha)."New value: +"El orden con el que se cuenta: «procesal» (regla general: agosto y Navidad inhábiles), «social» (despido y art. 43.4 LRJS: agosto y Navidad hábiles), «contencioso» (en agosto no corre ningún plazo de la LJCA, art. 128.2: también los dos meses del art. 46.1) o «sustantivo» (prescripción o caducidad: de fecha a fecha)."
    • changedInput schema / properties / orden / enum
      Previous value: -[
      -  "procesal",
      -  "social",
      -  "sustantivo"
      -]New value: +[
      +  "procesal",
      +  "social",
      +  "contencioso",
      +  "sustantivo"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, it discloses what the tool returns (the last day, the first counted day, adjustments, applicable holidays, and anything the calendar could not apply) and explicitly says limitations are reported rather than hidden. It also clearly states that personal data is neither requested nor returned and instructs the caller not to include it.

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?

The description is front-loaded with the purpose and output behavior, and most sentences carry relevant legal or operational information. It is somewhat long and repeats the privacy point across several sentences, but the length is largely justified by the complexity of deadline computation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a complex legal calculation with no output schema, the description explains the return behavior, the calendar logic, the limitation reporting, and the privacy boundary. An agent has enough information to invoke the tool correctly without needing additional contextual explanation.

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 description coverage is 100%, and the schema already documents all seven parameters and four enums in detail. The description reinforces the legal meaning of `orden` and mentions that August/Christmas holidays consume the deadline in the social order, but most parameter semantics remain schema-driven rather than adding new operational detail.

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 names a specific operation (computing a deadline's final day) and clearly distinguishes it from the sibling `plazo_escrito_procesal`, explicitly saying it is not for a concrete filing deadline. An agent can tell exactly what the tool does from the first sentence.

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

Usage Guidelines5/5

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

It states when to use the tool (any procedural or substantive deadline), when not to use it (`plazo_escrito_procesal` for a specific filing), and explains how to choose among the `orden` alternatives with their legal consequences. The usage conditions are explicit rather than implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources