Skip to main content
Glama

Compras del Estado (ARCE)

compras_estado
Read-onlyIdempotent

Query how much the Uruguayan State awarded in public procurement for a given year in pesos, with top buying agencies and largest items, filtering by agency or item text.

Instructions

Cuánto adjudicó el Estado uruguayo en un año (2002 en adelante), en pesos, con los organismos que más compraron y los mayores ítems. organismo filtra por comprador (por ejemplo «Intendencia de Montevideo»); buscar filtra los ítems por texto (por ejemplo «ambulancia»). Las monedas se convierten con la cotización del día. Avisa cuando un solo ítem domina el total: hay registros con cantidad × precio imposibles. La primera consulta de un año baja unos 30 MB y tarda.

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": {
      "anio": "<anio>"
    },
    "name": "compras_estado"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioYes
buscarNo
cantidadNo
organismoNo

Output Schema

NameRequiredDescriptionDefault
anioYes
notaYes
avisoNo
itemsYes
bajadoYes
buscarYes
fuenteYes
organismoYes
organismosYes
sin_monedaYes
total_pesosYes
copia_vencidaNo
mayores_itemsYes
sin_convertirYes
adjudicacionesYes
importes_por_monedaYes
excluidas_por_estadoYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.14.0
    • addedOutput schema / properties / copia_vencida
      Added value: +{
      +  "title": "Copia Vencida",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "anio",
      -  "organismo",
      -  "buscar",
      -  "adjudicaciones",
      -  "items",
      -  "total_pesos",
      -  "importes_por_moneda",
      -  "sin_moneda",
      -  "sin_convertir",
      -  "excluidas_por_estado",
      -  "organismos",
      -  "mayores_items",
      -  "aviso",
      -  "nota",
      -  "fuente",
      -  "bajado"
      -]New value: +[
      +  "anio",
      +  "organismo",
      +  "buscar",
      +  "adjudicaciones",
      +  "items",
      +  "total_pesos",
      +  "importes_por_moneda",
      +  "sin_moneda",
      +  "sin_convertir",
      +  "excluidas_por_estado",
      +  "organismos",
      +  "mayores_items",
      +  "nota",
      +  "fuente",
      +  "bajado"
      +]
  2. First observedv0.13.2

TDQS

A4.1/5.0
Behavior5/5

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

The annotations already establish read-only, idempotent, non-destructive behavior, and the description adds genuinely new operational context: currency conversion uses the day's exchange rate, results warn when a single item dominates the total because quantity × price records can be impossible, and the first query of a year downloads roughly 30 MB and is slow. The performance and data-quality caveats are exactly the traits annotations cannot express and materially affect how an agent should call and interpret this tool.

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 front-loaded with the core question it answers, then filter semantics, then caveats, with no filler sentences. Every sentence carries information an agent needs, though the exchange-rate sentence sits slightly awkwardly between filter documentation and the data-quality warning. It is appropriately sized for a four-parameter analytical tool.

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?

An output schema exists, so return values need not be spelled out, and the description still summarizes the shape of the answer (total in pesos, top agencies, top items). Combined with the temporal coverage floor of 2002, the conversion rule, the anomaly warning, and the cold-start cost, an agent has everything needed to call it correctly and set expectations. The only gap, the meaning of `cantidad`, is minor against the rest.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must carry the parameter burden, and it does for most of it: `organismo` filters by buyer, `buscar` filters items by text, and both get worked examples, while `anio` is bounded implicitly by «2002 en adelante». The `cantidad` parameter (default 10, presumably how many top agencies/items to return) is never explained, leaving one of four parameters undocumented in both schema and prose.

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?

The description opens with a specific verb and resource: how much the Uruguayan State awarded in a given year, in pesos, broken down by top buying agencies and largest items. That is far more informative than the title alone and rules out ambiguity with any data tool. It never names or contrasts a sibling tool, but the siblings listed are unrelated domains, so the practical risk of confusion is low.

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 by describing the question the tool answers and by explaining what each filter does, with concrete examples («Intendencia de Montevideo», «ambulancia»). There is no explicit when-not-to-use guidance and no named alternative for related questions such as currency conversion or historical series. An agent can infer the right context but is not told the boundaries.

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