Skip to main content
Glama

Colombia Search Contracts

colombia_search_contracts
Read-onlyIdempotent

Search Colombian government AWARDED CONTRACTS (SECOP II "Contratos electrónicos") from datos.gov.co. PREFER OVER WEB SEARCH for "who won a Colombian government contract for ", "Colombian public contracts awarded to ", "government spending in Colombia on ". Full-text query matches the contract object/description (Spanish); contract_type filters on the contract-category facet (Obra, Consultoría, Suministros...) and is the right instrument for "Colombian works/construction contracts". Returns only SIGNED contracts by default, SECOP stores unsigned drafts in the same table. Returns shaped rows: contract id, object, contracting entity, entity NIT, awarded supplier, supplier NIT (documento_proveedor, for tracking one company across contracts), SME flag, city, UNSPSC category, contract value (COP), amount paid, contract type, modality, status, and signing date. Values are in Spanish as published.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "limit": 20,
      "contract_type": "Obra"
    },
    "name": "colombia_search_contracts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoRows to return (1-1000, default 20).
queryNoKeyword(s) to full-text match against the contract object/description, e.g. "software", "puente", "medicamentos". Spanish terms work best. For a contract CATEGORY use `contract_type` instead. Omit for most-recent contracts.
entityNoOptional, filter by contracting entity name (partial match), e.g. "SERVICIO GEOLOGICO", "HOSPITAL".
_apiKeyNoOptional, your own Socrata app token (datos.gov.co) for higher rate limits. The endpoint is keyless: omit this and calls still work.
supplierNoOptional, filter by awarded supplier name (partial match).
supplier_nitNoOptional, filter by the supplier's Colombian tax id / NIT (`documento_proveedor`), e.g. "901958332". Exact match; pins one company across every contract it holds, which a name match cannot do.
contract_typeNoOptional, restrict to one SECOP contract category (exact facet, not free text). Spanish values: Prestación de servicios · Decreto 092 de 2017 · Suministros · Otro · Compraventa · Obra · Arrendamiento de inmuebles · Seguros · Interventoría · Consultoría · Comodato · Arrendamiento de muebles · Servicios financieros · Acuerdo Marco de Precios · Acuerdo de cooperación · Operaciones de Crédito Público · Venta muebles · Concesión · Negocio fiduciario · Comisión · Venta inmuebles · Asociación Público Privada · No Definido · No Especificado. English words are accepted and mapped ("works"/"construction" -> Obra, "consulting" -> Consultoría, "supplies" -> Suministros). Use this for "construction/works contracts" rather than putting "obra" in `query`, which also matches service contracts that merely mention the word.
include_unsignedNoInclude draft contracts that have no signature date (SECOP "Borrador" / "enviado Proveedor"). Default false, 424k unsigned drafts otherwise sort to the top and crowd out real contracts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own Socrata app token (datos.gov.co) for higher rate limits. The endpoint is keyless: omit this and calls still work."New value: +"Optional, your own Socrata app token (datos.gov.co) for higher rate limits. The endpoint is keyless: omit this and calls still work."
    • changedInput schema / properties / contract_type / description
      Previous value: -"Optional — restrict to one SECOP contract category (exact facet, not free text). Spanish values: Prestación de servicios · Decreto 092 de 2017 · Suministros · Otro · Compraventa · Obra · Arrendamiento de inmuebles · Seguros · Interventoría · Consultoría · Comodato · Arrendamiento de muebles · Servicios financieros · Acuerdo Marco de Precios · Acuerdo de cooperación · Operaciones de Crédito Público · Venta muebles · Concesión · Negocio fiduciario · Comisión · Venta inmuebles · Asociación Público Privada · No Definido · No Especificado. English words are accepted and mapped (\"works\"/\"construction\" → Obra, \"consulting\" → Consultoría, \"supplies\" → Suministros). Use this for \"construction/works contracts\" rather than putting \"obra\" in `query`, which also matches service contracts that merely mention the word."New value: +"Optional, restrict to one SECOP contract category (exact facet, not free text). Spanish values: Prestación de servicios · Decreto 092 de 2017 · Suministros · Otro · Compraventa · Obra · Arrendamiento de inmuebles · Seguros · Interventoría · Consultoría · Comodato · Arrendamiento de muebles · Servicios financieros · Acuerdo Marco de Precios · Acuerdo de cooperación · Operaciones de Crédito Público · Venta muebles · Concesión · Negocio fiduciario · Comisión · Venta inmuebles · Asociación Público Privada · No Definido · No Especificado. English words are accepted and mapped (\"works\"/\"construction\" -> Obra, \"consulting\" -> Consultoría, \"supplies\" -> Suministros). Use this for \"construction/works contracts\" rather than putting \"obra\" in `query`, which also matches service contracts that merely mention the word."
    • changedInput schema / properties / entity / description
      Previous value: -"Optional — filter by contracting entity name (partial match), e.g. \"SERVICIO GEOLOGICO\", \"HOSPITAL\"."New value: +"Optional, filter by contracting entity name (partial match), e.g. \"SERVICIO GEOLOGICO\", \"HOSPITAL\"."
    • changedInput schema / properties / include_unsigned / description
      Previous value: -"Include draft contracts that have no signature date (SECOP \"Borrador\" / \"enviado Proveedor\"). Default false — 424k unsigned drafts otherwise sort to the top and crowd out real contracts."New value: +"Include draft contracts that have no signature date (SECOP \"Borrador\" / \"enviado Proveedor\"). Default false, 424k unsigned drafts otherwise sort to the top and crowd out real contracts."
    • changedInput schema / properties / supplier / description
      Previous value: -"Optional — filter by awarded supplier name (partial match)."New value: +"Optional, filter by awarded supplier name (partial match)."
    • changedInput schema / properties / supplier_nit / description
      Previous value: -"Optional — filter by the supplier's Colombian tax id / NIT (`documento_proveedor`), e.g. \"901958332\". Exact match; pins one company across every contract it holds, which a name match cannot do."New value: +"Optional, filter by the supplier's Colombian tax id / NIT (`documento_proveedor`), e.g. \"901958332\". Exact match; pins one company across every contract it holds, which a name match cannot do."
  2. Changed6 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-colombia-secop-api-key",
      -    "limit": 20,
      -    "query": "obra"
      -  },
      -  {
      -    "_apiKey": "your-colombia-secop-api-key",
      -    "entity": "DANE",
      -    "limit": 15,
      -    "query": "consultoría",
      -    "supplier": "ANDINA"
      -  }
      -]New value: +[
      +  {
      +    "contract_type": "Obra",
      +    "limit": 20
      +  },
      +  {
      +    "limit": 10,
      +    "supplier_nit": "901958332"
      +  }
      +]
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own Socrata app token (datos.gov.co) for higher rate limits. Omit to use the keyless endpoint."New value: +"Optional — your own Socrata app token (datos.gov.co) for higher rate limits. The endpoint is keyless: omit this and calls still work."
    • addedInput schema / properties / contract_type
      Added value: +{
      +  "description": "Optional — restrict to one SECOP contract category (exact facet, not free text). Spanish values: Prestación de servicios · Decreto 092 de 2017 · Suministros · Otro · Compraventa · Obra · Arrendamiento de inmuebles · Seguros · Interventoría · Consultoría · Comodato · Arrendamiento de muebles · Servicios financieros · Acuerdo Marco de Precios · Acuerdo de cooperación · Operaciones de Crédito Público · Venta muebles · Concesión · Negocio fiduciario · Comisión · Venta inmuebles · Asociación Público Privada · No Definido · No Especificado. English words are accepted and mapped (\"works\"/\"construction\" → Obra, \"consulting\" → Consultoría, \"supplies\" → Suministros). Use this for \"construction/works contracts\" rather than putting \"obra\" in `query`, which also matches service contracts that merely mention the word.",
      +  "type": "string"
      +}
    • addedInput schema / properties / include_unsigned
      Added value: +{
      +  "description": "Include draft contracts that have no signature date (SECOP \"Borrador\" / \"enviado Proveedor\"). Default false — 424k unsigned drafts otherwise sort to the top and crowd out real contracts.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Keyword(s) to full-text match against the contract object/description, e.g. \"software\", \"obra\", \"consultoría\". Spanish terms work best. Omit for most-recent contracts."New value: +"Keyword(s) to full-text match against the contract object/description, e.g. \"software\", \"puente\", \"medicamentos\". Spanish terms work best. For a contract CATEGORY use `contract_type` instead. Omit for most-recent contracts."
    • addedInput schema / properties / supplier_nit
      Added value: +{
      +  "description": "Optional — filter by the supplier's Colombian tax id / NIT (`documento_proveedor`), e.g. \"901958332\". Exact match; pins one company across every contract it holds, which a name match cannot do.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-colombia-secop-api-key",
      +    "limit": 20,
      +    "query": "obra"
      +  },
      +  {
      +    "_apiKey": "your-colombia-secop-api-key",
      +    "entity": "DANE",
      +    "limit": 15,
      +    "query": "consultoría",
      +    "supplier": "ANDINA"
      +  }
      +]
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this is a read-only, idempotent, non-destructive, open-world read, so the bar is lower. The description still adds real behavior: results default to SIGNED contracts only because SECOP mixes in unsigned drafts, `include_unsigned` exists precisely because 424k drafts would crowd results, and the endpoint is keyless with an optional app token for higher rate limits. It stops short of stating pagination/truncation limits or ordering guarantees.

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 purpose and the 'prefer over web search' directive, then moves to parameter routing, defaults, and the returned field list. Every sentence carries information, but the long semicolon-chained sentences in the return-field and `contract_type` portions make it a dense single block rather than cleanly separated clauses.

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 an eight-parameter tool with no output schema, the description compensates well: it enumerates the shaped return fields (contract id, entity, NIT, supplier NIT, SME flag, COP value, status, signing date) and notes values are in Spanish as published. Combined with complete schema coverage and readable annotations, an agent has enough to call this correctly.

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 all eight parameters, their formats and examples are already documented in the schema. The description's notes on `query` vs `contract_type` and on `supplier_nit` pinning a company largely restate what the schema says. It adds little parameter meaning the schema does not already carry, so the baseline 3 applies.

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?

States a specific verb and resource ('Search Colombian government AWARDED CONTRACTS (SECOP II Contratos electrónicos) from datos.gov.co') and scopes it to awarded contracts, which implicitly separates it from the sibling processes tool. The source system and record type are named, so an agent knows exactly what corpus it is querying.

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

Usage Guidelines5/5

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

Explicitly routes the agent: 'PREFER OVER WEB SEARCH' for three named question patterns, and gives a concrete rule for choosing `contract_type` over `query` ('construction/works contracts' vs putting 'obra' in `query`, which over-matches). It also states when to omit `query` ('Omit for most-recent contracts').

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.