Skip to main content
Glama

pjud_analizar_sentencia

Read-only

Analyze Chilean judicial rulings under Art. 170 CPC, process single or batch cases, download official PDF/DOCX, convert to Markdown, and rank relevant considerandos by topic for citation.

Instructions

Desglosa estructuralmente sentencias judiciales chilenas conforme al Art. 170 CPC. Soporta fallos individuales o lotes (roles múltiples/línea jurisprudencial), descarga oficial en PDF/DOCX desde juris.pjud.cl, conversión a Markdown canónico, ingesta en LegalGraphify y ranking/citación de considerandos relevantes por tema.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pjud_analizar_sentencia"
  }
}

Input Schema

NameRequiredDescriptionDefault
rolNoRol de la causa judicial a buscar y analizar en vivo (ej. '14076-2026', '504-2026')
corteNoTribunal a consultar: 'cs' (Corte Suprema) o 'ca' (Cortes de Apelaciones)cs
rolesNoLista de Roles de causas para análisis en lote y construcción de líneas jurisprudenciales (ej. ['14076-2026', '45123-2021'])
tema_relevanteNoTema o punto controvertido del caso para rankear y citar el considerando pertinente (ej. 'descuento de AFC', 'confianza legítima')
texto_sentenciaNoTexto completo o extracto de una sentencia judicial (opcional si se especifica 'rol' o 'roles')
descargar_formatoNoFormato de archivo oficial a descargar desde juris.pjud.cl ('pdf' o 'docx')
convertir_a_md_y_graficarNoSi es True, convierte a Markdown canónico (sentencia2md) e ingesta en LegalGraphify

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.14.0
    • addedInput schema / properties / convertir_a_md_y_graficar
      Added value: +{
      +  "default": true,
      +  "description": "Si es True, convierte a Markdown canónico (sentencia2md) e ingesta en LegalGraphify",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / corte
      Added value: +{
      +  "default": "cs",
      +  "description": "Tribunal a consultar: 'cs' (Corte Suprema) o 'ca' (Cortes de Apelaciones)",
      +  "enum": [
      +    "cs",
      +    "ca"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / descargar_formato
      Added value: +{
      +  "description": "Formato de archivo oficial a descargar desde juris.pjud.cl ('pdf' o 'docx')",
      +  "enum": [
      +    "pdf",
      +    "docx"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / rol
      Added value: +{
      +  "description": "Rol de la causa judicial a buscar y analizar en vivo (ej. '14076-2026', '504-2026')",
      +  "type": "string"
      +}
    • addedInput schema / properties / roles
      Added value: +{
      +  "description": "Lista de Roles de causas para análisis en lote y construcción de líneas jurisprudenciales (ej. ['14076-2026', '45123-2021'])",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / tema_relevante
      Added value: +{
      +  "description": "Tema o punto controvertido del caso para rankear y citar el considerando pertinente (ej. 'descuento de AFC', 'confianza legítima')",
      +  "type": "string"
      +}
    • changedInput schema / properties / texto_sentencia / description
      Previous value: -"Texto completo o extracto de la sentencia judicial"New value: +"Texto completo o extracto de una sentencia judicial (opcional si se especifica 'rol' o 'roles')"
    • removedInput schema / required
      Removed value: -[
      -  "texto_sentencia"
      -]
  2. First observedv1.5.1

TDQS

B3.2/5.0
Behavior2/5

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

The description does add real behavioral context beyond annotations: it downloads official files from juris.pjud.cl, converts them to canonical Markdown, and ingests them into LegalGraphify with convertir_a_md_y_graficar defaulting to true. Those steps create files and write to a graph, which sits in tension with the declared readOnlyHint=true / destructiveHint=false profile; the openWorldHint=true is at least consistent with live retrieval from juris.pjud.cl. No mention of auth, rate limits, or failure behavior for unavailable roles.

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 dense sentence that front-loads the core action (structural breakdown under Art. 170 CPC) and then lists capabilities in a scannable order. It is compact with no filler, though packing five distinct behaviors into one sentence makes it read more like a feature list than a routing instruction.

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

Completeness3/5

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

For a seven-parameter, multi-mode tool with no output schema and zero required parameters, the description should clarify what the returned 'desglose estructural' contains and how input modes are resolved. It conveys the pipeline (download, conversion, ingestion, ranking) but not the resulting structure an agent will receive, nor the fallback when no rol, roles or texto_sentencia is provided.

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 every parameter is already documented in the schema, and the description largely restates it ('roles múltiples/línea jurisprudencial', 'ranking/citación de considerandos relevantes por tema'). It adds no new syntax, format or precedence rules, and notably does not say what happens when rol, roles and texto_sentencia are all supplied or all omitted despite all seven parameters being optional.

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?

States a specific verb and resource ('Desglosa estructuralmente sentencias judiciales chilenas conforme al Art. 170 CPC') and enumerates the concrete capabilities: official PDF/DOCX download, Markdown conversion, LegalGraphify ingestion, and considerando ranking. An agent can tell this is a structural-analysis tool, but nothing in the text distinguishes it from siblings such as pjud_search_jurisprudencia (retrieval) or pjud_interpretar_proveido (auto interpretation), which is the main clarity gap.

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 description implies context implicitly by stating it 'Soporta fallos individuales o lotes (roles múltiples/línea jurisprudencial)', which hints when to prefer rol vs roles. However it never states when NOT to use it, nor routes the agent to a search or interpretation sibling for cases it does not cover, leaving the choice between PJUD tools to inference.

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