Skip to main content
Glama

obtener_sentencia_pjud

Retrieves the full, verbatim text of a Chilean PJUD ruling by document ID, including all considerations, reporting judges, and a SHA-256 integrity hash for citation verification.

Instructions

Recupera el texto ÍNTEGRO, inalterado y verbatim de una sentencia del PJUD por su 'id_documento'. Incluye todos los considerandos, vistos, ministros redactores y el hash SHA-256 de integridad fáctica.

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": {
      "id_documento": "<id_documento>"
    },
    "name": "obtener_sentencia_pjud"
  }
}

Input Schema

NameRequiredDescriptionDefault
tribunalNosuprema
id_documentoYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It adds useful content guarantees (verbatim, unaltered text including considerandos, vistos and ministros redactores, plus a SHA-256 integrity hash), but says nothing about authentication/scope, failure behavior for an invalid or foreign id, rate limits, or whether retrieval is a read-only, side-effect-free operation.

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?

Two front-loaded sentences with the resource and selector stated first, then the payload contents. Minor redundancy in stacking 'ÍNTEGRO, inalterado y verbatim' and the capitalized emphasis, which restate the same guarantee three ways.

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?

An output schema exists, so return shape need not be documented, and the description covers content completeness well. However, for a two-parameter retrieval tool the unexplained 'tribunal' selector and the absence of any error/not-found behavior leave real gaps for an agent assembling a call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate and it only partially does. It explains id_documento as the document identifier but not its format or provenance, and it is entirely silent on the 'tribunal' parameter (enum suprema/apelaciones, default suprema) — a meaningful scoping choice an agent could easily get wrong.

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 ('Recupera el texto ÍNTEGRO... de una sentencia del PJUD') and pins the selector ('por su id_documento'), so the agent knows this is a fetch-by-id rather than a search. It never names a sibling, so differentiation from buscar_jurisprudencia_pjud / buscar_sentencias_tc rests on inference from the name family.

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 phrase 'por su id_documento' signals that the tool is the retrieval step once a document id is known, presumably from a prior search. There is no explicit when-to-use, no statement of prerequisites (where to obtain id_documento), no exclusions, and no mention of when a different tool is preferable.

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