Skip to main content
Glama

texto_completo

Retrieve the full text of a SPIJ legal norm or jurisprudence as plain text, with offset and max_chars pagination, and an option to get the last characters for judicial decisions.

Instructions

Devuelve el TEXTO COMPLETO de una norma o jurisprudencia del SPIJ.

Ruta robusta: obtiene el documento word del SPIJ (ruta que incluye el acervo completo de jurisprudencia) y devuelve texto plano. Si esa ruta falla, usa el texto del detalle.

Args: id: identificador del SPIJ, ej 'H1352213' (lo dan buscar_*). offset: desde que caracter del texto empezar (0 = inicio). max_chars: maximo de caracteres a devolver en esta llamada (0 = usa el limite por defecto). Si hay mas texto, 'siguiente_offset' indica por donde continuar. desde_final: si es True, devuelve los ULTIMOS max_chars caracteres (en sentencias judiciales la decision 'RESUELVE' esta al final; combinado con max_chars=3000 la lees directo).

Devuelve: ok, id, url_web, codigoNorma, fechaPublicacion, dispositivoLegal, texto (texto plano), total_caracteres, texto_truncado, siguiente_offset (si hay mas; None con desde_final).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
offsetNo
max_charsNo
desde_finalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the primary route (documento word), the fallback route (texto del detalle), truncation behavior with siguiente_offset, and that desde_final returns the tail. It omits any note on permissions, rate limits, or failure modes beyond the word/detalle fallback.

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?

Front-loaded with the core purpose, then structured Args/Devuelve sections that each earn their place. Slightly verbose in the route explanation, but no sentence is pure filler.

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?

With no output schema and no annotations, the description enumerates every return field (ok, id, url_web, codigoNorma, fechaPublicacion, dispositivoLegal, texto, total_caracteres, texto_truncado, siguiente_offset) and explains pagination end-to-end. An agent has everything needed to call and consume this reliably.

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

Parameters5/5

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

Schema coverage is 0%, so the description must fully document the four parameters — and it does: id format with an example, offset as start character, max_chars with 0 = default and its link to siguiente_offset, and desde_final with the reviewing-decision rationale. This fully compensates for the empty schema descriptions.

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+resource: returns the FULL TEXT of a norm or jurisprudence from SPIJ, which is clearly more than a summary. It distinguishes itself from the search siblings by noting the 'id' comes from buscar_*, but it never contrasts itself with closer siblings like detalle_norma or estructura_norma, leaving that boundary implicit.

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

Usage Guidelines4/5

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

Clear context: use it after buscar_* to fetch an id and retrieve the whole document. It also gives a concrete usage tip (combinar desde_final=True con max_chars=3000 para leer el RESUELVE de una sentencia). No explicit when-not guidance or statement about when detalle_norma would be preferable.

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