Skip to main content
Glama

Better Llama — Chile, Colombia, Peru and Mexico data

Contratos y procesos de compras públicas de Colombia (SECOP II)

colombia_secop_search
Read-onlyIdempotent

Busca contratos firmados (dataset "contratos") o procesos de contratación publicados (dataset "procesos") del Estado colombiano en SECOP II, vía el Portal de Datos Abiertos datos.gov.co: texto libre, entidad compradora (nombre o NIT), NIT del proveedor, departamento, rango de fechas (firma del contrato o publicación del proceso), valor mínimo y estado. Ordena del más reciente al más antiguo y devuelve JSON compacto (entidad, objeto, modalidad, valores en COP, fechas, proveedor, enlace a SECOP). Sin clave. No incluye representantes legales, funcionarios, cuentas bancarias ni nombres o documentos de proveedores que sean personas naturales. / Search Colombia public procurement contracts and processes (SECOP II).

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": "colombia_secop_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoTexto libre (búsqueda de texto completo de Socrata), p. ej. "software", "interventoría vial".
entityNoParte del nombre de la entidad compradora, p. ej. "Alcaldía de Medellín".
offsetNoResultados a saltar (paginación).
statusNoEstado (coincidencia parcial). Contratos: p. ej. "En ejecución", "Firmado", "terminado". Procesos: p. ej. "Publicado", "Adjudicado", "Seleccionado".
toDateNoHasta (AAAA-MM-DD), inclusive.
datasetNocontratos = SECOP II Contratos Electrónicos (jbjy-vk9h); procesos = SECOP II Procesos de Contratación (p6dx-8zbt).contratos
fromDateNoDesde (AAAA-MM-DD). Contratos: fecha de firma. Procesos: fecha de publicación.
maxItemsNoMáximo de resultados a devolver (1-50). Por defecto 10.
minValueNoValor mínimo en pesos colombianos (contratos: valor del contrato; procesos: precio base).
entityNitNoNIT de la entidad compradora (solo dígitos, sin dígito de verificación).
departmentNoDepartamento de la entidad, p. ej. "Antioquia", "Bogotá", "Valle del Cauca".
supplierNitNoNIT del proveedor adjudicado (solo dígitos).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description still adds real value beyond them: no API key required, results sorted most-recent-first, a compact JSON return shape with fields named (entity, object, modality, COP values, dates, supplier, SECOP link), and explicit exclusion of personal data.

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 content is front-loaded: the verb, datasets, and filters come first, followed by sort order, return shape, auth, and privacy scope. It is dense but each clause carries information; the brief English sentence at the end is a reasonable minimal translation, though the filter enumeration partially duplicates the schema.

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?

For a 12-parameter, no-output-schema read tool, the description covers what is needed: which datasets back which enum value, how date filters differ per dataset, sort order, the fields returned in the compact JSON, that no key is needed, and the privacy exclusions. Nothing essential for a correct call is missing.

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 coverage is 100% and the parameter descriptions are detailed (formats, per-dataset date meaning, NIT-only-digits, limits), so the schema already does the heavy lifting. The description restates the available filters and clarifies that date ranges mean signing date for contracts versus publication date for processes, but adds little beyond what the schema documents.

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 names a specific verb ("Busca") and two precisely distinguished resources: signed contracts in the "contratos" dataset versus published processes in the "procesos" dataset, both from SECOP II via datos.gov.co. An agent can tell exactly what data domain this covers without opening the schema.

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?

The description gives clear context for choosing the dataset (contratos vs procesos) and states the privacy boundary — no legal representatives, officials, bank accounts, or natural-person supplier names/IDs. It doesn't spell out explicit when-not conditions or named alternatives, but the sibling catalog contains no competing Colombia procurement tool, so the practical guidance gap is small.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources