Skip to main content
Glama

recurso_proteccion_generar

Generates a standardized Chilean protection appeal (recurso de protección) from case inputs, outputting editable Word, structured formats, and a consolidated PDF for filing.

Instructions

Genera y estandariza un Recurso de Protección conforme al Auto Acordado de la Corte Suprema (Acta N.° 94-2015) y OJV. Entrega el documento de trabajo en Word (.docx, editable) junto a los formatos estructurados (.md, .html, .txt, .json); el PDF consolidado (carátula OJV + anexos con marcadores TOC) es para presentación.

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": {
      "tribunal": "<tribunal>",
      "recurrente": "<recurrente>",
      "recurrido": "<recurrido>",
      "acto_lesivo": "<acto_lesivo>",
      "fecha_acto": "<fecha_acto>",
      "hechos": "<hechos>",
      "garantias": "<garantias>"
    },
    "name": "recurso_proteccion_generar"
  }
}

Input Schema

NameRequiredDescriptionDefault
anexosNoLista de anexos probatorios: [{'num': 'ANEXO N.° 1', 'title': '...', 'desc': '...', 'path': 'ruta.pdf'}]
hechosYesCronología de hechos numerados. Cada elemento puede ser texto o dict con 'texto' y 'anexo' (ej. 'Anexo 1')
oficiosNoLista de oficios solicitados bajo apercibimiento del Numeral 5.°: [{'organismo': '...', 'materia': '...'}]
tribunalYesCorte de Apelaciones competente (ej. 'Ilustrísima Corte de Apelaciones de Santiago')
garantiasYesGarantías del Art. 19 CPR invocadas (ej. ['19_1', '19_2', '19_3_5', '19_10', '19_24'])
recurridoYesDatos de la recurrida: nombre, rut (opcional o 'se desconoce'), domicilio (opcional), email (opcional), representante_legal (opcional)
fecha_actoYesFecha del acto lesivo o de su conocimiento fehaciente (formato YYYY-MM-DD) para cómputo fatal de 30 días corridos
recurrenteYesDatos del recurrente: nombre, run, domicilio, email, profesion_oficio, representado_nombre (opcional), representado_run (opcional)
acto_lesivoYesDescripción precisa del acto u omisión arbitrario e ilegal impugnado
compilar_pdfNoSi es True, compila automáticamente el PDF principal y el dossier consolidado con anexos y marcadores TOC
quinto_otrosiNoQuinto otrosí especial opcional: {'titulo': '...', 'contenido': '...'}
petitorio_concretoNoPeticiones concretas específicas (opcional)
fecha_interposicionNoFecha de interposición (opcional, por defecto hoy YYYY-MM-DD)
orden_de_no_innovarNoConfiguración de la ONI: solicita (bool), fumus_boni_iuris, periculum_in_mora, medida_suspension
estatutos_especialesNoEstatutos protectores especiales (ej. ['ninez_21430', 'tea_21545', 'deporte_19712_ds22', 'denuncia_cpp'])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.14.0
    • addedInput schema / properties / hechos / items / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "anexo": {
      +        "description": "Anexo que lo acredita (ej. 'Anexo 1')",
      +        "type": "string"
      +      },
      +      "texto": {
      +        "description": "Relato del hecho",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / hechos / items / type
      Removed value: -[
      -  "string",
      -  "object"
      -]
    • addedInput schema / properties / recurrente / properties
      Added value: +{
      +  "domicilio": {
      +    "description": "Domicilio del recurrente",
      +    "type": "string"
      +  },
      +  "email": {
      +    "description": "Correo electrónico para notificaciones",
      +    "type": "string"
      +  },
      +  "nombre": {
      +    "description": "Nombre completo del recurrente",
      +    "type": "string"
      +  },
      +  "profesion_oficio": {
      +    "description": "Profesión u oficio",
      +    "type": "string"
      +  },
      +  "representado_nombre": {
      +    "description": "Nombre de la persona representada (opcional)",
      +    "type": "string"
      +  },
      +  "representado_run": {
      +    "description": "RUN de la persona representada (opcional)",
      +    "type": "string"
      +  },
      +  "run": {
      +    "description": "RUN del recurrente (ej. 12.345.678-9)",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / recurrido / properties
      Added value: +{
      +  "domicilio": {
      +    "description": "Domicilio de la recurrida (opcional)",
      +    "type": "string"
      +  },
      +  "email": {
      +    "description": "Correo electrónico de la recurrida (opcional)",
      +    "type": "string"
      +  },
      +  "nombre": {
      +    "description": "Nombre o razón social de la recurrida",
      +    "type": "string"
      +  },
      +  "representante_legal": {
      +    "description": "Representante legal (opcional)",
      +    "type": "string"
      +  },
      +  "rut": {
      +    "description": "RUT de la recurrida, o 'se desconoce'",
      +    "type": "string"
      +  }
      +}
  2. Addedv1.5.11

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false. The description adds useful behavioral context beyond those annotations: it produces an editable .docx working document plus structured formats, and a consolidated PDF intended for presentation. It does not state where files are stored or whether existing files are overwritten, but the annotations lower the disclosure burden.

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 two sentences and front-loads the core purpose before listing output formats. It is efficient, though the dense list of formats and acronyms (OJV, TOC) makes it slightly less scannable.

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 complex 15-parameter tool with no output schema, the description usefully names the output artifacts and their intended uses. The rich input schema covers parameter details, and annotations cover safety, but the description still leaves out how generated files are returned or located.

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%, so all 15 parameters are already documented in the input schema. The description does not add parameter-level meaning beyond the schema; baseline 3 is appropriate when the schema carries the full parameter burden.

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 states a specific verb and resource: 'Genera y estandariza un Recurso de Protección'. It also anchors the output to a precise legal standard (Auto Acordado de la Corte Suprema, Acta N.° 94-2015) and lists the generated artifacts, making the tool's purpose immediately clear.

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

Usage Guidelines2/5

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

The description gives no explicit when-to-use or when-not-to-use guidance, nor does it name an alternative such as the sibling generic document generator. Usage is only inferable from the tool's purpose, which is insufficient for routing between related tools.

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