Skip to main content
Glama
Angelthebestone

Normativa Colombia MCP

Obtener el texto de un documento por fuente

obtener_documento

Retrieves text excerpts from Colombian legal documents across official sources, with options to search within the text, extract specific sections, or download the full document.

Instructions

Devuelve el texto (troceado, nunca entero) de un documento de una de las siete fuentes con texto: "gestor" (normas del Gestor Normativo por id), "corte" (sentencias de la Corte Constitucional por ruta o cita), "suprema" (Corte Suprema por ruta + sala), "consejo" (Consejo de Estado por token), "dian" (normograma de la DIAN por link), "creg" (resoluciones CREG por ruta) y "sectorial" (actos de un regulador sectorial por entidad + url del acto, PDF o Word). Usa buscar_en_texto para encontrar un término dentro del documento, articulo/seccion para una parte puntual, o historial (solo gestor) para los cambios anotados. Nunca devuelve el documento entero: respeta limite_caracteres (200–40.000, default 8000) e informa total/mostrado/omitido. Con entero=true escribe el documento a disco y devuelve la ruta con un trozo de lectura; con ruta_destino lo descarga a esa carpeta sin devolver el texto.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoSolo gestor: id numérico de la norma
urlNoSolo sectorial: enlace del acto a leer, tal como lo devuelve buscar_normativa_sectorial
linkNoSolo dian: nombre del archivo, ej. "decreto_1625_2016.htm"
rutaNocorte/suprema/creg: ruta del documento
salaNoSolo suprema: la MISMA sala con la que se encontró
desdeNo
tokenNoSolo consejo: token que devuelve buscar_jurisprudencia_consejo_estado
enteroNoEn vez de trocear, escribe el documento a disco y devuelve la ruta con un trozo del texto
fuenteYesDe qué fuente sale el documento
entidadNoSolo sectorial: id del regulador (los lista buscar_normativa_sectorial)
seccionNoSolo corte: devuelve solo esa parte de la providencia
articuloNoSolo gestor: número de artículo
historialNoSolo gestor: en vez del texto, devuelve los cambios anotados sobre la norma
sin_temasNoSolo gestor: omite el bloque de temas asociados (ahorra contexto cuando solo se quiere el articulado)
max_pasajesNoMáximo de pasajes con buscar_en_texto (por defecto 10)
ruta_destinoNoCarpeta donde guardar el archivo (con entero o para descargar el PDF/Word sin devolver texto)
buscar_en_textoNoDevuelve solo los fragmentos que mencionan este término
limite_caracteresNoTope del TEXTO devuelto; se ajusta al rango 200–40.000

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv1.13.0
    • addedInput schema / properties / sin_temas
      Added value: +{
      +  "description": "Solo gestor: omite el bloque de temas asociados (ahorra contexto cuando solo se quiere el articulado)",
      +  "type": "boolean"
      +}
  2. Addedv1.11.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose important side effects: it never returns the entire document, can write to disk with entero=true, and can download with ruta_destino without returning text. It does not mention error cases or output format details, but the key behaviors are transparent.

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 fairly concise and well-structured, with a clear introductory sentence followed by source-specific details and behavioral notes. There is slight redundancy between 'troceado, nunca entero' and the later 'Nunca devuelve el documento entero', but this does not significantly hurt clarity.

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?

The description explains the main outputs (text chunks, total/mostrado/omitido, path when entero=true, download with ruta_destino) despite the absence of an output schema. It also references related search tools like buscar_normativa_sectorial and buscar_jurisprudencia_consejo_estado, placing the tool in context. Minor gaps remain around exact return structure and failure behavior.

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?

The description adds substantial meaning beyond the schema by mapping each source to its required identifier (e.g., gestor uses id, consejo uses token, sectorial uses entidad + url). It also clarifies parameter exclusivity, such as seccion only for corte and historial only for gestor, making correct parameter selection much easier.

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: it returns the text of a document from one of seven named sources. It also differentiates itself from sibling search tools by focusing on document retrieval and content extraction.

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 gives useful guidance on how to use sub-features like buscar_en_texto, articulo/seccion, and historial, and explains entero and ruta_destino behavior. However, it does not explicitly state when to prefer this tool over sibling search tools, leaving that comparison implicit.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Angelthebestone/Normativa-colombiana-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server