Skip to main content
Glama
ssolis-ti

Compra Ágil MCP Server

Monitorear cambios recientes

monitorear_cambios_recientes
Read-only

Busca Compras Ágiles que hayan sido creadas o modificadas dentro de una ventana de cambios. Ideal para monitoreo de nuevas oportunidades de negocio, alertas en tiempo real y sincronización incremental.

Instructions

Busca Compras Ágiles que hayan sido creadas o modificadas dentro de una ventana de cambios. Ideal para monitoreo de nuevas oportunidades de negocio, alertas en tiempo real y sincronización incremental. La ventana se define de UNA de dos formas, mutuamente excluyentes: • Relativa: 'minutos' (últimos N minutos, máx 1440 = 24h). Es el modo por defecto (60 min). • Absoluta: 'cambio_desde' + 'cambio_hasta' (rango ISO-8601 arbitrario), para resincronizar un período pasado o retomar desde el último timestamp procesado, sin el techo de 24 horas. Puede combinarse con filtros de estado y región para acotar los resultados. La API no entrega los resultados ordenados por último cambio (los agrupa, por ejemplo, por estado): para no perder el cambio más reciente, revisa todas las páginas o acota la ventana. «ultimo_cambio» es el sello del lote de 5 minutos en que la API registró el cambio, no su hora exacta: varias compras comparten el mismo valor. Para retomar desde el último visto, solapa al menos 5 minutos. Las fechas de la API están en hora de Chile: la respuesta trae "fecha_cierre_hora_chile" y "ultimo_cambio_hora_chile". Confirma el plazo en la ficha del proceso. Las fechas que indiques en "cambio_desde"/"cambio_hasta" deben declarar su zona; para hora de Chile usa el desfase vigente (ej. "-03:00").

Input Schema

NameRequiredDescriptionDefault
estadoNoFiltrar por estado(s), separados por coma. Ej: "publicada" para solo oportunidades abiertas.
regionNoCódigo(s) de región (1-16), separados por coma. Ej: "13" para Metropolitana.
minutosNoVentana RELATIVA: buscar cambios en los últimos N minutos. Ej: 60 = última hora, 1440 = últimas 24 horas. Máximo 1440 (24h). Se usa 60 por defecto si no se indica ni "minutos" ni un rango. No combinar con "cambio_desde"/"cambio_hasta".
cambio_desdeNoVentana ABSOLUTA: fecha/hora ISO-8601 de inicio del rango de cambios, con su zona. Ej: "2026-09-01T00:00:00-03:00" (medianoche en Chile en horario de verano). Úsala para sincronización incremental de un período arbitrario (sin el límite de 24h de "minutos"). No combinar con "minutos".
cambio_hastaNoVentana ABSOLUTA: fecha/hora ISO-8601 de fin del rango de cambios, con su zona. Ej: "2026-09-02T00:00:00-03:00". Requiere "cambio_desde". No combinar con "minutos".
numero_paginaNoNúmero de página a consultar (comienza en 1).
tamano_paginaNoFijo en 10. Una página de 50 sobre un filtro amplio responde HTTP 504. Para ver más, pide numero_pagina siguiente.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.7.0
    • addedInput schema / properties / cambio_desde
      Added value: +{
      +  "description": "Ventana ABSOLUTA: fecha/hora ISO-8601 de inicio del rango de cambios, con su zona. Ej: \"2026-09-01T00:00:00-03:00\" (medianoche en Chile en horario de verano). Úsala para sincronización incremental de un período arbitrario (sin el límite de 24h de \"minutos\"). No combinar con \"minutos\".",
      +  "type": "string"
      +}
    • addedInput schema / properties / cambio_hasta
      Added value: +{
      +  "description": "Ventana ABSOLUTA: fecha/hora ISO-8601 de fin del rango de cambios, con su zona. Ej: \"2026-09-02T00:00:00-03:00\". Requiere \"cambio_desde\". No combinar con \"minutos\".",
      +  "type": "string"
      +}
    • removedInput schema / properties / minutos / default
      Removed value: -60
    • changedInput schema / properties / minutos / description
      Previous value: -"Buscar cambios en los últimos N minutos. Ej: 60 = última hora, 1440 = últimas 24 horas. Máximo 1440 (24h)."New value: +"Ventana RELATIVA: buscar cambios en los últimos N minutos. Ej: 60 = última hora, 1440 = últimas 24 horas. Máximo 1440 (24h). Se usa 60 por defecto si no se indica ni \"minutos\" ni un rango. No combinar con \"cambio_desde\"/\"cambio_hasta\"."
    • changedInput schema / properties / region / description
      Previous value: -"Código(s) de región, separados por coma. Ej: \"13\" para Metropolitana."New value: +"Código(s) de región (1-16), separados por coma. Ej: \"13\" para Metropolitana."
    • changedInput schema / properties / tamano_pagina / default
      Previous value: -50New value: +10
    • changedInput schema / properties / tamano_pagina / description
      Previous value: -"Resultados por página (10-50, default 50)."New value: +"Fijo en 10. Una página de 50 sobre un filtro amplio responde HTTP 504. Para ver más, pide numero_pagina siguiente."
    • changedInput schema / properties / tamano_pagina / maximum
      Previous value: -50New value: +10
  2. First observedv1.0.2

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say readOnlyHint/openWorldHint; the description goes far beyond that with the caveats that actually determine success: results are NOT ordered by last change (grouped by estado), `ultimo_cambio` is a 5-minute batch stamp rather than an exact time, callers must overlap by at least 5 minutes when resuming, page size is fixed at 10 because a 50-page request returns HTTP 504, and API dates are in Chile time requiring an explicit offset.

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?

It is long, but nearly every clause is an operational constraint an agent would otherwise get wrong, and it is front-loaded (purpose → window modes → output/pagination pitfalls). The bullet structure keeps it navigable; only minor trimming would be possible without losing information.

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 7-parameter, annotation-light, read-only tool with no output schema, the description covers the prerequisites (timezone offsets), the ordering/pagination traps, and even names the response fields carrying Chile-time values. Nothing an agent needs in order to call this correctly and interpret the result is missing.

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 coverage is 100%, so the baseline is 3, and the description genuinely adds semantics on top: it frames `minutos` vs `cambio_desde`/`cambio_hasta` as two mutually exclusive ways to define ONE window, gives the default of 60 minutes, and explains the operational consequence of the 5-minute batch granularity for the absolute mode. It does not add anything new for `estado`, `region`, `numero_pagina` or `tamano_pagina` beyond what the schema already says.

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 gives a specific verb and resource — searching "Compras Ágiles" that were created or modified inside a change window — and immediately frames the intent (monitoring new opportunities, alerts, incremental sync). It implicitly separates itself from the sibling `buscar_compras_agiles` by emphasizing *changes over a window* rather than a general criteria search, but it never names or contrasts that sibling explicitly.

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?

It states exactly when to use the tool (real-time alerts, incremental synchronisation, resuming from the last processed timestamp) and lays out the two mutually exclusive window modes with the default (relative, 60 min) and the escape hatch (absolute range, no 24h ceiling). It also warns not to mix the modes, which is the main misuse risk.

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