Skip to main content
Glama
comparador-luz-gas

comparador-luz-gas

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
comparar_ofertasA

Consulta el comparador oficial de la CNMC y devuelve las ofertas de luz y/o gas, de la más barata a la más cara, con un análisis a varios años (rotar de oferta, permanencias, fijo vs. tramos). Luz: qr, o cp + consumo; gas: suministro gas, cp + consumo_gas; ambas: lo de luz más consumo_gas. cp, consumo o potencia explícitos prevalecen sobre el qr; sin qr, 3,45 kW y reparto 2.0TD. Con el texto del QR no hace falta leer_factura_qr. Una petición HTTPS sin caché (segundos; límite 90 s); las ofertas cambian con el mercado. Euros, sin desglose de impuestos. Si falla, devuelve un error con texto JSON {"ok": false, "error": "ArgumentoInvalido", "message": "..."} (ArgumentoInvalido si falta cp o consumo; otro si falla la red).

leer_factura_qrA

Interpreta el texto ya decodificado del QR de una factura de luz y devuelve sus datos. qr es la URL de comparador.cnmc.gob.es impresa en la factura; de su query se leen cp (código postal, obligatorio), pP1/pP2 (potencias, kW), caP1-caP3 (consumo anual punta/llano/valle, kWh), cfP1-cfP3 (consumo del periodo facturado) e imp (importe, euros); un campo numérico ausente o ilegible vale 0. Úsala para ver los datos; para comparar, pasa el QR a comparar_ofertas; con el archivo, leer_factura_archivo. Local e instantánea: sin red ni disco. Si falla, devuelve un error con texto JSON {"ok": false, "error": "ArgumentoInvalido", "message": "..."}: SinQR si no es un QR del comparador o falta cp (p. ej. QR de gas o de pago).

leer_factura_archivoA

Busca el QR del comparador en una factura de luz del disco del servidor y devuelve los mismos datos que leer_factura_qr. ruta: si termina en .pdf (sin distinguir mayúsculas) se rasteriza con pdftoppm y se recorren las páginas hasta dar con el QR, y se usa el primero; con cualquier otra extensión se abre como imagen (PNG, JPG...). Úsala cuando tengas el archivo y no el texto del QR. Necesita el extra facturas. Sin red; segundos por PDF, más con un escaneo malo. Si falla, devuelve un error con texto JSON {"ok": false, "error": "ArgumentoInvalido", "message": "..."}: FileNotFoundError, RuntimeError (falta el extra o pdftoppm) o SinQR.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.6/5.0

Scored across 3 tools

Disambiguation4/5

comparar_ofertas is clearly the action tool, while the two leer_factura_* tools are split by input source (QR text vs. file path) and the descriptions explicitly state which to use in each case. The two read tools share the same output purpose, so there is slight conceptual overlap, but the input distinction is documented well enough to avoid misselection.

Naming Consistency5/5

All three names follow a consistent Spanish verb_noun snake_case pattern (comparar_ofertas, leer_factura_qr, leer_factura_archivo). The two leer_factura_* variants differ only by a meaningful suffix, so the convention is predictable throughout.

Tool Count4/5

Three tools is on the lean side but fits the narrow scope of comparing offers and reading bill QR data. Each tool earns its place; the set is not padded, though it leaves little room for adjacent needs like gas bill parsing.

Completeness4/5

The core lifecycle is covered: compare light/gas offers, extract QR data from text, and extract it from a file. Minor gaps remain (e.g., no gas-bill QR reading, only electricity), but these are edge cases an agent can work around since comparison also accepts explicit cp/consumo arguments.

Maintenance

ActivityMaintained
ResponsivenessResponsive