Skip to main content
Glama

Comprobar si una jugada tiene premio

comprobar_premio
Read-only

Comprueba con el escrutinio oficial y los datos de TuLotero si un décimo o una apuesta concreta tiene premio, y cuánto: bruto, retención, neto, categoría acertada y plazo de cobro, con la combinación ganadora del sorteo al lado. Para preguntas como «tengo el 45433, ¿me ha tocado?», «jugué 3 7 15 21 36 45 en la Primitiva del jueves, ¿tengo premio?» o «¿cuánto me queda de este premio después de Hacienda?». Lotería Nacional (también Navidad y El Niño): pasa los números de décimo. Juegos de números: pasa cada apuesta. Sirven igual los números leídos de una foto del boleto. Si el sorteo aún no tiene escrutinio, lo dice junto con la hora a la que suele estar. Juegos que se pueden comprobar: Lotería Nacional, Euromillones, La Primitiva, Bonoloto, El Gordo de la Primitiva. No requiere tener cuenta.

Input Schema

NameRequiredDescriptionDefault
jokerNoPrimitiva: el Joker, siete cifras, si lo jugó.
juegoYeseuromillones, primitiva, bonoloto, el gordo, lotería nacional, navidad, el niño.
cuandoNoQué sorteo: "el sábado", "ayer", una fecha (12/09/2026), "navidad 2025". Omítelo para el último celebrado. Pásalo tal cual; no calcules tú la fecha.
decimosNoLotería: los números de décimo, cinco cifras cada uno con los ceros ("00123").
apuestasNoJuegos de números: cada apuesta sencilla (columna) del boleto.
reintegroNoPrimitiva y Bonoloto: el reintegro (0-9), si lo sabe.
importe_jugadoNoLotería: lo jugado por número si NO es un décimo entero (una participación de 5 €, por ejemplo). Omítelo y se usa el precio del décimo de ese sorteo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already establish readOnly/openWorld safety. The description adds genuine context: no account required, and the behavior when a draw has no escrutinio yet (it says so along with the usual publication time). It also enumerates the returned prize breakdown, useful since there is no output schema.

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 core action and value, then progressively adds examples, game list and edge-case behavior. It is long but nearly every sentence carries information; minor density loss from the clustered example questions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the game whitelist, the two input families, the no-account fact, and the pending-escrutinio case, which is sufficient for a 7-parameter read-only tool whose return fields are listed in prose. Lacks only explicit sibling routing.

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 baseline is 3, but the description adds real mapping value: which parameter to populate per game family (decimos for Lotería Nacional/Navidad/El Niño, apuestas for number games) and that values read from a photo are accepted. That goes beyond the field-level schema text.

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 precise verb (comprueba) and resource (un décimo o una apuesta concreta) with scope: whether it has a prize and how much (bruto, retención, neto, categoría, plazo). The framing around the user's own play distinguishes it implicitly from siblings like resultado_sorteo, which only surface draw outcomes.

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

Usage Guidelines4/5

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

Gives concrete trigger questions («tengo el 45433, ¿me ha tocado?») and per-game instructions (Lotería Nacional → decimos; juegos de números → apuestas), plus a note that photo-read numbers work. It never names an alternative or a when-not condition, so the routing against resultado_sorteo/sorteos is left to inference.

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.

Resources