Skip to main content
Glama

Consignatarias · Argentine Cattle Market

Crear alerta de precio

create_price_alert

Crea una alerta de precio: cuando la categoría CRUZA el umbral avisa una sola vez, por email (la vía para una persona) o con un POST a un webhook https (integraciones), y la alerta queda cerrada. Se evalúa una vez por día; si al crearla el precio ya está del otro lado del umbral, avisa recién cuando vuelva y lo cruce. Cada llamada crea una alerta nueva (no deduplica) y no hay tool para listarlas ni borrarlas. Sin API key: hasta 3 alertas activas y 10 creaciones por día por origen; con key Enterprise, sin esos topes. Devuelve el id y el precio actual de la categoría. Es una de las tres tools que guardan datos (con cattle_buying_request y market_match con registrar: true): el email de una persona va con su permiso. Para ver el precio sin crear alerta usá cattle_price_index o livestock_prices. [EN] Create a one-shot cattle price threshold alert, by email or webhook.

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": {
      "categoria": "<categoria>",
      "umbral": "<umbral>"
    },
    "name": "create_price_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoEmail al que avisar cuando cruce el umbral. Es la opción para una persona: pedíselo al usuario. Hace falta email o webhook_url (al menos uno).
umbralYesUmbral en ARS/kg vivo (ej. 5000). Para ubicarlo, mirá antes el precio con cattle_price_index o livestock_prices.
api_keyNoAPI key Enterprise (cnsg_live_...): saca los topes de alertas activas y de creaciones por día. Opcional si ya va en el header Authorization: Bearer. Una key inválida da error, no cae al modo sin key.
categoriaYesinmag = Índice Novillo (INMAG) del MAG; las demás = promedio de esa categoría en la última fecha con precios del MAG.
direccionNoabove = avisa cuando el precio llega al umbral o lo supera; below = cuando llega o baja de él. Default above.
webhook_urlNoURL https pública (no localhost ni IP privada) que recibe un POST JSON con event "price.threshold_crossed", data {category, threshold, current, direction, currency} y timestamp. Un solo intento, sin reintentos. Para integraciones; para una persona usá email.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"API key del plan (cnsg_live_...). Opcional si ya la pasás por el header Authorization: Bearer."New value: +"API key Enterprise (cnsg_live_...): saca los topes de alertas activas y de creaciones por día. Opcional si ya va en el header Authorization: Bearer. Una key inválida da error, no cae al modo sin key."
    • addedInput schema / properties / categoria / description
      Added value: +"inmag = Índice Novillo (INMAG) del MAG; las demás = promedio de esa categoría en la última fecha con precios del MAG."
    • changedInput schema / properties / direccion / description
      Previous value: -"Cruzar hacia arriba o abajo (default above)"New value: +"above = avisa cuando el precio llega al umbral o lo supera; below = cuando llega o baja de él. Default above."
    • changedInput schema / properties / email / description
      Previous value: -"Email al que avisar cuando cruce el umbral. Es la opción para una persona: pedíselo al usuario. Alternativa a webhook_url."New value: +"Email al que avisar cuando cruce el umbral. Es la opción para una persona: pedíselo al usuario. Hace falta email o webhook_url (al menos uno)."
    • changedInput schema / properties / umbral / description
      Previous value: -"Umbral en ARS/kg vivo (ej. 5000)"New value: +"Umbral en ARS/kg vivo (ej. 5000). Para ubicarlo, mirá antes el precio con cattle_price_index o livestock_prices."
    • changedInput schema / properties / webhook_url / description
      Previous value: -"URL https pública que recibe el POST cuando cruza. Para integraciones; para una persona usá email."New value: +"URL https pública (no localhost ni IP privada) que recibe un POST JSON con event \"price.threshold_crossed\", data {category, threshold, current, direction, currency} y timestamp. Un solo intento, sin reintentos. Para integraciones; para una persona usá email."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the write/non-idempotent/open-world profile; the description goes well beyond that with one-shot-and-close lifecycle, once-per-day evaluation cadence, the edge case where the price is already past the threshold at creation time (it waits for a re-cross), no deduplication between calls, and concrete rate limits (3 active alerts / 10 creations per day per origin, lifted with an Enterprise key). It also states the return payload (id and current category price) and the consent requirement for using a person's email.

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 core behavior (cross → one notification → alert closes) is front-loaded, and every subsequent clause adds a distinct operational fact (cadence, edge case, no dedup, limits, return value, routing to alternatives). It is dense and runs long as a single block, and the bilingual closing line partially repeats the opening, but there is little genuine waste.

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 6-parameter write tool with no output schema, the description covers everything an agent needs: what triggers the notification, its lifecycle, failure/edge semantics, throttling, the returned fields, and where to go instead for read-only price checks. Nothing material is left for the agent to guess.

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 schema already carries the mechanics, but the description adds meaning beyond it: email is framed as the channel for a person (and requires that person's permission), webhook is framed as the channel for integrations, and api_key is tied to the limit-lifting behavior described in the body. This is incremental value on top of an already complete schema rather than a substitute for it.

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 states a specific verb and resource ('Crea una alerta de precio') and immediately defines the exact trigger semantics: a one-shot notification when the category CROSSES the threshold, by email or https webhook, after which the alert closes. It also explicitly distinguishes itself from siblings that only read prices (cattle_price_index, livestock_prices), so an agent can differentiate it without opening any schema.

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 names the alternatives and the condition that selects them ('Para ver el precio sin crear alerta usá cattle_price_index o livestock_prices'), and it groups itself with the other write tools (cattle_buying_request, market_match with registrar: true). It also flags explicit limitations ('no hay tool para listarlas ni borrarlas'), which prevents an agent from hunting for a companion list/delete tool.

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.