Skip to main content
Glama

Buscar procesos de contratación pública (SERCOP)

search_contratos
Read-only

Search Ecuadorian SERCOP public procurement contracts by keyword, year, buyer, or supplier to locate relevant OCDS records.

Instructions

Search SERCOP public procurement (OCDS) by keyword (min 3 characters), year, buyer or supplier.

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": {
      "query": "<query>"
    },
    "name": "search_contratos"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoResults page (1-based)
yearNoContract year (2015–current).
buyerNoOptional buyer/institution keyword (min 3 chars)
queryYesKeyword (min 3 chars), e.g. "medicinas", "vialidad", "software"
formatNotext summary (default) or json structured result.text
supplierNoOptional supplier keyword (min 3 chars)

Output Schema

NameRequiredDescriptionDefault
totalNo
offsetNo
sourceNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.15.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "offset": {},
      +    "source": {},
      +    "total": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  3. Changed6 schema fields changedv0.10.0
    • addedInput schema / properties / buyer / description
      Added value: +"Optional buyer/institution keyword (min 3 chars)"
    • addedInput schema / properties / format / description
      Added value: +"text summary (default) or json structured result."
    • addedInput schema / properties / page / description
      Added value: +"Results page (1-based)"
    • addedInput schema / properties / query / description
      Added value: +"Keyword (min 3 chars), e.g. \"medicinas\", \"vialidad\", \"software\""
    • addedInput schema / properties / supplier / description
      Added value: +"Optional supplier keyword (min 3 chars)"
    • addedInput schema / properties / year / description
      Added value: +"Contract year (2015–current)."
  4. Changed8 schema fields changedv0.8.14
    • removedInput schema / properties / buyer / title
      Removed value: -"Buyer"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / supplier / title
      Removed value: -"Supplier"
    • removedInput schema / properties / year / title
      Removed value: -"Year"
    • removedInput schema / title
      Removed value: -"search_contratosArguments"
    • removedOutput schema / title
      Removed value: -"search_contratosDictOutput"
  5. First observedv0.8.12

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds essentially nothing beyond that — no result caps, pagination behavior, coverage caveats, or what the 'text' vs 'json' format actually changes. The only constraint it mentions (min 3 characters) is repeated from the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that identifies the source, the operation, and the searchable facets with zero filler. Nothing could be removed without losing substance.

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 values need not be explained, and all six parameters are documented in the schema. However, for an open-world search tool an agent would benefit from knowing about pagination limits or the distinction between text and json output — neither is addressed, leaving it minimally viable rather than complete.

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 every parameter is already documented in the schema, including the enum for format and the year range. The description merely restates four of the six parameter names without adding syntax, default, or interaction semantics. Baseline 3 applies.

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 — search SERCOP public procurement (OCDS) — and enumerates the available facets (keyword, year, buyer, supplier), so an agent knows exactly what corpus is queried. It does not distinguish itself from the many sibling search_* tools, but the named source (SERCOP/OCDS) is distinctive enough on its own.

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 implied rather than prescribed: the description tells you the facets to search by and the min-3-character constraint, but gives no when-to-use/when-not guidance, no mention of how to combine facets, and no routing to alternative tools for other procurement-related needs. Adequate but with clear gaps.

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

Deploy Server

Other Tools